From owner-freebsd-questions@FreeBSD.ORG Thu Oct 30 01:11:43 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 20B251065673 for ; Thu, 30 Oct 2008 01:11:43 +0000 (UTC) (envelope-from brendanh@strategicecommerce.com.au) Received: from ibismail1.strategicecommerce.com.au (ibismail1.strategicecommerce.com.au [210.11.55.82]) by mx1.freebsd.org (Postfix) with ESMTP id CBB078FC1D for ; Thu, 30 Oct 2008 01:11:42 +0000 (UTC) (envelope-from brendanh@strategicecommerce.com.au) Received: from localhost (localhost.strategicecommerce.com.au [127.0.0.1]) by ibismail1.strategicecommerce.com.au (Postfix) with ESMTP id 926245A2024 for ; Thu, 30 Oct 2008 10:56:36 +1030 (CST) Received: from ibismail1.strategicecommerce.com.au ([127.0.0.1]) by localhost (ibismail1.strategicecommerce.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 89274-03 for ; Thu, 30 Oct 2008 10:56:32 +1030 (CST) Received: from SELBrendan (lnk11.adl9.adsl.esc.net.au [123.136.46.11]) by ibismail1.strategicecommerce.com.au (Postfix) with ESMTP id 0ACD1526BF8 for ; Thu, 30 Oct 2008 10:56:32 +1030 (CST) From: "Brendan Hart" To: Date: Thu, 30 Oct 2008 11:12:32 +1030 Message-ID: <021f01c93a28$651752e0$2f45f8a0$@com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ack6KGO7r9Kd7wKQRVGQEpVyYJxalA== Content-Language: en-au X-Virus-Scanned: amavisd-new at ibismail1.strategicecommerce.com.au Subject: 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:11:43 -0000 Hi, 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. I have reviewed the FAQ, particularly item 9.24 "The du and df commands show different amounts of disk space available. What is going on?". However, the suggested cause of the discrepancy (large files already unlinked but still held open by active processes), does not appear to be true in this case as problem is present even after rebooting into single user mode. #: uname -a FreeBSD ibisweb4spare.strategicecommerce.com.au 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 #: df -h Filesystem Size Used Avail Capacity Mounted on /dev/aacd0s1a 496M 163M 293M 36% / devfs 1.0K 1.0K 0B 100% /dev /dev/aacd0s1e 496M 15M 441M 3% /tmp /dev/aacd0s1f 28G 25G 1.2G 96% /usr /dev/aacd0s1d 1.9G 429M 1.3G 24% /var #: du -x -h /usr 2.0K /usr/.snap 24M /usr/bin .... .... 584M /usr/ports 140K /usr/lost+found 7.6G /usr The server is used as a standby machine and a nightly cronjob which uses RSYNC to make a copy of the /usr partition from a live server. Depending on how recently the logs have been culled, the Live server has approximately 7-10GB of data on the /usr partition, so I would expect the same size of data on the standby server. This may be irrelevant, but the server also has an external data directory with 11GB mounted via NFS as a directory under the USR partition. Next, I began to suspect some sort of disk corruption (echoes of the old days of MSDOS lost cluster chains) and I have attempted to find disk issues by running fsck, but no issues were reported and the issue was not remedied. I also tried running fsck in single user mode, again, no improvement. Can anyone suggest what I can try next? Best Regards, Brendan Hart --------------------------------- Brendan Hart, Development Manager Strategic Ecommerce Division Securepay Pty Ltd Phone: 08-8274-4000 Fax: 08-8274-1400 __________ Information from ESET NOD32 Antivirus, version of virus signature database 3567 (20081029) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com