Comment 91 for bug 120375

Revision history for this message
Michael Kofler (michael-kofler) wrote :

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
...