Am Donnerstag, 10. Februar 2005 16:57 schrieb ext Botykai Zsolt:
> just got some warning about lack of disk space, so I cheched it.
> # cd /home
> # du --max-depth=0 -m
> 3132
> # df -m | grep home
> /dev/hda5                 6733    5362     1030  84% /home
>
> Just thaught what hte heck???
> started to worrying, so fired up this mail to ask smart people on this
> list. while writing, did the same check (2 minutes later, bcause of some
> phone-calls).
>
> botykai-zsolt home # du --max-depth=0 -m
> 3132    .
> botykai-zsolt home # df -m | grep home
> /dev/hda5                 6733      3165      3227  50% /home
>
> WHAT?

This may happen when files are overwritten/deleted while still opened by 
some other process. The disc space cannot be freed until the last process 
closes the file(s) in question and the new file(s) are written to a 
different location. This also explains why "du" shows the same both times 
and "df" output is different.

HTH...

        Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Hambornerstra�e 55      | Web:  http://www.capgemini.com
D-40472 D�sseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

Attachment: pgpmqS295a7tP.pgp
Description: PGP signature

Reply via email to