It is currently Wed, 20 Jan 2021 16:50:14 GMT

Author Message
 df not update
I run df command after I removed two big files. The result from df was not
changed. The du command gave the correct result. I used lsof to check, no
process hold the deleted files. I can not umount this file system. Is there
any way I can make the df right?



 Mon, 25 Sep 2006 07:32:57 GMT   
 df not update

I've only ever seen that in two situations.

1) The file is still open by a process.  You say you've checked that
   with lsof.  I sometimes use 'find /proc -type f -links 0'.  

2) You're using vxfs.  Sometimes VxFS filesystems will not show the
   available space for a short period of time.  It appears that some of
   the work continues in the background.  After a short period of time,
   the 'df' reappears.

Darren Dunham                                 
Senior Technical Consultant         TAOS  
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

 Mon, 25 Sep 2006 08:02:10 GMT   
 df not update

Another way, if you really need to know, is to run "fsck -n"
on the device for the filesystem.  Note the "-n" -- it's
very important, because without it, the filesystem might be
opened for writing.

If you have a file that's open but "deleted" (from the directory),
it will show up as an unreferenced file.

   - Logan

 Mon, 25 Sep 2006 17:03:14 GMT   
 df not update

The only explanation I can think of is that running processes *are*
holding open the deleted files.  How did you use lsof to check?  
Remember that you can't check by filename any more, because the
deleted files no longer have one...
             Christopher Mattern

"Which one you figure tracked us?"
"The ugly one, sir."
"...Could you be more specific?"

 Mon, 25 Sep 2006 22:06:35 GMT   
 df not update

There is also the possibility that the file is linked into more
than one directory.  For example:

        dd if=/dev/zero of=foo bs=1024k count=100
        ln foo bar
        df -k .
        rm foo
        df -k .

If you do this, the "rm foo" won't cause the "df" to show any
more free space.  But if you then do "rm bar", it will free
up the space.

   - Logan

 Tue, 26 Sep 2006 05:02:10 GMT   
   [ 5 post ] 

Similar Threads

1. Difference between df -k and df -b

2. df -v versus df -vf

3. Proble: df reports disk full, but not true

4. df not reporting root filesystem usage (but is reporting mounted dos drives)

5. df does not seem to register diskspace usage changes

6. / partition not found in df -k

7. format and df -k not jibing..?

8. OS says full partition, but df does not agree

9. df information is not up to date

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software