Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 755762 - LVM: vgsplit does not work with mirrors that have mirrored logs
LVM: vgsplit does not work with mirrors that have mirrored logs
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2 (Show other bugs)
5.8
x86_64 Linux
medium Severity medium
: rc
: ---
Assigned To: Jonathan Earl Brassow
Cluster QE
:
Depends On: 743932
Blocks: 747120 758797
  Show dependency treegraph
 
Reported: 2011-11-21 19:15 EST by Corey Marthaler
Modified: 2012-02-21 01:05 EST (History)
11 users (show)

See Also:
Fixed In Version: lvm2-2.02.88-5.el5
Doc Type: Bug Fix
Doc Text:
vgsplit is now able to split a volume group containing a mirror with mirrored logs.
Story Points: ---
Clone Of: 743932
Environment:
Last Closed: 2012-02-21 01:05:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
RHEL5.8 port of upstream patch (4.21 KB, patch)
2011-11-22 16:27 EST, Jonathan Earl Brassow
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0161 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2012-02-20 10:07:59 EST

  None (edit)
Comment 1 Corey Marthaler 2011-11-21 19:19:35 EST
This exists in the latest 5.8 rpms as well.

2.6.18-274.el5

lvm2-2.02.88-4.el5    BUILT: Wed Nov 16 09:40:55 CST 2011
lvm2-cluster-2.02.88-4.el5    BUILT: Wed Nov 16 09:46:51 CST 2011
device-mapper-1.02.67-2.el5    BUILT: Mon Oct 17 08:31:56 CDT 2011
device-mapper-event-1.02.67-2.el5    BUILT: Mon Oct 17 08:31:56 CDT 2011
cmirror-1.1.39-10.el5    BUILT: Wed Sep  8 16:32:05 CDT 2010
kmod-cmirror-0.1.22-3.el5    BUILT: Tue Dec 22 13:39:47 CST 2009


[root@grant-01 ~]# pvscan
  PV /dev/sdb1   VG seven        lvm2 [68.11 GB / 68.02 GB free]
  PV /dev/sdc3   VG seven        lvm2 [90.82 GB / 90.72 GB free]
  PV /dev/sdc2   VG seven        lvm2 [90.82 GB / 90.82 GB free]
  PV /dev/sdc1   VG seven        lvm2 [90.82 GB / 90.82 GB free]
  PV /dev/sdb2   VG seven        lvm2 [68.11 GB / 68.11 GB free]

[root@grant-01 ~]# lvs -a -o +devices
  LV                   VG     Attr   LSize   Log       Devices
  rlog                 seven  mwi--- 100.00M rlog_mlog
rlog_mimage_0(0),rlog_mimage_1(0)
  [rlog_mimage_0]      seven  Iwi--- 100.00M           /dev/sdb1(0)
  [rlog_mimage_1]      seven  Iwi--- 100.00M           /dev/sdc3(0)
  [rlog_mlog]          seven  mwi---   4.00M          
rlog_mlog_mimage_0(0),rlog_mlog_mimage_1(0)
  [rlog_mlog_mimage_0] seven  Iwi---   4.00M           /dev/sdc1(0)
  [rlog_mlog_mimage_1] seven  Iwi---   4.00M           /dev/sdb2(0)

[root@grant-01 ~]# vgsplit -n rlog seven ten
  Can't split mirror rlog between two Volume Groups
Comment 2 Jonathan Earl Brassow 2011-11-22 16:27:34 EST
Created attachment 535200 [details]
RHEL5.8 port of upstream patch
Comment 3 Milan Broz 2011-12-02 18:01:03 EST
Fixed in lvm2-2.02.88-5.el5.
Comment 6 Corey Marthaler 2011-12-05 14:21:19 EST
Fix verified in the latest rpms.

2.6.18-274.el5

lvm2-2.02.88-5.el5    BUILT: Fri Dec  2 12:25:45 CST 2011
lvm2-cluster-2.02.88-5.el5    BUILT: Fri Dec  2 12:48:37 CST 2011
device-mapper-1.02.67-2.el5    BUILT: Mon Oct 17 08:31:56 CDT 2011
device-mapper-event-1.02.67-2.el5    BUILT: Mon Oct 17 08:31:56 CDT 2011
cmirror-1.1.39-10.el5    BUILT: Wed Sep  8 16:32:05 CDT 2010
kmod-cmirror-0.1.22-3.el5    BUILT: Tue Dec 22 13:39:47 CST 2009


SCENARIO - [split_rlog_mirror_lv]
Split out a redundant log mirrored lv on grant-01
free pvs for grant-01: /dev/sdb1 /dev/sdc2 /dev/sdc1 /dev/sdc3 /dev/sdb2
create a redundant log mirror
deactivating seven/rlog
grant-01: vgsplit -n rlog seven ten
Deactivating and removing volume groups...  


SCENARIO - [split_rlog_mirror_pvs]
Split out pvs of a redundant log mirror on grant-01
free pvs for grant-01: /dev/sdb2 /dev/sdc2 /dev/sdc3 /dev/sdb1 /dev/sdc1
create a redundant log mirror
deactivating seven/rlog
grant-01: vgsplit seven ten /dev/sdb2 /dev/sdc2 /dev/sdc3
Deactivating and removing volume groups...
Comment 7 Milan Broz 2011-12-06 18:36:18 EST
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
vgsplit is now able to split a volume group containing a mirror with mirrored logs.
Comment 8 errata-xmlrpc 2012-02-21 01:05:50 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0161.html

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