From owner-freebsd-questions@FreeBSD.ORG Thu Oct 30 01:19:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DA781065670 for ; Thu, 30 Oct 2008 01:19:51 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [76.96.30.24]) by mx1.freebsd.org (Postfix) with ESMTP id 202498FC17 for ; Thu, 30 Oct 2008 01:19:50 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA07.emeryville.ca.mail.comcast.net ([76.96.30.59]) by QMTA02.emeryville.ca.mail.comcast.net with comcast id YjeC1a01d1GXsucA2pKqYr; Thu, 30 Oct 2008 01:19:50 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA07.emeryville.ca.mail.comcast.net with comcast id YpKp1a0052P6wsM8TpKpKh; Thu, 30 Oct 2008 01:19:50 +0000 X-Authority-Analysis: v=1.0 c=1 a=L6qYQmhLVqQA:10 a=_bM8OcOcC78A:10 a=QycZ5dHgAAAA:8 a=ySm69qJTqLsWof_vPecA:9 a=we464Q1FNNw8QccT-2UYFHLF1BYA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 08552C9419; Wed, 29 Oct 2008 18:19:49 -0700 (PDT) Date: Wed, 29 Oct 2008 18:19:49 -0700 From: Jeremy Chadwick To: Brendan Hart Message-ID: <20081030011949.GA91409@icarus.home.lan> References: <021f01c93a28$651752e0$2f45f8a0$@com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <021f01c93a28$651752e0$2f45f8a0$@com.au> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: Large discrepancy in reported disk usage on USR partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2008 01:19:51 -0000 On Thu, Oct 30, 2008 at 11:12:32AM +1030, Brendan Hart wrote: > I have inherited some servers running various releases of FreeBSD and I am > having some trouble with the /usr partition on one of these boxen. > > The problem is that there appears to be far more space used on the USR > partition than there are actual files on the partition. The utility "df -h" > reports 25GB used (i.e. nearly the whole partition), but "du -x /usr" > reports only 7.6GB of files. Have you tried playing with tunefs(8), -m flag? I can't reproduce this behaviour on any of our systems. icarus# df -k /usr Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/ad12s1f 167879968 1973344 152476228 1% /usr icarus# du -sx /usr 1973344 /usr eos# df -k /usr Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/ad0s1f 32494668 2261670 27633426 8% /usr eos# du -sx /usr 2261670 /usr anubis# df -k /usr Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/ad4s1f 80010344 1809620 71799898 2% /usr anubis# du -sx /usr 1809620 /usr horus# df -k /usr Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/ad4s1f 32494668 1608458 28286638 5% /usr horus# du -sx /usr 1608458 /usr -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |