[CentOS] du vs df size difference

Wed Sep 30 21:10:46 UTC 2009
nate <centos at linuxpowered.net>

Ryan Pugatch wrote:

> I recognize that in most cases du and df are not going to report the
> same but I am concerned about having a 12GB disparity.  Does anyone have
> any thoughts about this or reason as to why there is a big difference?
> I have read a few articles online about it and none have really shown
> such a large difference.

du won't look at deleted files, while df will.

run

lsof | grep deleted

and see if any files are deleted are still open, space from them
will not be freed until the process releases the file handle.

nate