Bug 790162

Summary: LVM RAID: converting from 'mirror' to 'raid1' does not preserve sync
Product: Red Hat Enterprise Linux 6 Reporter: Jonathan Earl Brassow <jbrassow>
Component: lvm2Assignee: Jonathan Earl Brassow <jbrassow>
Status: CLOSED ERRATA QA Contact: Cluster QE <mspqa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2CC: agk, cmarthal, dwysocha, heinzm, jbrassow, mbroz, prajnoha, prockai, thornber, zkabelac
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lvm2-2.02.95-1.el6 Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 15:01:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jonathan Earl Brassow 2012-02-13 19:52:55 UTC
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.

Comment 1 Jonathan Earl Brassow 2012-02-13 20:16:14 UTC
Committed upstream in version 2.02.90.

Comment 4 Corey Marthaler 2012-04-19 22:38:05 UTC
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

Comment 5 Jonathan Earl Brassow 2012-04-23 18:29:22 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:
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.

Comment 7 errata-xmlrpc 2012-06-20 15:01:28 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-2012-0962.html