df showing 100% used, when du shows only 20% being used.
Marti, Rob
RJM002 at shsu.edu
Thu Jun 4 14:09:16 UTC 2009
This also can happen if you fill a disk, then mount something over the top of it - du will report the mounted space, df reports the underlying space used.
Rob Marti
-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of Mike Burger
Sent: Thursday, June 04, 2009 9:03 AM
To: General Red Hat Linux discussion list
Subject: Re: df showing 100% used, when du shows only 20% being used.
> I have a machine here where df shows a mount point being 100% full.
> However, when you do a du -h it shows that only 1.1G of the 5G is being
> used.
> How can I make sure that df is reporting accuratly?
Most likely, the df output is correct. Chances are that there's a process
that has file handles open on that filesystem. Those open file handles,
even if the file has been "deleted", hold open space in that filesystem
until the process that owns the file handle is closed.
Start by running "fuser /path/to/filesystem" or "fuser /dev/device" where
"device" is the /dev/ entry shown in the left-most column when you run df.
This will show you the PIDs of any process that has a presence in that
filesystem. Note...if the PID has the letter "c" at the end of it, it's a
shell, not necessarily an application process.
If you can stop (and if necessary restart) those processes, chances are
that whatever was holding the space will then release it, and your du and
df outputs will be more closely aligned.
--
Mike Burger
http://www.bubbanfriends.org
Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org
To be notified of updates to the web site, visit:
https://www.bubbanfriends.org/mailman/listinfo/site-update
or send a blank email message to:
site-update-subscribe at bubbanfriends.org
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list