Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486344 - sys-fs/lvm2-2.02.102 + sys-kernel/dracut - lvmetad activation problem with MD devices
Summary: sys-fs/lvm2-2.02.102 + sys-kernel/dracut - lvmetad activation problem with MD...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL: https://www.redhat.com/archives/lvm-d...
Whiteboard:
Keywords:
Depends on:
Blocks: 486278
  Show dependency tree
 
Reported: 2013-09-28 18:32 UTC by Alexander Tsoy
Modified: 2013-10-06 18:33 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2013-09-28 18:32:42 UTC
I have several lvm PVs on top of mdraid arrays. Those LVs that was discovered in initramfs (because underlying MDs gets assembled), but not activated, still not activated during systemd boot, and systemd drops me to an emergency shell. This is a regression over 2.02.100. I suspect, that something wrong with udev rules. I'll try to investigate this problem futher.

Initramfs generated by dracut-031/033.
Comment 1 Alexander Tsoy 2013-09-28 19:09:07 UTC
Reverting "69-dm-lvm-metad.rules" to the same state as it was in 2.02.100 fixes this issue.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2013-09-29 06:30:44 UTC
(In reply to Alexander Tsoy from comment #1)
> Reverting "69-dm-lvm-metad.rules" to the same state as it was in 2.02.100
> fixes this issue.

You should be more specific. Like which commit from...

https://git.fedorahosted.org/cgit/lvm2.git/log/udev/69-dm-lvm-metad.rules.in
Comment 3 Alexander Tsoy 2013-09-29 20:55:54 UTC
This started from commit 8d1d83504dcf9c86ad42d34d3bd0b201d7bab8f6
Comment 4 Alexander Tsoy 2013-09-30 17:10:37 UTC
This bug at least (only?) affects systems with lvm on MD devices. If PV is a disk partition, then lvmetad activation works fine. Also this bug can be triggered only if initramfs is able to selectively activate LVs, such as sys-kernel/dracut.
Comment 5 Alexander Tsoy 2013-10-01 11:35:54 UTC
Upstream decided to fix this on dracut side:

RH bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1011704

Pending patch:
https://bugzilla.redhat.com/attachment.cgi?id=805841
Comment 6 Pacho Ramos gentoo-dev 2013-10-03 05:30:02 UTC
CCing dracut maintainers then
Comment 7 Alexander Tsoy 2013-10-04 12:07:24 UTC
@aidecoe:
Amadeusz, please apply the patch
http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=b874d4b5be4c3b81cf394726c354ef7131b5699d
Comment 8 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-10-04 12:21:13 UTC
And this one, as well. :-)
Comment 9 Pacho Ramos gentoo-dev 2013-10-05 13:55:49 UTC
With 2.02.103 only dracut patch would be pending
Comment 10 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-10-06 18:33:06 UTC
Patch applied. Thank you, Alexander!

+*dracut-033-r3 (06 Oct 2013)
+
+  06 Oct 2013; Amadeusz Żołnowski <aidecoe@gentoo.org> +dracut-033-r3.ebuild,
+  +files/033-0005-dracut.sh-harden-host_modalias-reading.patch,
+  +files/033-0006-ifup-do-not-dhcp-on-network-interface-.patch,
+  +files/033-0007-lvm-mdraid-Fix-LVM-on-MD-activation.patch,
+  +files/033-0008-mdraid-module-setup.sh-install-configs.patch,
+  +files/033-0009-mdraid-module-setup.sh-fixes-for-mdadm.patch:
+  Applied patches with bug fixes wrt mdraid and lvm.
+
+  It fixes bug #486344, bug #485748, possible bug on PPC and bug related to
+  net-bonding.
+
+  Thanks to Alexander Tsoy <alexander@tsoy.me> for some of these patches and
+  generally for help.
+