[CentOS] du vs df size difference
Robert Heller
heller at deepsoft.com
Wed Sep 30 21:22:23 UTC 2009
At Wed, 30 Sep 2009 14:10:46 -0700 (PDT) CentOS mailing list <centos at centos.org> wrote:
>
> 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.
df does not look at files (deleted or not) at all! It just looks at
allocated inodes.
>
> 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
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Download the Model Railroad System
http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
heller at deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
More information about the CentOS
mailing list