July 17th, 2010
I’ll have to apologize for my “running” of this post, as it happend over a period of about a week durning the evenings when I was at home and not off at a business meeting or seminiar or Men’s leadership.. so if I jump from point to point, its how it came out from my recollection of the events that I went through to get the server to this point.. Also side point, I dont claim to be perfect when it comes to “writing” articles in any language, so for those that love to bash my poor English grammer and spelling mistakes, bite me, I write in computer languages, not books for students to learn properness.. maybe more on that later…
Today I’m going to continue my quest in turning in an old ML370 that I got from work, into a Home Automation L(something,, maybe layer? Laughs..). I call it HAL for now, mostly because eventually I’ll be talking to it.. HAL, open the gargage door.. HAL… muhaha
I have to say, trying to get that box to work was a pain in the rear, the way Compaq/HP do there servers is extremely confusing to one not used to their methods.. This box has various SCSI cards (one is a AHA-2944UW) and such in it. The main one is a huge Smart Array card 221, which is connected to the backplane for the hard drive carriage, that holds 6 drives. I have 3 18.xGB and 3 72.x GB HDD’s in it, old beasts, but so far they work.. I had intended to run Gentoo on one drive, have two of the 18’s in a stripe array and the 3 72’s in a RAID 5 config.. but things didnt quite work out due to my lack of knowledge on how the smart array worked..
Before I continue on with the controller, let me tell you about the fun I had with getting that far.. I would get these lovely messages after booting the server (by the way, it takes 30~ seconds before the system even POSTs after a power on, I’m guessing some kind of self checks and such..), about no scsi devices found, so boot devices found.. It wouldn’t boot from the CD’s I had for the Compaq stuff, I was getting fustrated.. not even a bios screen to be had! Turns out that you have to use compaq’s system utilities to do anything with the machine. Normally there is a system partition installed, but since we’ve been using this box for other things and I’ve moved the hard drives around (we used some of the other larger ones in another HP box I built at work), the array was confused and there was no system partition to be found. I finally had the genuis idea to put the Compaq system cd in one of my other computers, and was presented with a program to make various floppy diskettes for booting and utilities etc.. One of the first ones I used was the System Eraser, so I could take it back to a blank slate and start over. That took me a few tries, because I would get it somewhere, would get to finally boot from a cd and tried to use the Auto setup, which was no help because it never installed the Compaq System to a partition (didn’t help that I had no Logical Volumes setup for it to do that to..) So after probably 2 nights monkeying with that, I finally got the right set of floppies and got it erased, and use the program to setup the Smart Array logical volumes with a RAID 0 on drive 1 and 2 (they start at 0) known as /dev/ida/c0d0, for fast video capture (I plan to have my camera’s around my house talking to this box) and a RAID 5 (on drives 3,4,5 known as /dev/ida/c0d1) for various longer term storage, and one non RAID drive (disk 0) for the OS and boot partitions. Well I messed up with Drive 0, because I didnt define a non RAID Array entry for it, so it wasn’t even availiable for an option with gentoo, I can later add it, but I’m not sure how I can rearrange it so that its the first item, and not the last (/dev/ida/c0d2)
It turns out that you have to define Array Groups, which I understood with all the array’s I’ve had to build with DAS’s and SAN’s at work, but I didnt realize I had to define an array just for the one single drive, so I only ended up with the striped array and the raid 5 array, and ended up installing Gentoo on the Striped array (yeah I know.. yuck!). I will hopefully eventually move the OS partition (/boot and /) back to the single one, if I can figure out how to change the “letters” of the array..
I used GRUB and gen-kernel for the gentoo setup, the rest was pretty much the defaults.. I ended up compiling the gen-kernel with the menu option, as I needed to select the Compaq Smart Array Controller into the kernel (wasn’t even a module the first few times I tried to install gento.. ug.. 8~ hours spent learning that one..). So then I was able to get to GRUB booted, and then it couldn’t find a valid root partition.. geesh.
The problem that lead to this was a new one for me. It turns out that when, at least with this Smart Array Controllers drivers that I was using, that devices (HDD’s) are named /dev/ida/c#d#p#, not the usuall that I was fimiliar with, /dev/hd(LETTER)# or /dev/sd(LETTER)# or even the other raid styles.. so for instance, I have one controller, /dev/ida/c0, with one dynamic volumn /dev/ida/c0d0 and 4 partitions. /boot was installed to /dev/ida/c0d0p1, swap was installed on /dev/ida/c0d0p2, Compaq System Utilities (this was another strange thing to learn..) was on /dev/ida/c0d0p3, and finally root was installed to /dev/ida/c0d0p4..
So part of my grub configuration had root pointing to the /dev/ida/c0d0p4.. right? Well not quite.. apparently the driver that I was using on the LIVECD for gentoo, and once I’m booted into gentoo from the hdd, report it as /dev/ida/c0d0p4, right? Yeah.. but GRUB on the other hand, or maybe the kernel during boot(not sure which is confused..) refer to at least the root partition as /dev/ida!c0d0p4… Confused yet? I have to say, that took some magic to figure out, I found a few posts referring to /dev/cciss!c0d0p3, but mine didnt work with any variation of that, so finally I figured out to use the shell of grub (I couldn’t really find much help with the time I spent looking on that) to use ls /dev.. and wahoo! I found a /dev/ida!c0d0 device.. so I exited the shell, put in /dev/ida!/c0d0p4.. didnt work, then realized I put in the slash still, and did /dev/ida!c0d0p4 and boom! I had a booting system. I had to update the /boot/grub/grub.conf root entries, and fixed another typo and I was thus able to boot without having to touch the console.
Wow.. that took me longer than I thought to get that out, maybe that’s why its been a year and a half since I’ve posted anything on my blog..
Anyways, I hope to continue posting my journeys (as a coworker would say) on my blog here, so that maybe at least one person would learn something from how to install stuff on to an HP 370. Next up, hopefully my control system, and wrestling to get hpasm installed so that I can get the LOUD fan under control.
Posted in Uncategorized | No Comments »