Bug 1011704

Summary: Make udev db records for MD devices persistent so LVM on MD autoactivation works correctly
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: dracutAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: agk, bmarzins, bmr, dracut-maint, dwysocha, heinzm, jonathan, lvm-team, msnitzer, pachoramos1, prajnoha, prockai, samuel-rhbugs, zkabelac
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1014067 1017031 (view as bug list) Environment:
Last Closed: 2013-10-09 09:00:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
boot failure
none
boot success
none
Patch to fix LVM on MD activation none

Description Nicolas Mailhot 2013-09-24 21:29:47 UTC
Description of problem:
 lvm2-2.02.102-1.fc21does not boot
reverting to 02.99-2.fc20 fixes the system

Comment 1 Nicolas Mailhot 2013-09-24 21:31:08 UTC
Created attachment 802500 [details]
boot failure

Comment 2 Nicolas Mailhot 2013-09-24 21:31:51 UTC
Created attachment 802501 [details]
boot success

Comment 3 Peter Rajnoha 2013-09-25 14:41:52 UTC
OK, I've managed to reproduce - the problem here is that the volume is on an MD device which is activated in initrd. There's some missing information we need in udev database which is not handed over after transition to root fs. I'll have a think how to cope with this the best way... but I think we'll need an update for dracut to include some more udev rules in initrd so the udev database is complete when running the udev trigger at boot after change to root fs...

Comment 4 Peter Rajnoha 2013-10-01 11:09:47 UTC
Created attachment 805841 [details]
Patch to fix LVM on MD activation

Harald, we need the patch attached so that the LVM on MD is properly activated. 

The 69-dm-lvm-metad.rules set some udev env. variables that makes it possible to detect the right time to activate LVM on MD. The MD is very similar to DM during activation - it's usable only after proper device activation - the CHANGE event. We need to make a difference between a CHANGE event that comes from this activation and CHANGE event that is the outcome of the WATCH udev rule (otherwise we'd end up with LVM activation done on each CHANGE event - which is wrong).

So we need the udev databse to be persistent during pivot to root fs even for MD devices.

(also related bug #985638 and bug #1002144)

Comment 5 Harald Hoyer 2013-10-04 12:02:16 UTC
do we need a RHEL-7 clone for this?

Comment 6 Peter Rajnoha 2013-10-04 12:10:42 UTC
(In reply to Harald Hoyer from comment #5)
> do we need a RHEL-7 clone for this?

Yes please. F19/F20/rawhide and RHEL7.

Comment 7 Peter Rajnoha 2013-10-04 12:12:21 UTC
(I've already cloned for F19 - bug #1014067)

Comment 8 Harald Hoyer 2013-10-04 13:48:03 UTC
is bug 1011863 the RHEL-7 bug?