Initramfs does not wait for md components to settle

Bug #920647 reported by Luk van den Borne
48
This bug affects 9 people
Affects Status Importance Assigned to Milestone
mdadm
Confirmed
Undecided
Unassigned

Bug Description

When booting, initramfs seems to want to autoassemble the MDADM block devices, so it will be possible to boot from MDADM arrays. However, this will very regularly fail, because the devices have not settled yet. This leads to the user being thrown into a recovery shell, even though the array in question does not contain the root partition. When then executing mdadm --assemble ---scan in or after the recovery shell, the array is assembled just fine.

This can be solved by adding 'udevadm settle' as the first command to the degraded_arrays() function in /usr/share/initramfs-tools/scripts/mdadm-functions.

Ubuntu "Oneiric" 11.10
mdadm - v3.1.4 - 31st August 2010
Linux 3.0.0-15-server #26-Ubuntu SMP Fri Jan 20 19:07:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Skrupellos (skrupellos-spam) wrote :

I tested Luk's solution 10 times and it worked. Before it failed 50% of the boots. The solution is also described in this forum post: http://ubuntuforums.org/showpost.php?p=11388915&postcount=18

Changed in mdadm:
status: New → Confirmed
Revision history for this message
M. O. (marcusoverhagen) wrote :

Many of the comments for bug report https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/872220 seem to belong to this cause instead

Revision history for this message
Joshua McKinney (joshka-launchpad) wrote :

Still a problem in Saucy (13.10) beta

Revision history for this message
Lek (k-lek) wrote :

Bug bit me with Trusty 14.04 server daily 20140107. The fix from DanGriffin works but went back to Debian.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.