dfeta samples disk freespace information on regular periods. then it
can show (rough) estimate time when disk/device will be full.
to sample current status (free space) on all local filesystems:
to get estimates for the sampled filesystems:
'dfeta sample' is supposed to be run on regular basis (for example
from the crontab). to attach it to every hour in the crontab you need
to enter this line:
0 * * * * /usr/local/bin/dfeta sample
dfeta holds current statistics in:
each 'sample' command will backup previous data file.
dfeta needs Perl. it is pure perl implementation and uses the following
all of them should be standard and packed inside the Perl package you have
install is simple. just put dfeta file in your visible executables path.
for example one of:
Device | Mount point | Estimate full at | Full in |
/dev/sda2 | / | [never] | [n/a] |
/dev/sdb2 | /third | Fri Sep 3 2010 | in 2 months |
/dev/sde2 | /home/cade/back | Mon Apr 14 2011 | in 9 months |
Q: what estimation algorithm is used?
A: currently only linear regression is used.
more algorithms will be added in the future.
no additional sampling will be needed for other algorithms.
just keeps your sampling regular!
dfeta is distributed under the GPL license, see COPYING for
the full license text.
all notes, suggestions, ideas you may have are welcome. thanks!