Recovering disk space from deleted file

Matt Shields matt-urrlRJtNKRMsHrnhXWJB8w at public.gmane.org
Mon Dec 20 13:26:29 EST 2010


On Mon, Dec 20, 2010 at 1:16 PM, Matt Shields <matt-urrlRJtNKRMsHrnhXWJB8w at public.gmane.org> wrote:

> I've come across this situation one other time but can't remember how I
> fixed it.
>
> There's a Jetty/Java process that had a 19GB log file.  I stopped the
> process, mv the jetty.log to jetty.log.old, started the jetty process again.
>  Then I deleted the file.  DF and DU still says that the space is still
> being take up, but checking the directory the file is gone and checking lsof
> I don't see the file being accessed, so it had to have been deleted.
>
> -matt
>

Nevermind, the file is in fact deleted and freed the space.  Seems that one
of the other sysadmin's installed VirtualBox on this servers, so the
.VirtualBox folder was consuming almost the same amount of disk space that
the log file was using.

-matt




More information about the Discuss mailing list