grub boot problem with md

Greg Vickers daehenoc at optusnet.com.au
Fri Oct 26 18:23:11 CDT 2007


Hi all,

I've got a Dell PowerEdge 830 that I've set up Debian with md raid1 on. 
  grub was installed as part of the installation process and I recently 
installed grub on sdb with the following commands:
grub> device (hd0) /dev/sdb
grub> root (hd0,1)
grub> setup (hd0)

The root partition is 1 on both these drives (see fdisk output below).

Here is the default boot from menu.lst:
title           Debian GNU/Linux, kernel 2.6.18-4-686
root            (hd0,1)
kernel          /vmlinuz-2.6.18-4-686 root=/dev/md3 ro
initrd          /initrd.img-2.6.18-4-686

Here are the relevant bits from mdstat:
# cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sda3[0] sdc3[2](S) sdb3[1]
       979840 blocks [2/2] [UU]
md2 : active raid1 sda2[0] sdc2[2](S) sdb2[1]
       289088 blocks [2/2] [UU]

Here are the relevant mounted paritions:
# mount
/dev/md3 on / type ext3 (rw,errors=remount-ro)
/dev/md2 on /boot type ext3 (rw)

And output from fdisk:
# fdisk -l /dev/sda
    Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1           7       56196   de  Dell Utility
/dev/sda2   *           8          43      289170   fd  Linux raid
/dev/sda3              44         165      979965   fd  Linux raid

# fdisk -l /dev/sdb
    Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1           7       56196   de  Dell Utility
/dev/sdb2   *           8          43      289170   fd  Linux raid
/dev/sdb3              44         165      979965   fd  Linux raid

I power down the server and remove the first HDD, then power up the
server and set the BIOS to boot off the second HDD.  As the server
starts, I *think* I see the message "GRUB ..." for about five
microseconds before the screen goes black and the only thing that is on
the screen is the following message:
"Console redirection code"

And the server does not boot off the second HDD.  I've looked through
all of menu.lst and console redirection is not configured to be active.
  I have also copied the MBR from sda to sdb and the same problem
happens.  Have I done something wrong with grub or is this something
weird and Dell specific?

Thanks,
Greg



More information about the Linux-PowerEdge mailing list