Red Hat Bugzilla – Bug 497578
RHEL5 cmirror tracker: RFE - allow log converts of inactive cmirrors
Last modified: 2014-11-12 17:54:59 EST
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):
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.
I've changed the message in the upstream code to read:
Unable to convert the log of an inactive cluster mirror, cmirror
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.
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.