Bug 833078

Summary: Root volume support for LVM mirroring
Product: Red Hat Enterprise Linux 6 Reporter: Jonathan Earl Brassow <jbrassow>
Component: dracutAssignee: Jonathan Earl Brassow <jbrassow>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: low Docs Contact:
Priority: low    
Version: 6.2CC: atodorov, harald, pholica
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-30 04:32:36 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:
Bug Depends On:    
Bug Blocks: 498670, 760559, 958503, 960739    

Description Jonathan Earl Brassow 2012-06-18 14:27:25 UTC
After failure to activate the root logical volume, dracut should be able to check if the LV is mirrored or RAID and proceed.

This should involve a small amount of checking code (to determine segment type) and code that repairs and/or activates the volume in partial mode.

Comment 1 Alexander Todorov 2012-08-06 07:47:59 UTC
Jonathan,
can you be more verbose? Can you describe steps to reproduce a particular problem ?

Comment 2 Jonathan Earl Brassow 2012-09-21 19:22:36 UTC
to recreate the problem, make your root volume either a RAID or 'mirror' logical volume, reboot the machine with a missing device.  The machine will not boot.

you can convert an existing linear root volume to RAID or 'mirror' by doing the following:
~> lvconvert --type raid1 -m 1 <VG>/<LV>
or
~> lvconvert -m 1 <VG>/<LV>

Comment 3 Jonathan Earl Brassow 2012-10-15 22:03:12 UTC
Note that the RAID logical volumes already work as root volumes.  'mirror' segment type does not.  If users want to mirror their root volume, they should use the LVM 'raid1' segment type for now.

This bug is low priority for 6.4 because only the 'mirror' segment type does not work and the 'raid1' segment type provides a preferred alternative.

Comment 5 Harald Hoyer 2013-02-11 12:40:46 UTC
dracut >= 004-231 should support assembling lvm mirrors with "--partial"

Comment 7 Jonathan Earl Brassow 2013-05-29 17:41:53 UTC
I don't think you mean to devel ACK this do you?

See comment 3.  It is insufficient to try to activate with '--partial' flag for "mirror" segment type.  Users can use the "raid1" segment type.  It is the preferred RAID1 implementation, it does respond to the '--partial' flag, and is already available.

Let's not support the "mirror" segment type for the root volume.  What I don't know is where the best place to document this is - that "raid1" is allowed, but "mirror" is not for the root volume.

Comment 8 RHEL Program Management 2013-05-30 04:32:36 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.

Comment 12 Jonathan Earl Brassow 2013-12-10 21:53:48 UTC
*** Bug 816184 has been marked as a duplicate of this bug. ***