From nobody@FreeBSD.org  Fri Nov 19 09:56:31 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 88FEC16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Nov 2004 09:56:31 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 75F2C43D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Nov 2004 09:56:31 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id iAJ9uVNr021434
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Nov 2004 09:56:31 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id iAJ9uVB2021433;
	Fri, 19 Nov 2004 09:56:31 GMT
	(envelope-from nobody)
Message-Id: <200411190956.iAJ9uVB2021433@www.freebsd.org>
Date: Fri, 19 Nov 2004 09:56:31 GMT
From: Ole Thomsen <ole.thomsen@itechnology.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: df -h displays wrong values using FreeBSD 4.10 with Promise ATA RAID Fasttrack TX 2
X-Send-Pr-Version: www-2.3

>Number:         74109
>Category:       i386
>Synopsis:       df -h displays wrong values using FreeBSD 4.10 with Promise ATA RAID Fasttrack TX 2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 19 10:00:50 GMT 2004
>Closed-Date:    Fri Nov 19 21:58:48 GMT 2004
>Last-Modified:  Fri Nov 19 21:58:48 GMT 2004
>Originator:     Ole Thomsen
>Release:        4.10
>Organization:
iTechnology GmbH
>Environment:
FreeBSD backup.priv.itechnology.de 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004     root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
After "df -h" the machine shows the following:

Filesystem    Size   Used  Avail Capacity  Mounted on
/dev/ar0s1a   126M    35M    81M    30%    /
/dev/ar0s1f   252M    95M   137M    41%    /tmp
/dev/ar0s1g   182G   167G   515M   100%    /usr
/dev/ar0s1e   252M    81M   151M    35%    /var
procfs        4.0K   4.0K     0B   100%    /proc
backup:~>

Look at /dev/ar0s1g, it has a size if 182G, used are 167G and it shows 100% used, filesystem is full. When I copy more files on this filesystem, the capacity fieled displays more than 100% and the Avail field becomes a negative value.

That's strange, isn't it ?
>How-To-Repeat:
This problem is repeatable at all times, but the system never went down or crashed nor data loss has occurred.
>Fix:
n/a
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: le 
State-Changed-When: Fri Nov 19 21:55:34 GMT 2004 
State-Changed-Why:  
That's normal behaviour.  The UFS filesystem reserves a certain amount 
of space called the 'minimum free space treshold'.  This free space is 
used to optimize write performance on the filesystem and to avoid 
fragmentation.  The default value is 8% of the filesystem size. 

Have a look at the tunefs(8) man page, especially the -m parameter, 
for how to change this treshold value. 

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