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

Michael Kofler michael.kofler at gmx.com
Tue Aug 12 13:41:41 UTC 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

...
fi

# 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

  log_end_msg
fi

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

-- 
cannot boot raid1 with only one disk
https://bugs.launchpad.net/bugs/120375
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to initramfs-tools in ubuntu.




More information about the kernel-bugs mailing list