[Lvlug] df vs. du
mstanley at technologist.com
Mon Apr 17 23:10:08 EDT 2006
On Monday 17 April 2006 10:09 pm, Randy Kramer wrote:
> I ran out of space on /home tonight. Found ~49M being used
> in /home/rhk/.rdoc. Afterwards, du /home tells me I'm using 31M, df tells
> me I'm using 195M.
> What am I missing?
I just ran into this on a RH 9 server. I tried using the -S (synch before
read) with df but it didn't help. It seemed to just take some time before df
caught up with the system.
I haven't looked into how df works but it is way to fast to be reading the
drive contents like du does so I am assuming that the data that df uses is
contained in a table somewhere that doesn't get updated immediately.
More information about the Lvlug