[Bug 1005457] [NEW] [patch] mdadm - initramfs script doesn't wait for udev rules to complete
Ynot
1005457 at bugs.launchpad.net
Mon May 28 09:48:22 UTC 2012
Public bug reported:
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
** Affects: initramfs-tools (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1005457
Title:
[patch] mdadm - initramfs script doesn't wait for udev rules to
complete
Status in “initramfs-tools” 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/initramfs-tools/+bug/1005457/+subscriptions
More information about the foundations-bugs
mailing list