[mdlug] Something's eating my /home partition
Robert Citek
robert.citek at gmail.com
Mon Apr 19 21:48:18 EDT 2010
On Fri, Apr 16, 2010 at 9:59 PM, David McMillan <skyefire at skyefire.org> wrote:
> Since the unique thing about this machine vs my other linux boxes is
> that it's a server, my guess is that this is somehow related. But I
> can't find *what* is eating up all the space in the partition. Does
> this remind anyone of anything?
Yes. A running process is writing to a file that has been deleted.
The process is still running and writing data to the file, but there's
no record of the file. Here's an example of how to do that:
$ for i in {1..10000} ; do date ; sleep 1 ; done > foobar &
$ rm -f foobar
$ lsof -p $!
> Or does anyone know of a good way to
> list all files and/or directories in a partition sorted for size?
$ du -k /home/ | sort -n
Good luck and let us know how things go.
Regards,
- Robert
More information about the mdlug
mailing list