Bug 814753

Summary: Optionally mirror thin pool metadata
Product: Red Hat Enterprise Linux 6 Reporter: Alasdair Kergon <agk>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
Status: CLOSED WONTFIX QA Contact: cluster-qe <cluster-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.4CC: agk, dwysocha, heinzm, jbrassow, msnitzer, prajnoha, prockai, thornber, zkabelac
Target Milestone: rcKeywords: FutureFeature
Target Release: 6.4   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-07 15:15:14 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:

Description Alasdair Kergon 2012-04-20 15:11:55 UTC
Provide options that allow the thin pool metadata to be mirrored.

Comment 1 Alasdair Kergon 2012-06-20 21:57:40 UTC
Should this be default?
Which type of mirror?
What config options?

Comment 2 Tom Lavigne 2012-09-07 15:21:42 UTC
This request was evaluated by Red Hat Product Management for 
inclusion in the current release of Red Hat Enterprise Linux.
Since we are unable to provide this feature at this time,  
it has been proposed for the next release of 
Red Hat Enterprise Linux.

Comment 3 Zdenek Kabelac 2012-10-19 08:14:43 UTC
With lvm2 version 2.02.98 we support conversion from i.e. mirror LVs to thin pool. 

So user may select to use mirror for both - pool and metadata LV by this simple command:   

create mirrors  vg/lvmirror1 vg/lvmirror2

lvconvert --thinpool   vg/lvmirror1 --poolmetadata vg/lvmirror2

Comment 5 Zdenek Kabelac 2013-10-10 10:41:26 UTC
Lvm2 used to support conversion to mirrors - this has been however disabled by Jon's patch which generally disabled mirroring support for anything thin related.

The current state however seems to be not equally usable - since raid1 type seems to be pretty unconceivable to  create a raid1 on a single PV even when '--alloc anywhere' is in use.

So what does currently work is:

to convert thin pool data into mirrored:

lvconvert -m+1 --type raid1 vg/pool_tdata    


to convert thin pool metadata into mirrored metadata:

lvconvert -m+1 --type raid1 vg/pool_tmeta

Comment 8 Zdenek Kabelac 2013-10-14 15:40:54 UTC
Option for automated creation of mirror is not yet ready, user may already 'build' mirrored thin-pool metadata with 2 steps, eventually convert an existing thin-pool to a mirrored one.

Moving to 6.6 for separate option.