Discussion:
Debian slowly eating disk space?
Simon
2010-11-17 04:55:39 UTC
Permalink
Hi There,

We have a debian etch server with a 4.0GB / disk. It runs mysql on a
separate 80GB disk, which has plenty of space free.... Doing a "du -hs
*" on the root directory and counting up all the files on /, we get
1.5GB of files (approx)... but there is only 100MB left on the disk
and it is slowly getting less and less... Got me a little stumped! The
server has a separate 512MB SWAP, of which 498348k is free... i dont
get it :) any ideas on what to check on here?

Many thanks!

Simon

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Jan Bakuwel
2010-11-17 05:03:27 UTC
Permalink
Hi Simon,
Post by Simon
Hi There,
We have a debian etch server with a 4.0GB / disk. It runs mysql on a
separate 80GB disk, which has plenty of space free.... Doing a "du -hs
*" on the root directory and counting up all the files on /, we get
1.5GB of files (approx)... but there is only 100MB left on the disk
and it is slowly getting less and less... Got me a little stumped! The
server has a separate 512MB SWAP, of which 498348k is free... i dont
get it :) any ideas on what to check on here?
Most likely the space will be taken up by deleted files that are still open.

lsof will likely tell you more.

cheers,
Jan


_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Daniel Pittman
2010-11-17 05:10:14 UTC
Permalink
Post by Simon
We have a debian etch server with a 4.0GB / disk. It runs mysql on a
separate 80GB disk, which has plenty of space free.... Doing a "du -hs *" on
the root directory and counting up all the files on /, we get 1.5GB of files
(approx)... but there is only 100MB left on the disk and it is slowly
getting less and less... Got me a little stumped!
There are two things that could be eating that space, but the most likely one
is an unlinked logfile that is just growin' away.

You can track those down with fuser, lsof, or the content of /proc/$pid/fd,
and the log file will go away when you restart whatever service or application
is keeping that last reference open. (Rebooting does that, so obviously will
work to free the space too. :)

Did you recently delete a MySQL log file because it was growing all huge and
not rotating? Try telling MySQL to rotate logs...

Daniel
--
✣ Daniel Pittman ✉ ***@rimspace.net ☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Simon
2010-11-17 08:22:16 UTC
Permalink
Post by Daniel Pittman
There are two things that could be eating that space, but the most likely one
is an unlinked logfile that is just growin' away.
You can track those down with fuser, lsof, or the content of /proc/$pid/fd,
and the log file will go away when you restart whatever service or application
is keeping that last reference open.  (Rebooting does that, so obviously will
work to free the space too. :)
Thanks for the quick suggestions ppl.. It was unlined files in the
/tmp directory - you learn something every day! :) Love it.

Restarted the application and all is well again. Researching the issue
for a long term fix, but we have a workable workaround for the moment.

Many thanks.

Simon

_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug

Continue reading on narkive:
Search results for 'Debian slowly eating disk space?' (Questions and Answers)
7
replies
Dell vs. Mac?
started 2008-06-30 19:42:13 UTC
laptops & notebooks
Loading...