Bug 1396256

Summary: LVM Thin: Add the option to call 'fstrim' when pool space is running low
Product: Red Hat Enterprise Linux 7 Reporter: Jonathan Earl Brassow <jbrassow>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
lvm2 sub component: Thin Provisioning QA Contact: cluster-qe <cluster-qe>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, thornber, zkabelac
Version: 7.2   
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: 2017-07-28 03:27:45 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:

Description Jonathan Earl Brassow 2016-11-17 19:31:52 UTC
Users should be able to have 'fstrim' run on a file system backed by thin-provisioning when the respective thin-pool crosses the fullness threshold.

This can allow the thin-pool to free up discarded space - potentially dropping the pool below the fullness threshold again without having to grow the pool.

Comment 1 Jonathan Earl Brassow 2017-07-28 03:27:45 UTC
This feature has been provided in 7.4.   The user can run anything they want if the produce a script and point lvm.conf:dmeventd/thin_command at it.

Closing my own bug here.