[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Monitor file system free space

On Tue, Dec 22, 2009 at 09:05:34AM -0700, green wrote:
> Osamu Aoki wrote at 2009-12-22 07:28 -0700:
> > On Tue, Dec 22, 2009 at 08:24:25AM -0500, mark@neidorff.com wrote:
> > > I had a problem with my (small) disk filling up and crashing my mail
> > > server.  So, I wrote a simple perl script to take the output of 'df -h'
> > > and look for a % full that is greater than 97% and send me an e-mail if
> > > the % is greater than 97.  I run the script daily from crontab.  It works
> > > fine.
> > 
> > 97% seems very high.
> > I think 80% is high enough. (This is just guts feeling....)
> That statement is too broad.  Percentage matters not at all, actual bytes free 
> space does matter.

True to some extent but in real life... who in the right mind fill up
disk so much and feels safe.  If you had data to fill, you are likely to
have more data coming your way.
> If I want 500MiB free space, that is 99.95% filled of 1TiB space, but
> 97.50% of 20GiB space.

Either is not smart level.  

If you had almost 20 GB filled, 500 MB is not sufficient for free space
for all practical purpose.

Clearlr, original poster was putting too much data other than mail.  I
always keep partition which have system critical data (I mean root, /var
/etc ... etc.) in less than 80% range.  I think kernel usually keeps 5%
or so anyway.  If one has such huge disk and such low %, then one must
partition system to keep safe space without worrying and monitoring.



Reply to: