Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2001 22:55:12 +1100
From:      Joshua Goodall <joshua@roughtrade.net>
To:        sothat <sothat@bsd.ee.ntu.edu.tw>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: du and df not consistency ?
Message-ID:  <20011230115512.GB70217@roughtrade.net>
In-Reply-To: <20011230030524.GA32059@bsd.ee.ntu.edu.tw>
References:  <20011230030524.GA32059@bsd.ee.ntu.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 30, 2001 at 11:05:24AM +0800, sothat wrote:
>     why the df output and du got the different result ?
>     ( I've sync many times :)

This is typically when a process has a file open on disk that has
been unlinked (rm'd). The file will continue to eat space until it
is closed. Typically this is visible when syslogd has been busy.
Try reloading your syslogd (kill -HUP `cat /var/run/syslog.pid`).
If that fixes it, there's your answer: open but unlinked logfiles.

Failing that there are three other techniques
a) "nuke" ; reboot the machine
b) "shotgun" ; restarting as many daemon processes as possible
c) "needle in a haystack" ; use fstat and/or lsof to go through
    the list of open files to find unexpected writers.

... in descending order of decisiveness and brutality, and
in ascending order of finesse and learning.

Regards

Joshua

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011230115512.GB70217>