Last Updated on
Installing Centos 7 on an HP ML350 G5
This post is getting an unusual amount of traffic…it seems that the ML350 G5 (or its associated drive controllers) has the fortitude and staying power of the venerable HP LaserJet 4P.
Starting with RHEL / Centos 7, the drivers for the CCISS family of raid controller cards, the P400, P400i, E200i (and others), are no longer loaded / enabled by default. When you go to install Centos 7 on older HP hardware you will likely see that it doesn’t detect your controller / disk array.
When you boot up and go into the install, press tab to get to your install options. From here append hpsa.hpsa_simple_mode=1 hpsa.hpsa_allow_any=1 to your boot options. Now one caveat. On my server which is an ML350 G5 (old, but useful) with P400 / E200i raid controllers, the inclusion of both parameters prior to the install results in the installer not recognizing my disk array / controller. I was able to get this to work by only appending hpsa.hpsa_allow_any=1. This may be due to a variation in hardware configuration of the presence of other raid controllers in my specific system – so if you have difficulty, give this a try next.
The install should now locate your controller / disk array and you should be able to install as normal. After you reboot however you’ll have to make this more permanent. At the grub screen press e to get back to your boot options. From here append hpsa.hpsa_simple_mode=1 hpsa.hpsa_allow_any=1 again so that you can get into the machine.
Once you’re logged in open up /etc/default/grub and add these options to the file (depending on what was successful in the prior step). The file should now look something like:
GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/root rd.lvm.lv=centos/swap crashkernel=auto rhgb quiet hpsa.hpsa_simple_mode=1 hpsa.hpsa_allow_any=1"
grub2-mkconfig -o /boot/grub2/grub.cfg
Success! If you would like to see how to install hpssacli and other HP utilities see here.
[root@ml350 ~]# hpssacli ctrl all show config
Smart Array E200i in Slot 0 (Embedded) (sn: QT84MP6777 )
Port Name: 1I
Port Name: 2I
Smart Array P400 in Slot 4 (sn: PAFGL0R9SX71W2)
Port Name: 1I
Port Name: 2I
Internal Drive Cage at Port 1I, Box 1, OK
Internal Drive Cage at Port 2I, Box 1, OK
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (410.0 GB, RAID 5, OK)
physicaldrive 1I:1:5 (port 1I:box 1:bay 5, SAS, 72 GB, OK)
physicaldrive 1I:1:6 (port 1I:box 1:bay 6, SAS, 72 GB, OK)
physicaldrive 1I:1:7 (port 1I:box 1:bay 7, SAS, 72 GB, OK)
physicaldrive 2I:1:1 (port 2I:box 1:bay 1, SAS, 72 GB, OK)
physicaldrive 2I:1:2 (port 2I:box 1:bay 2, SAS, 72 GB, OK)
physicaldrive 2I:1:3 (port 2I:box 1:bay 3, SAS, 72 GB, OK)
physicaldrive 2I:1:4 (port 2I:box 1:bay 4, SAS, 72 GB, OK)
physicaldrive 1I:1:8 (port 1I:box 1:bay 8, SAS, 72 GB, OK, spare)
For more on installing RHEL / Centos 7, have a look here.