From nobody@FreeBSD.org  Wed Jan 31 20:17:39 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 5A00537B503
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 31 Jan 2001 20:17:39 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f114HdY88489;
	Wed, 31 Jan 2001 20:17:39 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102010417.f114HdY88489@freefall.freebsd.org>
Date: Wed, 31 Jan 2001 20:17:39 -0800 (PST)
From: adsouza@math.uwaterloo.ca
To: freebsd-gnats-submit@FreeBSD.org
Subject: df and du provide conflicting data
X-Send-Pr-Version: www-1.0

>Number:         24772
>Category:       bin
>Synopsis:       df and du provide conflicting data
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 31 20:20:03 PST 2001
>Closed-Date:    Thu Feb 1 02:36:02 PST 2001
>Last-Modified:  Thu Feb 01 02:37:39 PST 2001
>Originator:     Antonio D'souza
>Release:        4.2-stable
>Organization:
Checkfree i-Solutions
>Environment:
FreeBSD 4.2-STABLE #0: Fri Jan 19 21:51:36 EST 2001     root@alice.cshouse:/usr/obj/usr/src/sys/QUIK  i386
>Description:
I have a 300MB partition for /var and df claims that it has only 20 MB free but when I run du -s . inside /var it shows only 130MB used.
This is rather alarming as I am now unsure of my filesystem integrity.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Neil Blakey-Milner <nbm@mithrandr.moria.org>
To: adsouza@math.uwaterloo.ca
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/24772: df and du provide conflicting data
Date: Thu, 1 Feb 2001 11:14:29 +0200

 On Wed 2001-01-31 (20:17), adsouza@math.uwaterloo.ca wrote:
 > >Number:         24772
 > >Category:       bin
 > >Synopsis:       df and du provide conflicting data
 > >Severity:       serious
 > >Priority:       high
 > >Description:
 > I have a 300MB partition for /var and df claims that it has only 20 MB
 > free but when I run du -s . inside /var it shows only 130MB used.
 > This is rather alarming as I am now unsure of my filesystem integrity.
 
 You probably have a largish log file or two that are open, and were on
 /var, and were deleted.  Try killall -HUP syslogd, and other similar log
 file consumers, and see if it continues to be out of sync.
 
 du and df don't have to correlate - they do different things.
 
 Neil
 -- 
 Neil Blakey-Milner
 nbm@mithrandr.moria.org
 
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Thu Feb 1 02:36:02 PST 2001 
State-Changed-Why:  
As pointed out by Neil df and du don't have to agree if 
a process still has a deleted file open. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=24772 
>Unformatted:
