[Bug 120375] Re: cannot boot raid1 with only one disk

Michael Kofler michael.kofler at gmx.com
Tue Aug 12 14:41:41 BST 2008

when using RAID *and* LVM on Ubuntu 8.04 (and with / on LVM), I had to add two more lines to 
/usr/share/initramfs-tools/scripts/local to give LVM time to get up


# The following code was added to allow degraded RAID arrays to start
if [ ! -e "${ROOT}" ] || ! /lib/udev/vol_id "${ROOT}" >/dev/null 2>&1; then
  # Try mdadm and allow degraded arrays to start
  # in case a drive has failed
  log_begin_msg "Attempting to start degraded RAID arrays"
    /sbin/mdadm --assemble --scan

    # give LVM some time to initialize!
    /sbin/udevadm trigger
    /sbin/udevadm settle


# We've given up, but we'll let the user fix matters if they can

cannot boot raid1 with only one disk
You received this bug notification because you are a member of Ubuntu
Server Team, which is a subscriber of a duplicate bug.

More information about the Ubuntu-server-bugs mailing list