Hide Forgot
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
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)
git commit ID: 29044ecb22aa49ba134046d2fd334a30e8b70dc6
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
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.
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