Hide Forgot
You are allowed to convert an LV that is 'mirror' segment type to 'raid1' segment type only if the mirror is in-sync. However after converting, the 'raid1' array goes through a complete resync.
Committed upstream in version 2.02.90.
Fix verified in the latest rpms. 2.6.32-251.el6.x86_64 lvm2-2.02.95-5.el6 BUILT: Thu Apr 19 10:29:01 CDT 2012 lvm2-libs-2.02.95-5.el6 BUILT: Thu Apr 19 10:29:01 CDT 2012 lvm2-cluster-2.02.95-5.el6 BUILT: Thu Apr 19 10:29:01 CDT 2012 udev-147-2.40.el6 BUILT: Fri Sep 23 07:51:13 CDT 2011 device-mapper-1.02.74-5.el6 BUILT: Thu Apr 19 10:29:01 CDT 2012 device-mapper-libs-1.02.74-5.el6 BUILT: Thu Apr 19 10:29:01 CDT 2012 device-mapper-event-1.02.74-5.el6 BUILT: Thu Apr 19 10:29:01 CDT 2012 device-mapper-event-libs-1.02.74-5.el6 BUILT: Thu Apr 19 10:29:01 CDT 2012 cmirror-2.02.95-5.el6 BUILT: Thu Apr 19 10:29:01 CDT 2012 [root@hayes-01 ~]# lvs -a -o +devices LV VG Attr LSize Log Copy% Devices m_2_r hayes mwi-a-m- 5.00g m_2_r_mlog 100.00 m_2_r_mimage_0(0),m_2_r_mimage_1(0),m_2_r_mimage_2(0) [m_2_r_mimage_0] hayes iwi-aom- 5.00g /dev/etherd/e1.1p1(0) [m_2_r_mimage_1] hayes iwi-aom- 5.00g /dev/etherd/e1.1p10(0) [m_2_r_mimage_2] hayes iwi-aom- 5.00g /dev/etherd/e1.1p2(0) [m_2_r_mlog] hayes lwi-aom- 4.00m /dev/etherd/e1.1p9(0) [root@hayes-01 ~]# dmsetup status hayes-m_2_r: 0 10485760 mirror 3 253:4 253:5 253:6 10240/10240 1 AAA 3 disk 253:3 A [root@hayes-01 ~]# lvconvert --type raid1 hayes/m_2_r [root@hayes-01 ~]# lvs -a -o +devices LV VG Attr LSize Log Copy% Devices m_2_r hayes rwi-a-m- 5.00g 100.00 m_2_r_rimage_0(0),m_2_r_rimage_1(0),m_2_r_rimage_2(0) [m_2_r_rimage_0] hayes iwi-aor- 5.00g /dev/etherd/e1.1p1(0) [m_2_r_rimage_1] hayes iwi-aor- 5.00g /dev/etherd/e1.1p10(0) [m_2_r_rimage_2] hayes iwi-aor- 5.00g /dev/etherd/e1.1p2(0) [m_2_r_rmeta_0] hayes ewi-aor- 4.00m /dev/etherd/e1.1p1(1280) [m_2_r_rmeta_1] hayes ewi-aor- 4.00m /dev/etherd/e1.1p10(1280) [m_2_r_rmeta_2] hayes ewi-aor- 4.00m /dev/etherd/e1.1p2(1280) [root@hayes-01 ~]# dmsetup status hayes-m_2_r: 0 10485760 raid raid1 3 AAA 10485760/10485760
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: New Feature to 6.3. No documentation required. Bug 732458 is the bug that requires a release note for the RAID features. Other documentation is found in the LVM manual. Operational bugs need no documentation because they are being fixed before their initial release.
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-0962.html