From owner-freebsd-questions Wed Aug 6 17:34:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA00964 for questions-outgoing; Wed, 6 Aug 1997 17:34:18 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id RAA00959 for ; Wed, 6 Aug 1997 17:34:14 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id KAA09527; Thu, 7 Aug 1997 10:34:34 +1000 From: Greg Lehey Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id KAA01536; Thu, 7 Aug 1997 10:03:34 +0930 (CST) Message-Id: <199708070033.KAA01536@freebie.lemis.com> Subject: Re: Strange df output: what's wrong? In-Reply-To: from Vladimir Kushnir at "Aug 7, 97 01:16:33 am" To: kushn@olinet.isf.kiev.ua (Vladimir Kushnir) Date: Thu, 7 Aug 1997 10:03:34 +0930 (CST) Cc: freebsd-questions@FreeBSD.ORG Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Vladimir Kushnir writes: > Hello all, > > I've just noticed that df gives me a strange output for /usr: > > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/wd0a 31775 14491 14742 50% / > /dev/wd0s2f 826575 657381 103068 86% /usr > /dev/wd0s2e 29727 4826 22523 18% /var > procfs 4 4 0 100% /proc > > It looks like some 66 Mb just desappeared. I've checked /usr with du and > it confirms the 657381 Mb space used. This is definitely not swap, and I > don't see any lost files (or whatever). Nor did I find the possible source > for this inconsistency in docs. Would please anybody explain what can be > wrong (if there is something) and how can I fix it? Well, you don't say exactly what you think the problem is, but I suspect you mean that the sum of Used and Avail is 66 MB less than the total. This isn't just on /usr, by the way. This is a feature, not a bug. The last 8% of the file system is available for use only by root. 100% capacity and the "Avail" column correspond to the maximum available for allocation by any user. If you overfill your file system, you'll see the Capacity field go up to 109%. See tunefs(8), parameter -m (minfree) for more details. Greg