me at andrew.net.au
Wed Dec 7 07:49:02 UTC 2005
On Tue, Dec 06, 2005 at 08:20:55PM +1030, David Lloyd wrote:
> > /tmp filled up on umlhost, and on inspection, there were a number of
> > large deleted files being help open in /tmp by the UML processes. I
> > figured a reboot would cause these files to be closed, and thus
> > properly removed from disk.
> Time for a DSL uberkludge:
> root# crontab -l
> 0 * * * * rm -rf /tmp/*
Except the files in question were already deleted. The only way I could tell
they were still loitering and tying up disk space was with lsof.
> Mind you stupid MySQL might go for a wander and other mentally retarded
> things that expect things in TEMPORARY directories to, ummmm, persist...
> I tend to treat /tmp as a place where I can just go "rm -rf *" without
> affecting things too drastically.
Same, but if the file's held open, it isn't actually unlinked from disk.
More information about the linux-aus