Bug 1069364
| Summary: | Lvm2 allowed to start thin pool with smaller transaction_id by 1 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Zdenek Kabelac <zkabelac> |
| 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: | unspecified | ||
| Priority: | unspecified | CC: | agk, cmarthal, heinzm, jbrassow, msnitzer, nperic, prajnoha, prockai, thornber, zkabelac |
| Version: | 7.0 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.02.105-8.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-13 12:07:42 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
Zdenek Kabelac
2014-02-24 20:29:59 UTC
Solved upstream by these patches: https://www.redhat.com/archives/lvm-devel/2014-February/msg00126.html https://www.redhat.com/archives/lvm-devel/2014-February/msg00127.html Tested in upstream test-suite with this test: https://www.redhat.com/archives/lvm-devel/2014-February/msg00137.html Actually, the patch for this is already in current lvm2-2.02.105-8.el7. Fix verified in the latest rpms. 3.10.0-113.el7.x86_64 lvm2-2.02.105-13.el7 BUILT: Wed Mar 19 05:38:19 CDT 2014 lvm2-libs-2.02.105-13.el7 BUILT: Wed Mar 19 05:38:19 CDT 2014 lvm2-cluster-2.02.105-13.el7 BUILT: Wed Mar 19 05:38:19 CDT 2014 device-mapper-1.02.84-13.el7 BUILT: Wed Mar 19 05:38:19 CDT 2014 device-mapper-libs-1.02.84-13.el7 BUILT: Wed Mar 19 05:38:19 CDT 2014 device-mapper-event-1.02.84-13.el7 BUILT: Wed Mar 19 05:38:19 CDT 2014 device-mapper-event-libs-1.02.84-13.el7 BUILT: Wed Mar 19 05:38:19 CDT 2014 device-mapper-persistent-data-0.2.8-5.el7 BUILT: Fri Feb 28 19:15:56 CST 2014 cmirror-2.02.105-13.el7 BUILT: Wed Mar 19 05:38:19 CDT 2014 # edited /tmp/snapper_thinp_dump.3588.10731 and dropped id by one. [root@host-031 ~]# thin_restore -i /tmp/snapper_thinp_dump.3588.10731 -o /dev/snapper_thinp/newtmeta [root@host-031 ~]# vgchange -an snapper_thinp 0 logical volume(s) in volume group "snapper_thinp" now active [root@host-031 ~]# lvconvert --yes --poolmetadata snapper_thinp/newtmeta --thinpool snapper_thinp/POOL Converted snapper_thinp/POOL to thin pool. [root@host-031 ~]# vgchange -ay snapper_thinp Thin pool transaction_id=6, while expected: 7. Thin pool transaction_id=6, while expected: 7. Thin pool transaction_id=6, while expected: 7. Thin pool transaction_id=6, while expected: 7. Thin pool transaction_id=6, while expected: 7. Thin pool transaction_id=6, while expected: 7. Thin pool transaction_id=6, while expected: 7. 1 logical volume(s) in volume group "snapper_thinp" now active # none of the thin volumes were activated: [root@host-031 ~]# lvs -a -o +devices LV Attr LSize Pool Origin Devices POOL twi---tz-- 1.00g POOL_tdata(0) [POOL_tdata] Twi------- 1.00g /dev/sdc1(1) [POOL_tmeta] ewi------- 8.00m /dev/sdc1(257) [lvol0_pmspare] ewi------- 4.00m /dev/sdc1(0) newtmeta -wi-a----- 4.00m /dev/sdb1(0) origin Vwi---tz-- 1.00g POOL other1 Vwi---tz-- 1.00g POOL other2 Vwi---tz-- 1.00g POOL other3 Vwi---tz-- 1.00g POOL other4 Vwi---tz-- 1.00g POOL other5 Vwi---tz-- 1.00g POOL snap Vwi---tz-k 1.00g POOL 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. |