On Mon, Nov 30, 2009 at 11:41:34AM -0700, Theo de Raadt wrote:
After it's been up for a few weeks I start seeing discrepancies
between what df tells me is free space and how much space du reports
as being used. A few weeks ago I got 'disk full' errors and rebooted
the thing which solved it for the moment, but not permanently.
From the newfs manual page:
-m free-space
The percentage of space reserved from normal users; the mini-
mum free space threshold. The default value used is 5%. See
tunefs(8) for more details on how to set this option.
That is one source of lost space that isn't really lost. Another one
is a file that is removed but still open by a program. Those bytes
will only be reclaimed once the program closes its file descriptor.
fstat(8) can be used to hunt the file and the offending program.
-Otto