Linux : How to rollback Yum updates on RHEL/CentOS

Having issues and downtime after installing latest updates using “yum update” is always a possibility. This is why having a development environment is so much important when you are running a mission critical infrastructure. However, there is an intermediate solution : using the rollback feature included in Yum. Note this option is actually not enabled… Read More »

Linux : Can’t create volume in OpenFiler

I rescently experienced this issue with OpenFiler which I never had before. Trying to create a volume into a block device simply don’t work – nothing happen when you click to do so. The only difference between this installation and the previous one is the OpenFiler system is installed on another drive/block device than the… Read More »

Linux : How to benchmark disk I/O

A few utilities are available to test the disk I/O performance. The easy way to do it without installing anything on the system would be running this simple command : time dd if=/dev/zero of=/tmp/test-hd bs=1M count=1000 Another, more complete tool I recommend is “SysBench”. http://sysbench.sourceforge.net/docs/

Linux : How to reset MySQL root password

Lost your root password for MySQL? Follow this simple procedure to reset it. Of course, you need at least root access level on your operating system to proceed. 1. Stop MySQL database server : /etc/init.d/mysql stop 2. Start MySQL with “skip grant table” option : mysqld_safe –skip-grant-tables  & WARNING! This is VERY insecure – while… Read More »

Linux : How to add IP range on RHEL/CentOS

If you have a full subnet to add on RHEL/CentOS Linux system, there is a short way to achieve this instead of manually create single alias interfaces. 1. Create a script at this location : vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0 (ajust values as needed, according to the interface you would would have the IP subnet binded to an… Read More »

Linux : How to add JSON support to CentOS 5 PHP 5.1.6

JSON support come natively with PHP 5.2 and later. If you are running CentOS Linux 5, this is PHP version 5.1.6 that is included by default. Fortunately, since version 5.6, CentOS packaged version 5.3.3 of PHP that can be installed through YUM (not included in the ISO set). If you still run applications that can’t… Read More »