Bug 1133079
| Summary: | lvconvert validation is missing when same LV name is used for thinpool and originname | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Corey Marthaler <cmarthal> |
| Component: | lvm2 | Assignee: | Zdenek Kabelac <zkabelac> |
| lvm2 sub component: | Thin Provisioning (RHEL6) | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | high | CC: | agk, bmarzins, bmr, dwysocha, extras-qa, heinzm, jbrassow, jonathan, lvm-team, msnitzer, nperic, prajnoha, prockai, salmy, thornber, zkabelac |
| Version: | 6.6 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.02.117-1.el6 | Doc Type: | Bug Fix |
| Doc Text: |
lvconvert command missed to early validate --originame argument to be different from --thinpool. This has been detected later during actual command processing and showing internal error message to a user. Tool has been fixed and arguments are validated before conversion begins.
|
Story Points: | --- |
| Clone Of: | 1020413 | Environment: | |
| Last Closed: | 2015-07-22 07:35:15 UTC | Type: | Bug |
| 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: | 1020413 | ||
| Bug Blocks: | 1119323, 1153306 | ||
|
Description
Corey Marthaler
2014-08-22 15:59:37 UTC
This never made it into rhel6.6. [root@host-076 ~]# lvs -a -o +devices LV Attr LSize Pool Origin Data% Meta% Devices POOL twi-a-tz-- 100.00m 0.00 1.07 POOL_tdata(0) [POOL_tdata] Twi-ao---- 100.00m /dev/sdh1(1) [POOL_tmeta] ewi-ao---- 4.00m /dev/sde1(0) extorigin1 ori------- 100.00m /dev/sdh1(26) extorigin2 ori------- 100.00m /dev/sdh1(51) [lvol0_pmspare] ewi------- 4.00m /dev/sdh1(0) origin1 Vwi-a-tz-- 100.00m POOL extorigin1 0.00 origin2 Vwi-a-tz-- 100.00m POOL extorigin2 0.00 origin3 -wi-a----- 100.00m /dev/sdh1(76) origin4 twi-a-tz-- 100.00m 0.00 0.88 origin4_tdata(0) [origin4_tdata] Twi-ao---- 100.00m /dev/sdh1(101) [origin4_tmeta] ewi-ao---- 4.00m /dev/sdh1(176) origin5 twi-a-tz-- 100.00m 0.00 0.88 origin5_tdata(0) [origin5_tdata] Twi-ao---- 100.00m /dev/sdh1(126) [origin5_tmeta] ewi-ao---- 4.00m /dev/sdh1(177) origin6 -wi-a----- 100.00m /dev/sdh1(151) [root@host-076 ~]# lvconvert --thinpool snapper_thinp/origin6 --originname extorigin6 -T snapper_thinp/origin6 WARNING: Converting logical volume snapper_thinp/origin6 to pool's data volume. THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.) Do you really want to convert snapper_thinp/origin6? [y/n]: y Logical volume "lvol1" created Converted snapper_thinp/origin6 to thin pool. Logical volume "extorigin6" created Cannot rename internal LV "origin6_tdata". Internal error: Referenced LV origin6_tdata not listed in VG snapper_thinp. Manual intervention may be required to remove abandoned LV(s) before retrying. 2.6.32-494.el6.x86_64 lvm2-2.02.109-2.el6 BUILT: Tue Aug 19 09:32:25 CDT 2014 lvm2-libs-2.02.109-2.el6 BUILT: Tue Aug 19 09:32:25 CDT 2014 lvm2-cluster-2.02.109-2.el6 BUILT: Tue Aug 19 09:32:25 CDT 2014 udev-147-2.57.el6 BUILT: Thu Jul 24 08:48:47 CDT 2014 device-mapper-1.02.88-2.el6 BUILT: Tue Aug 19 09:32:25 CDT 2014 device-mapper-libs-1.02.88-2.el6 BUILT: Tue Aug 19 09:32:25 CDT 2014 device-mapper-event-1.02.88-2.el6 BUILT: Tue Aug 19 09:32:25 CDT 2014 device-mapper-event-libs-1.02.88-2.el6 BUILT: Tue Aug 19 09:32:25 CDT 2014 device-mapper-persistent-data-0.3.2-1.el6 BUILT: Fri Apr 4 08:43:06 CDT 2014 cmirror-2.02.109-2.el6 BUILT: Tue Aug 19 09:32:25 CDT 2014 Fixed with upstream commit (in version 2.02.113): https://www.redhat.com/archives/lvm-devel/2014-November/msg00187.html # lvcreate -L10 -n lvol1 vg Logical volume "lvol1" created. # lvconvert --thinpool vg/lvol1 --originname ext -T vg/lvol1 Can't use same name lvol1 for converted and pool volume. Run `lvconvert --help' for more information. Fix verified in the latest rpms. 2.6.32-550.el6.x86_64 lvm2-2.02.118-1.el6 BUILT: Tue Mar 24 08:25:21 CDT 2015 lvm2-libs-2.02.118-1.el6 BUILT: Tue Mar 24 08:25:21 CDT 2015 lvm2-cluster-2.02.118-1.el6 BUILT: Tue Mar 24 08:25:21 CDT 2015 udev-147-2.61.el6 BUILT: Mon Mar 2 05:08:11 CST 2015 device-mapper-1.02.95-1.el6 BUILT: Tue Mar 24 08:25:21 CDT 2015 device-mapper-libs-1.02.95-1.el6 BUILT: Tue Mar 24 08:25:21 CDT 2015 device-mapper-event-1.02.95-1.el6 BUILT: Tue Mar 24 08:25:21 CDT 2015 device-mapper-event-libs-1.02.95-1.el6 BUILT: Tue Mar 24 08:25:21 CDT 2015 device-mapper-persistent-data-0.3.2-1.el6 BUILT: Fri Apr 4 08:43:06 CDT 2014 cmirror-2.02.118-1.el6 BUILT: Tue Mar 24 08:25:21 CDT 2015 [root@host-080 ~]# lvconvert --thinpool snapper_thinp/origin6 --originname extorigin6 -T snapper_thinp/origin6 Can't use same name origin6 for converted and pool volume. Run `lvconvert --help' for more information. 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. https://rhn.redhat.com/errata/RHBA-2015-1411.html |