Bug 743932 - LVM: vgsplit does not work with mirrors that have mirrored logs
Summary: LVM: vgsplit does not work with mirrors that have mirrored logs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jonathan Earl Brassow
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks: 747120 755762
TreeView+ depends on / blocked
 
Reported: 2011-10-06 14:10 UTC by Jonathan Earl Brassow
Modified: 2011-12-06 17:03 UTC (History)
11 users (show)

Fixed In Version: lvm2-2.02.87-5.el6
Doc Type: Bug Fix
Doc Text:
vgsplit is now able to split a volume group containing a mirror with mirrored logs.
Clone Of:
: 755762 (view as bug list)
Environment:
Last Closed: 2011-12-06 17:03:26 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1522 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2011-12-06 00:50:10 UTC

Description Jonathan Earl Brassow 2011-10-06 14:10:16 UTC
The problem as reported by "ben <benscott>" on lvm-devel:

vgsplit fails with mirrored mirror log

#lvs --all -o lv_name,lv_attr,devices
LV                       Attr   Devices                                                       
MyMirror                 mwi--
[MyMirror_mimage_0]      Iwi--- /dev/sdq(0)                                                   
[MyMirror_mimage_1]      Iwi--- /dev/sdo(0)                                                   
[MyMirror_mimage_2]      Iwi--- /dev/sdi(0)                                                   
[MyMirror_mlog]          mwi---            
[MyMirror_mlog_mimage_0] Iwi--- /dev/sds(0)                                                   
[MyMirror_mlog_mimage_1] Iwi--- /dev/sde(0)                                                   

#vgsplit -v "TestA" "TestB" "/dev/sdq" "/dev/sdo" "/dev/sdi" "/dev/sds" 
"/dev/sde"
  Checking for volume group "TestA"
  Checking for new volume group "TestB"
  Archiving volume group "TestA" metadata (seqno 213).
Can't split mirror MyMirror between two Volume Groups

Comment 1 Jonathan Earl Brassow 2011-10-06 14:18:59 UTC
Fix checked-in upstream in version 2.02.89:

Results after fix:
[root@bp-01 ~]# lvs -a -o name,vg_name,devices vg new
  Volume group "new" not found
  Skipping volume group new
  LV                 VG   Devices                                
  lv                 vg   lv_mimage_0(0),lv_mimage_1(0)          
  [lv_mimage_0]      vg   /dev/sdb1(0)                           
  [lv_mimage_1]      vg   /dev/sdc1(0)                           
  [lv_mlog]          vg   lv_mlog_mimage_0(0),lv_mlog_mimage_1(0)
  [lv_mlog_mimage_0] vg   /dev/sdh1(0)                           
  [lv_mlog_mimage_1] vg   /dev/sdi1(0)                           
[root@bp-01 ~]# vgsplit vg new /dev/sd[bchi]1
  New volume group "new" successfully split from "vg"
[root@bp-01 ~]# lvs -a -o name,vg_name,devices vg new
  LV                 VG   Devices                                
  lv                 new  lv_mimage_0(0),lv_mimage_1(0)          
  [lv_mimage_0]      new  /dev/sdb1(0)                           
  [lv_mimage_1]      new  /dev/sdc1(0)                           
  [lv_mlog]          new  lv_mlog_mimage_0(0),lv_mlog_mimage_1(0)
  [lv_mlog_mimage_0] new  /dev/sdh1(0)                           
  [lv_mlog_mimage_1] new  /dev/sdi1(0)

Comment 2 Jonathan Earl Brassow 2011-10-06 15:11:08 UTC
git commit ID:
29044ecb22aa49ba134046d2fd334a30e8b70dc6

Comment 5 Corey Marthaler 2011-10-17 21:23:11 UTC
Fix verified.

[root@hayes-02 ~]# lvs -a -o +devices
 LV                   VG      Attr   LSize    Log        Devices
 rlog                 hayes   mwi--- 300.00m  rlog_mlog  rlog_mimage_0(0),rlog_mimage_1(0)
 [rlog_mimage_0]      hayes   Iwi--- 300.00m             /dev/etherd/e1.1p1(0)
 [rlog_mimage_1]      hayes   Iwi--- 300.00m             /dev/etherd/e1.1p10(0)
 [rlog_mlog]          hayes   mwi---   4.00m             rlog_mlog_mimage_0(0),rlog_mlog_mimage_1(0)
 [rlog_mlog_mimage_0] hayes   Iwi---   4.00m             /dev/etherd/e1.1p8(0)
 [rlog_mlog_mimage_1] hayes   Iwi---   4.00m             /dev/etherd/e1.1p9(0)

[root@hayes-02 ~]# vgsplit hayes hayes2 /dev/etherd/e1.1p1 /dev/etherd/e1.1p10 /dev/etherd/e1.1p8 /dev/etherd/e1.1p9
 New volume group "hayes2" successfully split from "hayes"

[root@hayes-02 ~]# lvs -a -o +devices
 LV                   VG      Attr   LSize    Log        Devices
 rlog                 hayes2  mwi--- 300.00m  rlog_mlog  rlog_mimage_0(0),rlog_mimage_1(0)
 [rlog_mimage_0]      hayes2  Iwi--- 300.00m             /dev/etherd/e1.1p1(0)
 [rlog_mimage_1]      hayes2  Iwi--- 300.00m             /dev/etherd/e1.1p10(0)
 [rlog_mlog]          hayes2  mwi---   4.00m             rlog_mlog_mimage_0(0),rlog_mlog_mimage_1(0)
 [rlog_mlog_mimage_0] hayes2  Iwi---   4.00m             /dev/etherd/e1.1p8(0)
 [rlog_mlog_mimage_1] hayes2  Iwi---   4.00m             /dev/etherd/e1.1p9(0)

2.6.32-207.el6.x86_64

lvm2-2.02.87-5.el6    BUILT: Wed Oct 12 10:47:46 CDT 2011
lvm2-libs-2.02.87-5.el6    BUILT: Wed Oct 12 10:47:46 CDT 2011
lvm2-cluster-2.02.87-5.el6    BUILT: Wed Oct 12 10:47:46 CDT 2011
udev-147-2.40.el6    BUILT: Fri Sep 23 07:51:13 CDT 2011
device-mapper-1.02.66-5.el6    BUILT: Wed Oct 12 10:47:46 CDT 2011
device-mapper-libs-1.02.66-5.el6    BUILT: Wed Oct 12 10:47:46 CDT 2011
device-mapper-event-1.02.66-5.el6    BUILT: Wed Oct 12 10:47:46 CDT 2011
device-mapper-event-libs-1.02.66-5.el6    BUILT: Wed Oct 12 10:47:46 CDT 2011
cmirror-2.02.87-5.el6    BUILT: Wed Oct 12 10:47:46 CDT 2011

Comment 6 Peter Rajnoha 2011-10-27 12:55:17 UTC
    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 7 errata-xmlrpc 2011-12-06 17:03:26 UTC
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-2011-1522.html


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