Description
Hello, i want to write munin plugin to monitor nilfs space with more detail. Is there easy and fast way to tell following?:
total size of volume (100%)
% of free/used space in total
% of space used by files in latest checkpoint
% of space used by files in older checkpoints (reclaimable + non-reclaimable)
% of space used by reclaimable checkpoints
% of space used by non-reclaimable checkpoints (checkpoints under protection period + snapshots)
% of space used by non-reclaimable checkpoints (checkpoints under protection period only)
% of space used by non-reclaimable checkpoints (snapshots only)
beside of % it would also be interesting to get absolute numbers in bytes and human readable format.
It should somehow add up. like:
TOTAL = files stored + deleted/overwrited files + free space
deleted/overwrited files = reclaimable checkpoints + non-reclaimable checkpoints
non-reclaimable checkpoints = pp cp + snapshots
Because right now if i do "df -h" on NILFS i can only see that there's some occupied space, but i can't directly tell if the occupied space is used by latest versions of files or by old versions that can/cannot be reclaimed.