[patch] mdadm - initramfs script doesn't wait for udev rules to complete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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/
+++ /usr/share/
@@ -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
affects: | initramfs-tools (Ubuntu) → mdadm (Ubuntu) |
Status changed to 'Confirmed' because the bug affects multiple users.