Re: du vs df size difference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



At Wed, 30 Sep 2009 14:10:46 -0700 (PDT) CentOS mailing list <centos@xxxxxxxxxx> 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@xxxxxxxxxx
> 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@xxxxxxxxxxxx       -- http://www.deepsoft.com/ModelRailroadSystem/
                                                                 
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux