From nobody@FreeBSD.org  Wed Apr  3 10:45:32 2002
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 9319A37B41A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  3 Apr 2002 10:45:32 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g33IjW946621;
	Wed, 3 Apr 2002 10:45:32 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200204031845.g33IjW946621@freefall.freebsd.org>
Date: Wed, 3 Apr 2002 10:45:32 -0800 (PST)
From: Cecilia Cabrera <ccabrera@scooby.uba.ar>
To: freebsd-gnats-submit@FreeBSD.org
Subject: "df" shows a status (wrong) that differs from "du"'s status
X-Send-Pr-Version: www-1.0

>Number:         36701
>Category:       misc
>Synopsis:       "df" shows a status (wrong) that differs from "du"'s status
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 03 10:50:00 PST 2002
>Closed-Date:    Wed Apr 03 11:18:43 PST 2002
>Last-Modified:  Wed Apr 03 11:18:43 PST 2002
>Originator:     Cecilia Cabrera
>Release:        4.4-RELEASE
>Organization:
Universidad de Buenos Aires
>Environment:
FreeBSD valhala.uba.ar 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001   murray@builder.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386
>Description:
     The daily output's Disk status showed that the /var used space increased daily. This isn't usally so, since we have logs, it increases 1-2 % daily for a couple of days and then (when ziped) decreases back to the original size. When running df -k or df -h we got this result too, something like this:

Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/ad0s1a   1372527   928151   334574    74%    /
/dev/ad0s1e    372079   110213   232100    32%    /var
procfs              4        4        0   100%    /proc

but when doing:

#du -ks /var:

65982   /var

(which doesn't match!!) <--- this is the one that's right


Not knowing how to solve this, we used the "solution windows": rebooted. Now they're ok, they both show:
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/ad0s1a   1372527   928357   334368    74%    /
/dev/ad0s1e    372079    66073   276240    19%    /var
procfs              4        4        0   100%    /proc

#du -ks /var/
66070   /var/
>How-To-Repeat:
just sit and wait, it happended a couple of times.
>Fix:
     
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Wed Apr 3 11:17:38 PST 2002 
State-Changed-Why:  
It is a FAQ. Please take a look at 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#DU-VS-DF 

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