RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1189215 - LVM Thin: Handle out of space conditions better
Summary: LVM Thin: Handle out of space conditions better
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Zdenek Kabelac
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-04 17:10 UTC by Jonathan Earl Brassow
Modified: 2021-09-03 12:54 UTC (History)
10 users (show)

Fixed In Version: lvm2-2.02.125-1.el7
Doc Type: Enhancement
Doc Text:
Feature: Improve handling of thin-pool better when pool is over provisioning available space. Reason: Thin-pool is always going to cause some troubles when user hits end of available free space and there is no more to add. So lvm2 should inform user about possible problems. Result: Lvm2 has code to check free space in thin-pool and warn in the case autoresize is not configured, or the total space in VG might not be enough to satisfy space requirements. Thin pools with used space over threshold do not allow creation of any new thin volumes
Clone Of:
Environment:
Last Closed: 2015-11-19 12:46:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1181033 0 unspecified CLOSED Thin provisioning should be giving some verbose info when it's being run without monitoring 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2015:2147 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2015-11-19 11:11:07 UTC

Internal Links: 1181033

Description Jonathan Earl Brassow 2015-02-04 17:10:04 UTC
Several ideas were discussed for handling issues surrounding out-of-space conditions in thin-p, like:
1) change the default "resize thin-p at 100%" setting in lvm.conf
2) warn users that they have insufficient space in a pool to cover a fully used thinLV
3) change default wait time from 60sec after an out-of-space condition to something longer
4) etc...

This bug is not dictating a particular action, but there should be some improvement.

Comment 3 Zdenek Kabelac 2015-07-08 14:36:45 UTC
Tool now detects overprovisioning of thin-pool and if the space in thin-pool is not enough and the threshold for thin-pool resize is still having 'default' 100% value - tool will issue WARNING to a user.

https://www.redhat.com/archives/lvm-devel/2015-July/msg00013.html

(patch includes tests for warning messaging in numerous conditions)

Comment 5 Corey Marthaler 2015-10-08 16:56:42 UTC
Many items were discussed in comment #0 of this RFE, however according to comment #3 only one (item number 2) was actually implemented. Marking this verified for that *one* item only.


[root@host-116 ~]# lvs -a -o +devices
  LV              VG            Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices       
  root            rhel_host-116 -wi-ao----   6.67g                                                     /dev/vda2(205)
  swap            rhel_host-116 -wi-ao---- 820.00m                                                     /dev/vda2(0)  
  POOL            snapper_thinp twi-aot---   1.00g             0.04   1.66                             POOL_tdata(0) 
  [POOL_tdata]    snapper_thinp Twi-ao----   1.00g                                                     /dev/sdh1(1)  
  [POOL_tmeta]    snapper_thinp ewi-ao----   4.00m                                                     /dev/sdf1(0)  
  display_snap    snapper_thinp Vwi-a-t---   1.00g POOL origin 0.01                                                  
  [lvol0_pmspare] snapper_thinp ewi-------   4.00m                                                     /dev/sdh1(0)  
  origin          snapper_thinp Vwi-a-t---   1.00g POOL        0.01                                                  
  other1          snapper_thinp Vwi-a-t---   1.00g POOL        0.01                                                  
  other2          snapper_thinp Vwi-a-t---   1.00g POOL        0.01                                                  
  other3          snapper_thinp Vwi-a-t---   1.00g POOL        0.01                                                  
  other4          snapper_thinp Vwi-a-t---   1.00g POOL        0.01                                                  
  other5          snapper_thinp Vwi-a-t---   1.00g POOL        0.01                                                  


  [root@host-116 ~]# lvcreate  --virtualsize 1G -T snapper_thinp/POOL -n other6
  WARNING: Sum of all thin volume sizes (8.00 GiB) exceeds the size of thin pool snapper_thinp/POOL (1.00 GiB)!
  For thin pool auto extension activation/thin_pool_autoextend_threshold should be below 100.
  Logical volume "other6" created.

Comment 6 errata-xmlrpc 2015-11-19 12:46:06 UTC
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


Note You need to log in before you can comment on or make changes to this bug.