Bug 1876811
| Summary: | lvm attempts to resize a cached thinpool repeatedly | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | nikhil kshirsagar <nkshirsa> |
| Component: | lvm2 | Assignee: | Zdenek Kabelac <zkabelac> |
| lvm2 sub component: | Cache Logical Volumes | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED WONTFIX | Docs Contact: | |
| Severity: | medium | ||
| Priority: | unspecified | CC: | agk, heinzm, jbrassow, msnitzer, prajnoha, zkabelac |
| Version: | 7.6 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-11 21:42:14 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: | |||
Red Hat Enterprise Linux 7 shipped it's final minor release on September 29th, 2020. 7.9 was the last minor releases scheduled for RHEL 7. From intial triage it does not appear the remaining Bugzillas meet the inclusion criteria for Maintenance Phase 2 and will now be closed. From the RHEL life cycle page: https://access.redhat.com/support/policy/updates/errata#Maintenance_Support_2_Phase "During Maintenance Support 2 Phase for Red Hat Enterprise Linux version 7,Red Hat defined Critical and Important impact Security Advisories (RHSAs) and selected (at Red Hat discretion) Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available." If this BZ was closed in error and meets the above criteria please re-open it flag for 7.9.z, provide suitable business and technical justifications, and follow the process for Accelerated Fixes: https://source.redhat.com/groups/public/pnt-cxno/pnt_customer_experience_and_operations_wiki/support_delivery_accelerated_fix_release_handbook Feature Requests can re-opened and moved to RHEL 8 if the desired functionality is not already present in the product. Please reach out to the applicable Product Experience Engineer[0] if you have any questions or concerns. [0] https://bugzilla.redhat.com/page.cgi?id=agile_component_mapping.html&product=Red+Hat+Enterprise+Linux+7 Full support added upstream and resolved via bug 1899720 for RH8. |
Description of problem: Fill a cached thinpool to about 73% and have autoextend off in lvm.conf The kernel messages indicate that resize is attempted on the cached thinpool, though the threshold isn't reached. Version-Release number of selected component (if applicable): RHEL 7.6 lvm2-2.02.180-10.el7_6.3.x86_64 Steps to Reproduce: [root@vm252-122 ~]# vgcreate thinvg /dev/sdb /dev/sdc Volume group "thinvg" successfully created [root@vm252-122 ~]# lvcreate --yes --type thin-pool -n pool -l 100%FREE thinvg Thin pool volume with chunk size 64.00 KiB can address at most 15.81 TiB of data. Logical volume "pool" created. [root@vm252-122 ~]# lvcreate --yes -V 10G -n thin1 thinvg/pool WARNING: Sum of all thin volume sizes (10.00 GiB) exceeds the size of thin pool thinvg/pool and the size of whole volume group (1.99 GiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "thin1" created. [root@vm252-122 ~]# mkfs.xfs /dev/thinvg/thin1 meta-data=/dev/thinvg/thin1 isize=512 agcount=16, agsize=163840 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=0, sparse=0 data = bsize=4096 blocks=2621440, imaxpct=25 = sunit=16 swidth=16 blks naming =version 2 bsize=4096 ascii-ci=0 ftype=1 log =internal log bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=16 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 [root@vm252-122 ~]# vgextend thinvg /dev/sdd Volume group "thinvg" successfully extended [root@vm252-122 ~]# lvcreate --yes -L 100M -n cachemeta_lv thinvg /dev/sdd WARNING: Sum of all thin volume sizes (20.00 GiB) exceeds the size of thin pools and the size of whole volume group (<2.99 GiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "cachemeta_lv" created. [root@vm252-122 ~]# lvcreate --yes -l 80%PV -n cache_lv thinvg /dev/sdd WARNING: Sum of all thin volume sizes (20.00 GiB) exceeds the size of thin pools and the size of whole volume group (<2.99 GiB). WARNING: You have not turned on protection against thin pools running out of space. WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full. Logical volume "cache_lv" created. [root@vm252-122 ~]# lvconvert --yes --cachemode writeback --type cache-pool --poolmetadata thinvg/cachemeta_lv thinvg/cache_lv WARNING: Converting thinvg/cache_lv and thinvg/cachemeta_lv to cache pool's data and metadata volumes with metadata wiping. THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.) Converted thinvg/cache_lv and thinvg/cachemeta_lv to cache pool. [root@vm252-122 ~]# lvconvert --yes --cachepool thinvg/cache_lv --type cache thinvg/pool WARNING: Cached thin pool's data cannot be currently resized and require manual uncache before resize! Logical volume thinvg/pool_tdata is now cached. [root@vm252-122 ~]# date Tue Sep 8 04:17:56 EDT 2020 [root@vm252-122 ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert root rhel_vm252-122 -wi-ao---- <8.00g swap rhel_vm252-122 -wi-ao---- 1.00g pool thinvg twi-aotz-- 1.98g 1.10 11.13 thin1 thinvg Vwi-a-tz-- 10.00g pool 0.11 thin2 thinvg Vwi-a-tz-- 10.00g pool 0.11 [root@vm252-122 ~]# tail -f /var/log/messages Sep 8 04:02:04 vm252-122 lvm[8915]: Unable to resize logical volumes of cache type. Sep 8 04:02:04 vm252-122 lvm[8915]: Failed command for thinvg-pool-tpool. Sep 8 04:16:05 vm252-122 lvm[8915]: No longer monitoring thin pool othervg-otherpool-tpool. Sep 8 04:16:14 vm252-122 kernel: XFS (dm-6): Unmounting Filesystem Sep 8 04:16:21 vm252-122 dmeventd[8915]: No longer monitoring thin pool thinvg-pool-tpool. Sep 8 04:17:01 vm252-122 lvm[8915]: Monitoring thin pool thinvg-pool. Sep 8 04:17:09 vm252-122 dmeventd[8915]: No longer monitoring thin pool thinvg-pool. Sep 8 04:17:09 vm252-122 lvm[8915]: Monitoring thin pool thinvg-pool-tpool. Sep 8 04:17:49 vm252-122 dmeventd[8915]: No longer monitoring thin pool thinvg-pool-tpool. Sep 8 04:17:49 vm252-122 lvm[8915]: Monitoring thin pool thinvg-pool-tpool. fill the pool to about 70% [root@vm252-122 ~]# mount /dev/thinvg/thin1 /home/nkshirsa/formount/ [root@vm252-122 ~]# dd if=/dev/urandom of=/home/nkshirsa/formount/file1 bs=1M count=1500 1500+0 records in 1500+0 records out 1572864000 bytes (1.6 GB) copied, 7.96618 s, 197 MB/s [root@vm252-122 ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert root rhel_vm252-122 -wi-ao---- <8.00g swap rhel_vm252-122 -wi-ao---- 1.00g pool thinvg twi-aotz-- 1.98g 74.92 27.64 thin1 thinvg Vwi-aotz-- 10.00g pool 14.76 thin2 thinvg Vwi-a-tz-- 10.00g pool 0.11 [root@vm252-122 ~]# cat /etc/lvm/lvm.conf | grep autoextend | grep -v "#" snapshot_autoextend_threshold = 100 snapshot_autoextend_percent = 20 thin_pool_autoextend_threshold = 100 thin_pool_autoextend_percent = 20 [root@vm252-122 ~]# date Tue Sep 8 04:28:33 EDT 2020 messages tailed show this. Sep 8 04:28:39 vm252-122 lvm[8915]: Unable to resize logical volumes of cache type. Sep 8 04:28:39 vm252-122 lvm[8915]: Failed command for thinvg-pool-tpool. Sep 8 04:29:29 vm252-122 lvm[8915]: Unable to resize logical volumes of cache type. Sep 8 04:29:29 vm252-122 lvm[8915]: Failed command for thinvg-pool-tpool. Sep 8 04:30:59 vm252-122 lvm[8915]: Unable to resize logical volumes of cache type. Sep 8 04:30:59 vm252-122 lvm[8915]: Failed command for thinvg-pool-tpool. ---------------------------------