[Bug 878479] New: initrd fails to assemble degraded MD raid1 mirror, root fs not found
https://bugzilla.novell.com/show_bug.cgi?id=878479 https://bugzilla.novell.com/show_bug.cgi?id=878479#c0 Summary: initrd fails to assemble degraded MD raid1 mirror, root fs not found Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader AssignedTo: jsrain@suse.com ReportedBy: walter.haidinger@gmx.at QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 initrd images created by mkinitrd-2.8.1-2.1.x86_64 fail to assemble a _degraded_ array during boot. I guess this is because md arrays get assembled by udev now. If the md raid1 mirror is synced, there is no problem. Because the raid1 mirror contains the root fs, boot fails due to the root filesystem not being found. As a workaround, I've created the script /lib/mkinitrd/boot/03-md_assemble.sh which just contains: #!/bin/bash /sbin/mdadm --assemble --scan 03-md_assemble.sh is picked up my mkinitrd and run right after 03-md.sh. The array gets assembled although mdadm complains as expected, e.g.: mdadm: /dev/md1 has been started with 1 drive (out of 2). Reproducible: Always Steps to Reproduce: 1. have a degraded raid1 mirror 2. reboot 3. Actual Results: mirror is not assembled, root filesystem is not found Expected Results: start the degraded array, continue to boot -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=878479 https://bugzilla.novell.com/show_bug.cgi?id=878479#c2 Thomas Renninger <trenn@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|trenn@suse.com |nfbrown@suse.com --- Comment #2 from Thomas Renninger <trenn@suse.com> 2014-05-21 15:14:20 UTC --- I do not know much/anything about mdraid. I can help with dracut details if necessary. For now it would be great if Neil, who afaik knows these parts, can help with debugging the problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=878479 https://bugzilla.novell.com/show_bug.cgi?id=878479#c3 Thomas Renninger <trenn@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trenn@suse.com --- Comment #3 from Thomas Renninger <trenn@suse.com> 2014-05-21 15:16:08 UTC --- Wait, this is against 13.1? There is no dracut on 13.1 And if this is a very specific, rare setup, I could imagine it's not important enough right now, for 13.1. Factory together with dracut would be much more important/interessting whether things work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=878479 https://bugzilla.novell.com/show_bug.cgi?id=878479#c4 --- Comment #4 from Walter Haidinger <walter.haidinger@gmx.at> 2014-05-21 15:45:28 UTC --- Yes, this is against 13.1. I've to admit, the raid-setup is a bit odd: It's a raid1 mirror (1.2 metadata) of an SSD partition and an iSCSI LIO-target, the latter added with --write-mostly, i.e.: md1 : active raid1 sdk[2](W) sdd2[0] 220069888 blocks super 1.2 [2/2] [UU] bitmap: 1/1 pages [4KB], 524288KB chunk So during boot, the array is always degraded. md1 is a LVM PV which contain the root LV. Interestingly, when booting with a live CD (grml), the array is detected, but started _inactive_ with the SSD partition marked as a spare. Stopping the inactive array and reassembling (simply with: mdadm --assemble /dev/md1 --scan) makes it active. I guess the inactive array is the reason for the assemble failure. Btw, kernel raid autodetection is disabled. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=878479 https://bugzilla.novell.com/show_bug.cgi?id=878479#c5 Neil Brown <nfbrown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |walter.haidinger@gmx.at --- Comment #5 from Neil Brown <nfbrown@suse.com> 2014-05-22 00:50:22 UTC --- What version of mdadm do you have installed (rpm -q mdadm)? I though I had fixed this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=878479 https://bugzilla.novell.com/show_bug.cgi?id=878479#c6 --- Comment #6 from Walter Haidinger <walter.haidinger@gmx.at> 2014-05-22 10:09:18 UTC --- mdadm-3.3-4.4.1.x86_64 from the 13.1 update repository. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=878479 https://bugzilla.novell.com/show_bug.cgi?id=878479#c7 --- Comment #7 from Walter Haidinger <walter.haidinger@gmx.at> 2014-05-22 10:12:50 UTC --- The grml 2014.03 live-CD also runs mdadm 3.3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=878479 https://bugzilla.novell.com/show_bug.cgi?id=878479#c8 --- Comment #8 from Walter Haidinger <walter.haidinger@gmx.at> 2014-06-21 10:41:31 UTC --- As the bug reporter, I'd suggest to close this bug with WONTFIX. openSUSE is moving to dracut so mkinitrd is a dead code path anyways. The work-around in comment #1 works as well, so I'm good until 13.2 and your time is probably better spent elsewhere. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=878479 https://bugzilla.novell.com/show_bug.cgi?id=878479#c9 Neil Brown <nfbrown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|walter.haidinger@gmx.at | Resolution| |WONTFIX --- Comment #9 from Neil Brown <nfbrown@suse.com> 2014-07-10 04:11:36 UTC --- As suggested I'll close this bug - thanks.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com