RAID1 arrays not starting when drive is missing



I've just installed a Ubuntu 7.10 system as LVM-over-RAID1.

I have two RAID1 devices -- /dev/md0 which is /boot (and
does NOT use LVM) and is made up of /dev/sda2 and /dev/sdb2,
and /dev/md1 which has LVM (and the rest of the system) over it
and is made up of /dev/sda3 and /dev/sdb3.

I've grub'd both /dev/sda and /dev/sdb, and as long as
both drives are plugged in, I can boot from either drive
and everything works and is happy.

However...

When I try to boot with a drive removed (for testing purposes),
grub comes up fine and the system begins to boot, but it appears
that the arrays will not start, which means there's no root filesystem
available and everything grinds to a halt. This doesn't seem right.
Given the nature of RAID1, the arrays darn well should start up even
with a missing drive.

The boot output when the drive is missing has:
md: md0 stopped
md: bind <sda2>
md: md1 stopped
md: md0 stopped
md: unbind <sda2>
md: export_rdev(sda2)
md: bind <sda2>
md: md1 stopped
md: bind <sda3>
and then everything grinds to a halt.

When both drives are present, this section goes:
md: md0 stopped.
md: unbind<sdb2>
md: export_rdev(sdb2)
md: bind<sdb2>
md: bind<sda2>
raid1: raid set md0 active with 2 out of 2 mirrors
md: md1 stopped.
md: bind<sdb3>
md: bind<sda3>
raid1: raid set md1 active with 2 out of 2 mirrors

So why won't the arrays start up when a drive is missing (it doesn't
matter which drive is the missing one)?

--
Rich Carreiro rlc-news@xxxxxxxxxx
.



Relevant Pages

  • Re: NTLDR is missing
    ... Make sure that there are no disks in any removable drives when you boot. ... NTLDR is missing, why does it happen? ... Computer hard disk drive is not properly setup in BIOS. ...
    (microsoft.public.windowsxp.basics)
  • Windows XP does not boot
    ... I managed to get the recovery console to boot ... own default letters for the drives. ... missing or courrpt doesn't always mean it is missing, ...
    (microsoft.public.windowsxp.general)
  • Re: Asus P5K doesnt like any of my IDE Drives
    ... NTLDR is missing means that the boot order is wrong. ... To boot from the CD for install press F-8 during boot and pick you ... hard drives so I am installing windows XP on one of my old IDE drives. ...
    (alt.comp.periphs.mainboard.asus)
  • Re: Drives missing at boot
    ... finds its disk drives at each boot. ... the same drives that are missing. ...    Every time I boot the AMI BIOS screen says all 5 drives are there. ...
    (Linux-Kernel)
  • e and d drives missing cannot burn cannot read date or audio cds
    ... CAN I RESTORE MY XP DRIVES ONLY?? ... > CD-ROM Access Is Missing and Messages Cite Error Code 31, Code 32, Code ... the following error message appears in connection ...
    (microsoft.public.windowsxp.help_and_support)