Wednesday, August 28, 2013

Installing Centos on HP Proliant DL360e Gen8 with B120i controller

Installing centos 5.7 on HP Proliant DL360e Gen8 was a headache. First of all it comes with HP B120i Dynamice smart array controller which centos or redhat doesnt detect by default. We have to install a source driver from HP separately to detect this controller.

At first I created the RAID 1 logical array using the acu(array configuration utility) oh HP server. And started installing Centos. Installation proceeded but at the time of drive select it showed the two 500GB hard disks instead of one single raid 1 device. That means os couldn't detect the storage controller.

After a lot of googling and HP customer support I found the steps to do it.
HP B120i driver is supported from Redhat/Centos 5u7 onwards.

Tuesday, August 27, 2013

Centos installing both i386 and x86_64 rpms

If you are running rhel/centos x86_64 systems,you can see redhat/centos has installed both i386 and x86_64 rpms. It will create a lot of dependency problems, conflicts etc.

in case if you are installing httpd you may end up in glibc duplicate errors.

rpm -qa | grep glibc
To view the architecture of installed files add the following line to ~/.rpmmacros
#vi ~/.rpmmacros
%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
Save the file.

Now when querying
# rpm -qa | grep glibc

You can solve this problem by adding the following lines to /etc/yum.conf
exclude=*.i386 *.i586 *.i686

Also remove all the duplicate files as follows.
yum remove glibc-devel-2.5-65.el5_7.1.i386

Installing passive vsftpd in amazon ec2

We have seen how to enable passive mode in vsftpd ftp daemon in our previous post. In this one we will see how to install vsftpd and enable passive mode in amazon ec2 instances.

Install vsftpd package
#yum install vsftpd

Open the vsftpd conf file for editing
#vi /etc/vsftpd/vsftpd.conf

Add the following lines at bottom of the configuration file.