[Bug 1005457] Re: [patch] mdadm - initramfs script doesn't wait for udev rules to complete

Dmitrijs Ledkovs 1005457 at bugs.launchpad.net
Mon May 28 13:11:10 UTC 2012


*** This bug is a duplicate of bug 942106 ***
    https://bugs.launchpad.net/bugs/942106

** This bug has been marked a duplicate of bug 942106
   software raid doesn't assemble before mount on boot

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mdadm in Ubuntu.
https://bugs.launchpad.net/bugs/1005457

Title:
  [patch] mdadm - initramfs script doesn't wait for udev rules to
  complete

Status in “mdadm” package in Ubuntu:
  New

Bug description:
  I have a system using software RAID that seems to take a long time for the on-boot udev rules to complete.
  This means that mdadm incorrectly thinks the array had degraded, when in fact the component devices are not yet ready

  Symptoms:
  - System fails to boot correctly, and drops into the initramfs recovery prompt
  - On exiting the initramfs recovery prompt, mdadm array not assembled
  - Array has to be assembled manually

  Altering the initramfs mdadm script to wait for udev to settle down
  seems to solve the issue

  --- /usr/share/initramfs-tools/scripts/mdadm-functions	2012-05-28 10:45:28.068832673 +0100
  +++ /usr/share/initramfs-tools/scripts/mdadm-functions-new	2012-05-28 10:45:19.156845003 +0100
  @@ -3,6 +3,7 @@
   
   degraded_arrays()
   {
  +	udevadm settle
   	mdadm --misc --scan --detail --test >/dev/null 2>&1
   	return $((! $?))
   }

  then rebuilding the initramfs
  # update-initramfs -u

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1005457/+subscriptions




More information about the foundations-bugs mailing list