Bug 1370490 - LVM Thin: Call fstrim when thin-pool high water mark is reached
Summary: LVM Thin: Call fstrim when thin-pool high water mark is reached
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Zdenek Kabelac
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 1410768 1442992
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-26 13:13 UTC by Jonathan Earl Brassow
Modified: 2021-09-03 12:49 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-27 21:52:47 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jonathan Earl Brassow 2016-08-26 13:13:39 UTC
When a thin-pool's high water mark is reached, it raises an event that is responded to by dmeventd.  'dmeventd' is charged with growing the thin-pool if possible.  Another way to free up space in the thin-pool is to call 'fstrim' on file systems associated with that pool.  It may be desirable to make this call configurable if it takes considerable time or I/O bandwidth to issue all the discard calls.

Comment 1 Zdenek Kabelac 2017-01-22 20:46:43 UTC
We will handle such 'policy' logic via external command.

The bug 1410768 will allow to write 'smart' userland handling - as running tools like 'fstrim' is way beyond lvm2 internal logic.

Comment 2 Jonathan Earl Brassow 2017-07-27 21:52:47 UTC
It is now possible to do whatever you want by defining a "thin_command" in lvm.conf and running what you want as things get full.


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