Some tips to (re)install grub on an HP ProLiant server
Yesterday I needed to fix the MBR of a ProLiant (Red Hat Enterprise
Linux 2.1) by reinstalling grub and grub-install just won’t work.
grub-install assumes that the boot device is in the form /dev/hda or
/dev/sda and since most ProLiant use a SmartArray RAID controller its
boot device is typically /dev/cciss/c0d0.
So, in order to recover this is what I did:
* In /etc/grub.conf (a link to /boot/grub/grub.conf) uncomment the
line that looks like this:
boot=/dev/cciss/c0d0
* Make sure /boot/grub/device.map is setup right and looks like this:
(fd0) /dev/fd0
(hd0) /dev/cciss/c0d0
* Run grub like this:
/sbin/grub --batch --device-map=/boot/grub/device.map
--config-file=/boot/grub/grub.conf --no-floppy
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
Hope that helps!
December 17th, 2004 at 1:55 pm
Thanks for the tip! It really saved my bacon with a new install of Fedora Core 3/64-bit on a dl585 with Smart Array 5i controller. Grub was not properly configured after the initial install and had to be recovered using your procedure.
January 20th, 2005 at 7:47 am
Same here. Fedora misconfigured Grub during install, you just saved me from hours of debugging this over those extra-long boot times… Thanks! ;-)
February 21st, 2005 at 8:36 am
Same here too!! Feb 2005, installing Fedora Core 3 on a brand new ProLiant with Smart Array :-)
March 29th, 2005 at 4:57 am
Thanks for the tips. It really helps. :)
May 4th, 2005 at 4:09 pm
really appreciated
June 14th, 2005 at 5:51 am
Thanks a tone. It saved lot of my time.
October 14th, 2005 at 6:04 pm
Very appreciated; spent 2 hours trying everything before I stubled on this.
October 29th, 2005 at 6:48 pm
As previously stated, thanks a ton. The GRUB documentation is a little light on what do with SCSI arrays, I had to dig thru google for a good hour before finding your post… :-)
November 4th, 2005 at 12:28 pm
Thanks for the tip, it was a life saver!
November 24th, 2005 at 8:58 am
Thanks a lot. Helped me solved a REALLY big problem with one of our servers.
Nearly saved my life too !
December 15th, 2005 at 9:38 am
Tank you… this install de grub but after boot it show this message:
root (hd0,0)
Filesystem type is ext2fs, partition type Ox83
kernel (hd0,0)/kernel-genkernel-x86_64-2.6.14-gentoo-r2 root=/dev/ram0 ramdisk=8192 real_root=/dev/cciss/c0d0p3 init=linuxrc udev doscsi
[ Linux -bzImage,setup=0×1e00,size=0×22688e]
initrd (hd0,0)/initramfs-genkernel-x86_64-2.6.14-gentoo-r2
[Linux-initrd@0xdfe8b000, 0×157141 bytes]
error 28: select itemcannot fit into memory
press any key to continue…
I have an 2 x 3.2 Xeon x96_84 with 4 x 1Gb RAM and Smart Array (RAID 5)
December 15th, 2005 at 12:02 pm
Matias,
The line: “error 28: select item cannot fit into memory” is the error message you need to follow up on.
I’d poke around your kernel configuration to make sure it can support that large memory.
-marc
January 4th, 2006 at 8:42 pm
Thanks, this tip was a lifesaver. I had EXACTLY the same problem and the fix worked perfectly.
– Steve
May 11th, 2006 at 1:59 am
I have the exact same problem - however I have still not found a solution. I have tried several initrd files and get the dreaded error 28 each and every time.
What exactly is it that I need to change in the kernel ?
June 14th, 2006 at 6:52 am
Thanks for this - dead handy and saved me lots of messing about!
June 26th, 2006 at 9:23 am
Thanks a lot, save my time too :)
March 8th, 2007 at 11:45 am
Thx a lot also saved me loads of time trying to install Grub on Gentoo with an HP ProLiant DL380 G5. I can’t belive that this bug has not been fixed.
Cheers Simon
March 15th, 2007 at 11:09 am
There is an easier way where you don’t need to edit any files. This works great in a script, but can be done on the command line as well
/sbin/grub –batch /dev/null 2>/dev/null
device (hd0) /dev/cciss/c0d0
root (hd0,0)
setup (hd0)
quit
EOT
March 15th, 2007 at 4:10 pm
Somehow not all of the first line showed up it should be
/sbin/grub –batch /dev/null 2>/dev/null
device (hd0) /dev/cciss/c0d0
root (hd0,0)
setup (hd0)
quit
EOT
March 23rd, 2007 at 1:15 pm
Thanks. This was very helpful.