Bug 983743
Summary: | external origin conversion attempt with reversed "-T" and "--thinpool" flag causes issues | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> |
Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> |
lvm2 sub component: | Default / Unclassified | QA Contact: | cluster-qe <cluster-qe> |
Status: | CLOSED CURRENTRELEASE | Docs Contact: | |
Severity: | high | ||
Priority: | unspecified | CC: | agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, thornber, zkabelac |
Version: | 7.0 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | lvm2-2.02.102-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-13 11:22:32 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: |
Description
Corey Marthaler
2013-07-11 20:40:18 UTC
While playing with all the possible flag scenarios, I ran across this issue: # Proper way to convert an external origin volume [root@qalvm-01 ~]# lvconvert --thinpool VG/POOL --originname extorigin1 -T origin1 Logical volume "extorigin1" created # Improper way to convert [root@qalvm-01 ~]# lvconvert -T VG/POOL --originname extorigin3 --thinpool origin3 Logical volume "origin3_tmeta" created origin3_tdata is expected to have only one segment using it, while it has 3 Failed to find pool_seg for origin3_tdata LV origin3_tdata: segment 1 pool data LV does not point back to same LV Internal error: LV segments corrupted in origin3_tdata. origin3_tdata is expected to have only one segment using it, while it has 3 Failed to find pool_seg for origin3_tdata LV POOL: thin pool segment 1 data LV does not refer back to pool LV Internal error: LV segments corrupted in POOL. 3.10.0-0.rc5.61.el7.x86_64 lvm2-2.02.99-0.79.el7 BUILT: Mon Jul 8 08:28:24 CDT 2013 lvm2-libs-2.02.99-0.79.el7 BUILT: Mon Jul 8 08:28:24 CDT 2013 lvm2-cluster-2.02.99-0.79.el7 BUILT: Mon Jul 8 08:28:24 CDT 2013 device-mapper-1.02.78-0.79.el7 BUILT: Mon Jul 8 08:28:24 CDT 2013 device-mapper-libs-1.02.78-0.79.el7 BUILT: Mon Jul 8 08:28:24 CDT 2013 device-mapper-event-1.02.78-0.79.el7 BUILT: Mon Jul 8 08:28:24 CDT 2013 device-mapper-event-libs-1.02.78-0.79.el7 BUILT: Mon Jul 8 08:28:24 CDT 2013 cmirror-2.02.99-0.79.el7 BUILT: Mon Jul 8 08:28:24 CDT 2013 same issue w/ reversed --thin and --thinpool: lvconvert --thin snapper_thinp/POOL --originname extorigin5 --thinpool origin5 origin5_tdata is expected to have only one segment using it, while it has 3 Failed to find pool_seg for origin5_tdata LV origin5_tdata: segment 1 pool data LV does not point back to same LV Internal error: LV segments corrupted in origin5_tdata. origin5_tdata is expected to have only one segment using it, while it has 3 Failed to find pool_seg for origin5_tdata LV POOL: thin pool segment 1 data LV does not refer back to pool LV Internal error: LV segments corrupted in POOL. Yep internal error is a bug a needs fix - tool needs to report it doesn't support thinpool to be read-only external origin. But just clarifying here --thin and -T are equal (T is shortcut for thin) So comment 3 and comment 1 are the same issue. Prohibited conversion of thin pool to external origin: https://www.redhat.com/archives/lvm-devel/2013-August/msg00036.html Fix verified in the latest rhel7 rpms. lvm2-2.02.105-1.el7 BUILT: Wed Jan 22 07:34:15 CST 2014 lvm2-libs-2.02.105-1.el7 BUILT: Wed Jan 22 07:34:15 CST 2014 lvm2-cluster-2.02.105-1.el7 BUILT: Wed Jan 22 07:34:15 CST 2014 device-mapper-1.02.84-1.el7 BUILT: Wed Jan 22 07:34:15 CST 2014 device-mapper-libs-1.02.84-1.el7 BUILT: Wed Jan 22 07:34:15 CST 2014 device-mapper-event-1.02.84-1.el7 BUILT: Wed Jan 22 07:34:15 CST 2014 device-mapper-event-libs-1.02.84-1.el7 BUILT: Wed Jan 22 07:34:15 CST 2014 device-mapper-persistent-data-0.2.8-3.el7 BUILT: Fri Dec 27 13:40:56 CST 2013 cmirror-2.02.105-1.el7 BUILT: Wed Jan 22 07:34:15 CST 2014 [root@host-050 ~]# lvconvert -T snapper_thinp/POOL --originname extorigin4 --thinpool origin4 Can't convert pool "snapper_thinp/origin4" to external origin. [root@host-050 ~]# lvconvert --thin snapper_thinp/POOL --originname extorigin5 --thinpool origin5 Can't convert pool "snapper_thinp/origin5" to external origin. This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |