1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00
lvm2/daemons/dmeventd/plugins
Zdenek Kabelac 8c4f3633ac dmeventd_thin: new logic for calling commands
For more advanced support we need to ensure better logic for calling
external much more advanced script for maintanance of thin-pool.

So this new code ensures:

When thin-pool data or metadata is bigger then 50%,
then with each 5% increment, action is called.
This is independent from autoextend_threshold.
This action always happens when thin-pool is over threshold,
(so no action when it's exactly i.e. 60%).
The only exception is 100% full thin-pool - which invokes 'last'
action.

Since thin-pool occupancy may change also downward, code needs
to also handle possibly reduction of occupancy  of thin-pool.
So when usage drop from 90% to 50%, thin-pool will start to call
again action when it will pass 55% threshold.

This give external commands lot of option i.e. to call 'fstrim'
before actual resize is needed.
2017-01-20 23:58:56 +01:00
..
lvm2 dmeventd_thin: handling of internal command 2017-01-20 23:55:50 +01:00
mirror dmeventd: provide message context 2016-11-03 17:49:07 +01:00
raid cleanup: easier code for raid plugin 2016-12-09 15:15:02 +01:00
snapshot cleanup: clean gcc6 minor/major types warnings 2016-09-07 16:42:34 +02:00
thin dmeventd_thin: new logic for calling commands 2017-01-20 23:58:56 +01:00
Makefile.in doc: change fsf address 2016-01-21 12:11:37 +01:00