Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Applications > Global File System (GFS) > Issue <<  40 of 71 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 3108
Last update: 09-30-05
Issue:
Why is there a mismatch between df and du outputs?
Resolution:

One of the things that GFS has to address is a file that has been unlinked, but not deallocated, when the system dies. It does this by adding a marker into the journal saying there is a floating inode when a file is unlinked.

When the inode is finally deallocated, the marker is removed from the journal. After a crash, systems finds those markers in the "looking for log elements" stage on reboot. It then goes and deallocates those inodes. So, if a node crashed and has a journal that has been replayed, but not remounted, there might be free space tied up that way.

The other possible issue is that a system can not deallocate an inode until all machines in the cluster have close the file.

The systems may be holding open (cached) various unlinked inodes and preventing the free space from being reclaimed. These situations will result in a difference between du and df output; once the root cause of the problem is resoled, the du and df outputs should converge.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Applications > Global File System (GFS) > Issue <<   40  of  71  >>