From owner-freebsd-stable Fri Sep 13 10: 8:16 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D656637B400 for ; Fri, 13 Sep 2002 10:08:10 -0700 (PDT) Received: from ncsmtp02.ogw.rr.com (ncsmtp02.ogw.rr.com [24.93.67.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4949243E3B for ; Fri, 13 Sep 2002 10:08:10 -0700 (PDT) (envelope-from bts@fake.com) Received: from mail5.nc.rr.com (fe5 [24.93.67.52]) by ncsmtp02.ogw.rr.com (8.12.5/8.12.2) with ESMTP id g8DH8dup024829; Fri, 13 Sep 2002 13:08:39 -0400 (EDT) Received: from this.is.fake.com ([24.162.238.30]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Fri, 13 Sep 2002 13:08:08 -0400 Received: by this.is.fake.com (Postfix, from userid 111) id E491EBA12; Fri, 13 Sep 2002 13:07:32 -0400 (EDT) Content-Type: text/plain; charset="iso-8859-1" From: "Brian T. Schellenberger" To: Daniel Frazier , freebsd-stable@freebsd.org Subject: Re: bug in df? Date: Fri, 13 Sep 2002 13:07:32 -0400 User-Agent: KMail/1.4.2 References: <3D820AC3.3020502@magpage.com> In-Reply-To: <3D820AC3.3020502@magpage.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200209131307.32431.bts@babbleon.org> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Seems more likely to be a bug in du, don't you think? The 98% full, remember, just means 98% of the non-reserved space, which is usually 92% of the disk, so that 98% basically means 91%, which is consistent with the size it reports. You can find out, though: Just create a file (as roon) thats around 0.2G (200M) and if it succeeds, then you know that du is lying; if it fails, then df is lying. On Friday 13 September 2002 11:56 am, Daniel Frazier wrote: | greetz all, | | we brought our production mail server up to stable the other day and | I've noticed something wierd. df is inaccurately reporting the disk | space utilization on the /usr filesystem. | | trinity:~# uname -a | FreeBSD trinity.magpage.com 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #0: | Fri Sep 6 02:10:09 EDT 2002 mike@trinity.magpage.com:/usr/obj/us | r/src/sys/IPF2 i386 | | trinity:/usr# df -h | Filesystem Size Used Avail Capacity Mounted on | /dev/amrd0s1a 484M 97M 349M 22% / | /dev/amrd0s1f 9.5G 8.6G 155M 98% /usr | /dev/amrd0s1e 24G 8.2G 14G 38% /usr/local | /dev/amrd0s1g 31G 22G 6.2G 78% /var | procfs 4.0K 4.0K 0B 100% /proc | alaska:/home1 27G 18G 7.0G 72% /home1 | | trinity:/usr# du -h -d 1 | 8.2G ./local | 11M ./bin | 7.8M ./include | 29M ./lib | 9.7M ./libdata | 17M ./libexec | 6.5M ./sbin | 69M ./share | 296M ./src | 380M ./ports | 1.0K ./compat | 1.5M ./games | 315M ./obj | 2.4M ./home | 21M ./sup | 12M ./tmp | 3.0K ./X11R6 | 39K ./doc | 9.4G . | | as you can see /usr's usage is reported as being at 8.6G(98%), | however du shows 9.4G, 8.2 of which is in the /usr/local filesystem. | What gives? Is this a bug in df? or a bug in stable maybe? -- Brian, the man from Babble-On . . . . bts@babbleon.org (personal) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message