Apr 24, 2016 09:31
An acquaintance of mine has a neighbor that just gives him surplus equipment from his work [Unnamed State University]. He has maxed out his need for rackmounted servers, so he gave me an old HP Proliant DL380 G5. Dual quad-core Xeons, and most notably to me an 8-bay hot swappable hdd array. The G5 has a P400 Smart Array controller for the drives, and I did not know anything about it.
I decided to install CentOS 6.9 on it, so I didn't have to muck with the hpsa driver settings. It was just another variable that I didn't want to have to control, and I did not really understand what the array controller was going to do.
I tried to install CentOS from the LiveDVD, but it has selinux set to enforcing by default, so I couldn't get it to boot. I fell back to installing from the DVD1 installation. I burned the iso to an 8GB flash drive [it wouldn't fit on the 4GB I had]. When the Proliant starts up, it runs through some system checks, and eventually gets to a place where you can choose to -- Continue -- Use ROM Based Setup Tool -- Use System Maintenance Tool -- PXE Boot .
I started to ROM based tool, and checked the boot order to make sure that it tried to boot from USBKey before it tried to boot from the HDD. I plugged the installation USB into one of the front panel ports and exited the tool. The box rebooted itself, I chose and we were off.
I thought that I chose to include cciss0 and cciss1 in the partitioning scheme when I went through the disk setup. I also thought that I chose to set cciss0 as the boot volume. Be careful to remember this. Other than that decision, and choosing to set it up as a software development workstation, the rest of it was clean and automatic.
I pulled the media out and rebooted. It went through its power up sequence, I chose to again and it informed me that it was attempting to boot from USB, then attempting to boot from Hard Drive C: . And there it sat for five minutes. I headed off to Google. The standard answer to this is that I need to reinstall grub using the rescue CD.
I plugged my installation drive back in and rebooted to the CentOS startup screen and chose to rescue my installation. It reported that my system was mounted at /mnt/sysimage and dropped me into bash. I tried to install grub:
chroot /mnt/sysimage
grub-install /dev/cciss/c0d0
To which it replied:
/dev/cciss/c0d0 does not have any corresponding BIOS drive.
@#*&^$@#*
Internet says that when this happens, you have to do it the hard way:
grub
device (hd0) /dev/cciss/c0d0
root (hd0,0)
At this point it is *supposed* to tell me
Filesystem type is ext2fs, partition type 0x83 but it in fact tells me
Filesystem type is Unknown, partition type [some number I don't remember]
@#*&^$@#*
One person on the Internet said, "Hey this works 'grub-install /dev/cciss/c0d0p1'." I have one of those, let's try it.
/dev/cciss/c0d0p1 does not have any corresponding BIOS drive.
Reboot and contemplate. Sadly, these are not ten second laptop reboots. Rescue again. Let's look at the other disk, as it is on the sysimage.
ls /dev/cciss
/dev/cciss/c0d0
/dev/cciss/c0d0p1
/dev/cciss/c0d1
/dev/cciss/c0d1p1
/dev/cciss/c0d1p2
/dev/cciss/c0d1p3 [I feel like there were three partitions, but I may be misremembering this, I know there was at least two]
Let's see what grub has to say about c0d1
grub
device (hd0) /dev/cciss/c0d1
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
Hey, look it at what I found. Exit grub, back to bash.
grub-install /dev/cciss/c0d1
Grub install is successful. Let's reboot and double check the boot order.
to get to the ROM based setup. Hmm, no granularity down to boot disk. On the reboot, after the P400 Smart Array Initialization [can't miss it because it has the old school spinning slashes to report its progress] completes, you have 1 or 2 seconds to hit F8 and get into the array controller specific set up.
This will be the second you get the option to hit F8 to set something up. Right before the array controller initialization, you can hit F8 to set some other miscellaneous thing up. In the array controller set up, you can pick your boot disk. The P400 has two logical disks, and mine was set to disk0, i.e. c0d0. I switched it to disk1, pulled the rescue media and the system booted all the way. In retrospect, the grub-install on c0d1 may not have been necessary.
Probably the most frustrating thing, to my super-naive self, was that the Internet likes to talk about the BIOS, but you just can't into the BIOS when it powers up, and there is nothing that says, BIOS on the startup screens except when it reports the BIOS version.
The next thing I'm contemplating is taking out the 2x4 arrays of 72GB/15k RPM drives and putting in some SSDs. The first time I powered it up, the drives spooling up sounded like a jet starting its engines.
So, now I have a dual-quad-core rackmount server [with 4-whole-GB of RAM], feeding [VGA!] video into my old 32" Samsung TV in my basement. Now, If I add a cheap Quadro GPU, and I'll be all current with my technology for 2010. This isn't complaining. I lost my Mac to my kids and my work laptop is so locked down that it is basically useless for anything except surfing the web. This was free from spare parts and will suit me for a couple of years for the needs that I have.