Bug 497578 - RHEL5 cmirror tracker: RFE - allow log converts of inactive cmirrors
Summary: RHEL5 cmirror tracker: RFE - allow log converts of inactive cmirrors
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cmirror
Version: 5.3
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jonathan Earl Brassow
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-24 20:09 UTC by Corey Marthaler
Modified: 2014-11-12 22:54 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-12 22:54:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.