Bug 1251283
| Summary: | unable to rename thin pool with data volume stacked on top of cache volume | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Corey Marthaler <cmarthal> |
| Component: | lvm2 | Assignee: | Zdenek Kabelac <zkabelac> |
| lvm2 sub component: | Cache Logical Volumes | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | agk, cluster-qe, heinzm, jbrassow, lmiksik, lvm-team, msnitzer, prajnoha, prockai, rbednar, thornber, zkabelac |
| Version: | 7.2 | Keywords: | Triaged |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.02.175-1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1233954 | Environment: | |
| Last Closed: | 2018-04-10 15:16:02 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: | 1233954 | ||
| Bug Blocks: | 1469559 | ||
|
Description
Corey Marthaler
2015-08-06 21:58:36 UTC
Cloning for rhel7... [root@harding-03 ~]# lvrename /dev/snapper_thinp/POOLA /dev/snapper_thinp/POOLB Cannot rename "POOLA": name format not recognized for internal LV "cpool" 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 This seems to be fixed upstream (not sure of the exact commit). I'll put this bug in POST - at a minimum it will be fixed in the next rebuild. [root@bp-01 ~]# !lvs lvs -o name,segtype,attr,raidsyncaction,syncpercent,devices -a vg WARNING: Not using lvmetad because a repair command was run. LV Type Attr SyncAction Cpy%Sync Devices [cachepool] cache-pool Cwi---C--- 0.00 cachepool_cdata(0) [cachepool_cdata] linear Cwi-ao---- /dev/sdb1(1284) [cachepool_cmeta] linear ewi-ao---- /dev/sdb1(1282) lv thin-pool twi-aotz-- lv_tdata(0) [lv_tdata] cache Cwi-aoC--- 0.00 lv_tdata_corig(0) [lv_tdata_corig] linear owi-aoC--- /dev/sdb1(0) [lv_tmeta] linear ewi-ao---- /dev/sdb1(1409) [lvol0_pmspare] linear ewi------- /dev/sdb1(1280) thinLV thin Vwi-a-tz-- [root@bp-01 ~]# lvrename vg/lv thinpool WARNING: Not using lvmetad because a repair command was run. Renamed "lv" to "thinpool" in volume group "vg" [root@bp-01 ~]# lvs -o name,segtype,attr,raidsyncaction,syncpercent,devices -a vg WARNING: Not using lvmetad because a repair command was run. LV Type Attr SyncAction Cpy%Sync Devices [cachepool] cache-pool Cwi---C--- 0.00 cachepool_cdata(0) [cachepool_cdata] linear Cwi-ao---- /dev/sdb1(1284) [cachepool_cmeta] linear ewi-ao---- /dev/sdb1(1282) [lvol0_pmspare] linear ewi------- /dev/sdb1(1280) thinLV thin Vwi-a-tz-- thinpool thin-pool twi-aotz-- thinpool_tdata(0) [thinpool_tdata] cache Cwi-aoC--- 0.00 thinpool_tdata_corig(0) [thinpool_tdata_corig] linear owi-aoC--- /dev/sdb1(0) [thinpool_tmeta] linear ewi-ao---- /dev/sdb1(1409) Marking verified using latest rpms. # lvcreate -L 100M -n lv --type thin-pool vg Using default stripesize 64.00 KiB. Thin pool volume with chunk size 64.00 KiB can address at most 15.81 TiB of data. Logical volume "lv" created. # lvcreate -L 100M -n cpool --type cache-pool vg Using default stripesize 64.00 KiB. Logical volume "cpool" created. # lvconvert --yes --type cache --cachepool vg/cpool vg/lv WARNING: Cached thin pool's data cannot be currently resized and require manual uncache before resize! Logical volume vg/lv_tdata is now cached. # lvcreate -n thin_lv -V100M --type thin vg/lv Using default stripesize 64.00 KiB. Logical volume "thin_lv" created. # lvs -o name,segtype,attr,raidsyncaction,syncpercent,devices -a vg LV Type Attr SyncAction Cpy%Sync Devices [cpool] cache-pool Cwi---C--- 0.00 cpool_cdata(0) [cpool_cdata] linear Cwi-ao---- /dev/sda1(29) [cpool_cmeta] linear ewi-ao---- /dev/sda1(27) lv thin-pool twi-aotz-- lv_tdata(0) [lv_tdata] cache Cwi-aoC--- 0.00 lv_tdata_corig(0) [lv_tdata_corig] linear owi-aoC--- /dev/sda1(1) [lv_tmeta] linear ewi-ao---- /dev/sdj1(0) [lvol0_pmspare] linear ewi------- /dev/sda1(0) [lvol0_pmspare] linear ewi------- /dev/sda1(26) thin_lv thin Vwi-a-tz-- # lvrename -y vg/lv thinpool Renamed "lv" to "thinpool" in volume group "vg" 3.10.0-727.el7.x86_64 lvm2-2.02.175-2.el7 BUILT: Fri Oct 13 13:31:22 CEST 2017 lvm2-libs-2.02.175-2.el7 BUILT: Fri Oct 13 13:31:22 CEST 2017 lvm2-cluster-2.02.175-2.el7 BUILT: Fri Oct 13 13:31:22 CEST 2017 device-mapper-1.02.144-2.el7 BUILT: Fri Oct 13 13:31:22 CEST 2017 device-mapper-libs-1.02.144-2.el7 BUILT: Fri Oct 13 13:31:22 CEST 2017 device-mapper-event-1.02.144-2.el7 BUILT: Fri Oct 13 13:31:22 CEST 2017 device-mapper-event-libs-1.02.144-2.el7 BUILT: Fri Oct 13 13:31:22 CEST 2017 device-mapper-persistent-data-0.7.3-2.el7 BUILT: Tue Oct 10 11:00:07 CEST 2017 cmirror-2.02.175-2.el7 BUILT: Fri Oct 13 13:31:22 CEST 2017 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://access.redhat.com/errata/RHEA-2018:0853 |