Bug 589805
| Summary: | lvconvert fails with inactive LVs | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Corey Marthaler <cmarthal> | ||||
| Component: | lvm2 | Assignee: | Jonathan Earl Brassow <jbrassow> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Corey Marthaler <cmarthal> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 5.5 | CC: | agk, antillon.maurizio, bmarzins, bmr, cmarthal, dwysocha, heinzm, jbrassow, joe.thornber, jonathan, lvm-team, mbroz, msnitzer, prajnoha, prockai | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | lvm2-2.02.73-1.el5 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 582251 | Environment: | |||||
| Last Closed: | 2011-01-13 22:41:34 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 582251 | ||||||
| Bug Blocks: | |||||||
| Attachments: | 
 | ||||||
| Fix in lvm2-2.02.73-1.el5. The basic inactive lvconvert to mirror now works, still running all the other newly added test cases as a result of this bug... [root@taft-01 ~]# lvs -a -o +devices LV VG Attr LSize Copy% Devices volume taft -wi--- 500.00M /dev/sdb1(0) [root@taft-01 ~]# lvconvert -m+1 taft/volume /dev/sdc1 /dev/sdd1 Conversion starts after activation. [root@taft-01 ~]# lvchange -ay taft/volume [root@taft-01 ~]# lvs -a -o +devices LV VG Attr LSize Log Copy% Devices volume taft mwi-a- 500.00M volume_mlog 43.20 volume_mimage_0(0),volume_mimage_1(0) [volume_mimage_0] taft Iwi-ao 500.00M /dev/sdb1(0) [volume_mimage_1] taft Iwi-ao 500.00M /dev/sdc1(0) [volume_mlog] taft lwi-ao 4.00M /dev/sdd1(0) [root@taft-01 ~]# lvs -a -o +devices LV VG Attr LSize Log Copy% Devices volume taft mwi-a- 500.00M volume_mlog 100.00 volume_mimage_0(0),volume_mimage_1(0) [volume_mimage_0] taft iwi-ao 500.00M /dev/sdb1(0) [volume_mimage_1] taft iwi-ao 500.00M /dev/sdc1(0) [volume_mlog] taft lwi-ao 4.00M /dev/sdd1(0) 2.6.18-227.el5 lvm2-2.02.74-1.el5 BUILT: Fri Oct 15 10:26:21 CDT 2010 lvm2-cluster-2.02.74-2.el5 BUILT: Fri Oct 29 07:48:11 CDT 2010 device-mapper-1.02.55-1.el5 BUILT: Fri Oct 15 06:15:55 CDT 2010 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 The test cases for the lv conversion of inactive mirrors/linears eventually ends up failing due to issue 591710. However, the basic functionality works. Marking verified. lvconvert --mirrorlog disk -m 1 centipede/centi_base /dev/sdb3 sufficient pvs convert case failed on grant-01 Unable to determine mirror sync status of centipede/centi_base_mlog. Unable to remove primary mirror image while mirror is not in-sync An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0052.html | 
Created attachment 440970 [details] Patch for rhel5 to disallow new mirror conversion while one is already happening Patch is upstream since LVM2 Version 2.02.64 - 30th April 2010 WHATS_NEW entry: Disallow the addition of mirror images while a conversion is happening.