Bug 1225580
| Summary: | need to turn off ability to reduce size of thin pool meta device | ||
|---|---|---|---|
| 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: | high | ||
| Priority: | unspecified | CC: | agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, thornber, zkabelac |
| Version: | 6.7 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.02.140-1.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-11 01:17:11 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
2015-05-27 17:16:40 UTC
FWIW, cache pools appear to be locked down properly. # cache pool only [root@host-109 ~]# lvs -a -o +devices LV Attr LSize Pool Origin Data% Meta% Cpy%Sync Devices corigin -wi-a----- 4.00g /dev/sda1(0) display_cache Cwi---C--- 2.00g display_cache_cdata(0) [display_cache_cdata] Cwi------- 2.00g /dev/sdf1(0) [display_cache_cmeta] ewi------- 12.00m /dev/sdf1(512) [lvol0_pmspare] ewi------- 12.00m /dev/sdf1(515) [root@host-109 ~]# lvreduce -L -200M cache_sanity/display_cache Unable to resize logical volumes of cache type. [root@host-109 ~]# lvreduce -L -200M cache_sanity/display_cache_cdata Can't resize internal logical volume display_cache_cdata Run `lvreduce --help' for more information. [root@host-109 ~]# lvreduce -L -200M cache_sanity/display_cache_cmeta Can't resize internal logical volume display_cache_cmeta Run `lvreduce --help' for more information. [root@host-109 ~]# lvreduce -L -200M cache_sanity/lvol0_pmspare Can't resize internal logical volume lvol0_pmspare Run `lvreduce --help' for more information. # cache volume with cache pool [root@host-109 ~]# lvs -a -o +devices LV Attr LSize Pool Origin Data% Meta% Cpy%Sync Devices corigin Cwi-a-C--- 4.00g [display_cache] [corigin_corig] 0.01 4.39 0.00 corigin_corig(0) [corigin_corig] owi-aoC--- 4.00g /dev/sdc1(0) [display_cache] Cwi---C--- 2.00g 0.01 4.39 0.00 display_cache_cdata(0) [display_cache_cdata] Cwi-ao---- 2.00g /dev/sdb1(0) [display_cache_cmeta] ewi-ao---- 12.00m /dev/sdb1(512) [lvol0_pmspare] ewi------- 12.00m /dev/sdf1(0) [root@host-109 ~]# lvreduce -L -200M cache_sanity/corigin Unable to resize logical volumes of cache type. [root@host-109 ~]# lvreduce -L -200M cache_sanity/corigin_corig Can't resize internal logical volume corigin_corig Run `lvreduce --help' for more information. [root@host-109 ~]# lvreduce -L -200M cache_sanity/display_cache Can't resize internal logical volume display_cache Run `lvreduce --help' for more information. [root@host-109 ~]# lvreduce -L -200M cache_sanity/display_cache_cdata Can't resize internal logical volume display_cache_cdata Run `lvreduce --help' for more information. [root@host-109 ~]# lvreduce -L -200M cache_sanity/display_cache_cmeta Can't resize internal logical volume display_cache_cmeta Run `lvreduce --help' for more information. [root@host-109 ~]# lvreduce -L -200M cache_sanity/lvol0_pmspare Can't resize internal logical volume lvol0_pmspare Run `lvreduce --help' for more information. In some future version there will be support at least for reduction of metadata of inactive thin pool volume (essentially doing thin_restore into a smaller LV). But ATM it's clear fault of tool. Switched off by upstream commit: https://www.redhat.com/archives/lvm-devel/2015-August/msg00166.html Fix verified in the latest rpms. ### 6.7 [root@host-117 ~]# lvs -a -o +devices LV Attr LSize Pool Origin Data% Meta% Devices [lvol0_pmspare] ewi------- 4.00m /dev/sda1(0) origin Vwi-a-t--- 1.00g resize 31.84 other1 Vwi-a-t--- 1.00g resize 0.01 other2 Vwi-a-t--- 1.00g resize 0.01 other3 Vwi-a-t--- 1.00g resize 0.01 other4 Vwi-a-t--- 1.00g resize 0.01 other5 Vwi-a-t--- 1.00g resize 0.01 resize twi-aot--- 5.00g 6.53 0.28 resize_tdata(0) [resize_tdata] Twi-ao---- 5.00g /dev/sda1(1) [resize_tmeta] ewi-ao---- 104.00m /dev/sdf1(0) snap1 Vwi-a-t--- 1.00g resize origin 16.46 snap2 Vwi-a-t--- 1.00g resize origin 31.84 [root@host-117 ~]# lvreduce -L -2G snapper_thinp/resize Thin pool volumes cannot be reduced in size yet. Run `lvreduce --help' for more information. [root@host-117 ~]# lvreduce -f -L -100M snapper_thinp/resize_tmeta WARNING: Reducing active and open logical volume to 4.00 MiB THIS MAY DESTROY YOUR DATA (filesystem etc.) Size of logical volume snapper_thinp/resize_tmeta changed from 104.00 MiB (26 extents) to 4.00 MiB (1 extents). device-mapper: resume ioctl on failed: Invalid argument Unable to resume snapper_thinp-resize-tpool (253:4) Problem reactivating logical volume snapper_thinp/origin. Releasing activation in critical section. libdevmapper exiting with 2 device(s) still suspended. ### 6.8 [root@host-137 ~]# lvs -a -o +devices LV Attr LSize Pool Origin Data% Meta% Devices [lvol0_pmspare] ewi------- 4.00m /dev/sdd1(0) origin Vwi-a-t--- 1.00g resize 32.25 other1 Vwi-a-t--- 1.00g resize 0.01 other2 Vwi-a-t--- 1.00g resize 0.01 other3 Vwi-a-t--- 1.00g resize 0.01 other4 Vwi-a-t--- 1.00g resize 0.01 other5 Vwi-a-t--- 1.00g resize 0.01 resize twi-aot--- 5.00g 6.62 0.30 resize_tdata(0) [resize_tdata] Twi-ao---- 5.00g /dev/sdd1(1) [resize_tmeta] ewi-ao---- 104.00m /dev/sdb1(0) snap1 Vwi-a-t--- 1.00g resize origin 17.16 snap2 Vwi-a-t--- 1.00g resize origin 32.25 [root@host-137 ~]# lvreduce -L -2G snapper_thinp/resize Thin pool volumes cannot be reduced in size yet. Run `lvreduce --help' for more information. [root@host-137 ~]# lvreduce -f -L -100M snapper_thinp/resize_tmeta Thin pool metadata volumes cannot be reduced. Run `lvreduce --help' for more information. 2.6.32-615.el6.x86_64 lvm2-2.02.141-2.el6 BUILT: Wed Feb 10 07:49:03 CST 2016 lvm2-libs-2.02.141-2.el6 BUILT: Wed Feb 10 07:49:03 CST 2016 lvm2-cluster-2.02.141-2.el6 BUILT: Wed Feb 10 07:49:03 CST 2016 udev-147-2.71.el6 BUILT: Wed Feb 10 07:07:17 CST 2016 device-mapper-1.02.115-2.el6 BUILT: Wed Feb 10 07:49:03 CST 2016 device-mapper-libs-1.02.115-2.el6 BUILT: Wed Feb 10 07:49:03 CST 2016 device-mapper-event-1.02.115-2.el6 BUILT: Wed Feb 10 07:49:03 CST 2016 device-mapper-event-libs-1.02.115-2.el6 BUILT: Wed Feb 10 07:49:03 CST 2016 device-mapper-persistent-data-0.6.2-0.1.rc1.el6 BUILT: Wed Feb 10 09:52:15 CST 2016 cmirror-2.02.141-2.el6 BUILT: Wed Feb 10 07:49:03 CST 2016 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-2016-0964.html |