Date: Sun, 28 Oct 2001 19:44:46 -0800 (PST) From: David Kirchner <davidk@accretivetg.com> To: Erik Rothwell <erothwell@callgtn.com> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: Discrepancies between 'df' and 'du'... Message-ID: <20011028194357.W35308-100000@localhost> In-Reply-To: <20011028095502.L33281-100000@endymion>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 28 Oct 2001, Erik Rothwell wrote: > Hi folks, > > I just noticed something really odd... if I run "df /var" I get this > output: > > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1e 99183 89342 1907 98% /var] > > However, if I do something like "du -skh /var" the result is: > > 17M /var > > That's a rather significant difference. As far as I can tell, the contents > of /var (not including symlinks to data on other filesystems) does not > include more than 17MB worth of data... is there any obvious reason why df > might report otherwise? > > Thanks... > > Erik. The most common reason for this is that you rm'd a file that is still held open by an application. Given that this is /var, I'll guess that it was syslogd. Check out 'fstat /var' or 'lsof' (from ports) to see what unlinked files are still open. 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?20011028194357.W35308-100000>