Bug 497578

Summary: RHEL5 cmirror tracker: RFE - allow log converts of inactive cmirrors
Product: Red Hat Enterprise Linux 5 Reporter: Corey Marthaler <cmarthal>
Component: cmirrorAssignee: Jonathan Earl Brassow <jbrassow>
Status: CLOSED WONTFIX QA Contact: Cluster QE <mspqa-list>
Severity: low Docs Contact:
Priority: low    
Version: 5.3CC: agk, ccaulfie, dwysocha, heinzm, iannis
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-12 22:54:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Corey Marthaler 2009-04-24 20:09:15 UTC
Description of problem:
This is the RHEL5 cmirror version of bug 192865.

[root@taft-01 ~]# lvchange -an TAFT/cmirror

[root@taft-01 ~]# lvconvert -m 1 --corelog TAFT/cmirror
  Unable to convert the log of inactive cluster mirror cmirror

Version-Release number of selected component (if applicable):
lvm2-2.02.40-6.el5
lvm2-cluster-2.02.40-7.el5

Comment 1 Jonathan Earl Brassow 2009-10-14 14:56:54 UTC
The reason for this is that any information on the sync state of the mirror will be lost...  Seems like a pretty silly thing to do.  I might be willing to do it if the user is also asked if they want to procede.

Also, the given message seems fouled up and needs to be fixed.

Comment 2 Jonathan Earl Brassow 2009-10-14 14:57:38 UTC
I've changed the message in the upstream code to read:
  Unable to convert the log of an inactive cluster mirror, cmirror

Comment 3 Jonathan Earl Brassow 2009-10-14 15:02:30 UTC
Seems this works on single machine mirrors:

[root@bp-01 ~]# lvconvert --corelog vg/lv
Full resync required to convert inactive mirror vg-lv to core log. Proceed? [y/n]: y
  Logical volume lv converted.

So, this additional check may be there for a good reason...  Not high enough priority for me to guarantee 5.5.

Comment 5 Jonathan Earl Brassow 2010-01-26 21:03:06 UTC
This check may be in place to guard against converting while another machine has the mirror active.  The solution may require acquiring the a lock on the mirror exclusively to perform the action.  I'm not going to change/enable this in 5.5.