Bug 1167431
| Summary: | "Assertion failed: can't _pv_write non-orphan PV" when removing vg containing thin pool stacked on cache volume | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> | ||||
| Component: | lvm2 | Assignee: | Zdenek Kabelac <zkabelac> | ||||
| lvm2 sub component: | LVM Metadata / lvmetad | QA Contact: | cluster-qe <cluster-qe> | ||||
| Status: | CLOSED ERRATA | Docs Contact: | |||||
| Severity: | medium | ||||||
| Priority: | unspecified | CC: | agk, heinzm, jbrassow, msnitzer, nperic, prajnoha, prockai, zkabelac | ||||
| Version: | 7.1 | ||||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | lvm2-2.02.125-1.el7 | Doc Type: | Bug Fix | ||||
| Doc Text: |
Bug in removal of cached LV caused vgremove command to fail. Failing code has been fixed.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2015-11-19 12:45:57 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: | |||||||
| Attachments: |
|
||||||
|
Description
Corey Marthaler
2014-11-24 18:17:20 UTC
Created attachment 960885 [details]
-vvvv of the vgremove
I'm conviced this bug was already fixed with cache fixed in 2.02.113 - so version 2.02.115 should work. Marking verified. I'm no longer able to reproduce this with the latest rpms. 3.10.0-302.el7.x86_64 lvm2-2.02.126-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 lvm2-libs-2.02.126-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 lvm2-cluster-2.02.126-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 device-mapper-1.02.103-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 device-mapper-libs-1.02.103-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 device-mapper-event-1.02.103-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 device-mapper-event-libs-1.02.103-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 device-mapper-persistent-data-0.5.4-1.el7 BUILT: Fri Jul 17 08:56:22 CDT 2015 cmirror-2.02.126-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 sanlock-3.2.4-1.el7 BUILT: Fri Jun 19 12:48:49 CDT 2015 sanlock-lib-3.2.4-1.el7 BUILT: Fri Jun 19 12:48:49 CDT 2015 lvm2-lockd-2.02.126-1.el7 BUILT: Tue Jul 28 11:32:33 CDT 2015 SCENARIO - [attempt_to_create_pool_from_already_cached_vol] *** Cache info for this scenario *** * origin (slow): /dev/mapper/mpathe2 * pool (fast): /dev/mapper/mpathe1 ************************************ Attempt to stack a cache pool on top of a cache volume Create origin (slow) volume lvcreate -L 4G -n stack1 cache_sanity /dev/mapper/mpathe2 Create cache data and cache metadata (fast) volumes lvcreate -L 2G -n pool cache_sanity /dev/mapper/mpathe1 lvcreate -L 12M -n pool_meta cache_sanity /dev/mapper/mpathe1 Create cache pool volume by combining the cache data and cache metadata (fast) volumes lvconvert --yes --type cache-pool --cachemode writethrough -c 64 --poolmetadata cache_sanity/pool_meta cache_sanity/pool WARNING: Converting logical volume cache_sanity/pool and cache_sanity/pool_meta to pool's data and metadata volumes. THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.) Create cached volume by combining the cache pool (fast) and origin (slow) volumes lvconvert --yes --type cache --cachepool cache_sanity/pool cache_sanity/stack1 Changing cache policy to cleaner lvcreate -L 8M -n meta2 cache_sanity /dev/mapper/mpathe1 Attempt to create a new cache pool volume by combining an existing cached volume and the new metadata volume lvconvert --yes --type cache-pool --poolmetadata cache_sanity/meta2 cache_sanity/stack1 Cached LV cache_sanity/stack1 could be only converted into a thin pool volume. Now create a new thin pool volume by combining the existing cached volume and the new metadata volume lvconvert --yes --type thin-pool --poolmetadata cache_sanity/meta2 cache_sanity/stack1 [root@harding-03 ~]# lvconvert --yes --type thin-pool --poolmetadata cache_sanity/meta2 cache_sanity/stack1 WARNING: Converting logical volume cache_sanity/stack1 and cache_sanity/meta2 to pool's data and metadata volumes. THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.) Converted cache_sanity/stack1 to thin pool. [root@harding-03 ~]# vgremove -f cache_sanity Logical volume "stack1" successfully removed Volume group "cache_sanity" successfully removed 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-2147.html |