From owner-freebsd-questions@FreeBSD.ORG Wed Feb 6 19:52:00 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 6EE8716A469 for ; Wed, 6 Feb 2008 19:52:00 +0000 (UTC) (envelope-from alex@schnarff.com) Received: from mho-01-bos.mailhop.org (mho-01-bos.mailhop.org [63.208.196.178]) by mx1.freebsd.org (Postfix) with ESMTP id 08B1F13C4DB for ; Wed, 6 Feb 2008 19:51:59 +0000 (UTC) (envelope-from alex@schnarff.com) Received: from c-98-204-176-196.hsd1.va.comcast.net ([98.204.176.196] helo=schnarff.com) by mho-01-bos.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1JMpwq-000KP5-Ji for freebsd-questions@freebsd.org; Wed, 06 Feb 2008 19:28:45 +0000 Received: (qmail 25713 invoked by uid 67); 6 Feb 2008 19:28:43 -0000 Received: from sf-nat.sourcefire.com (sf-nat.sourcefire.com [64.214.53.2]) by mail.schnarff.com (Horde) with HTTP for ; Wed, 06 Feb 2008 14:28:43 -0500 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 98.204.176.196 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/rliA0lP/BOucuDLRRDmbW0w5HkF2Z6Lk= Message-ID: <20080206142843.8hwz8rim80sgok8g@mail.schnarff.com> Date: Wed, 06 Feb 2008 14:28:43 -0500 From: alex@schnarff.com To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.4) Subject: df & du showing different usages for /var 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: Wed, 06 Feb 2008 19:52:00 -0000 After nearly running out of space on my /var partition recently, I went in to clean things up and ensure that it didn't happen again. Using the "du" command to look for offending directories and files, I wiped out a bunch of old Apache and Qmail logs...and then found that I was still using 90% of the partition. So I cd'd over to /var, and got this rather surprising set of results: [alex@tms /var]$ sudo du -sh 395M . [alex@tms /var]$ df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad4s1a 484M 126M 320M 28% / devfs 1.0K 1.0K 0B 100% /dev /dev/ad4s1f 269G 40G 207G 16% /data /dev/ad4s1d 9.7G 7.2G 1.7G 81% /usr /dev/ad4s1e 1.9G 1.6G 173M 90% /var These wildly different results have me confused. How in the world can there be a ~1.2GB difference between the disk space in use as reported by these two tools? Which is right? More importantly, how do I fix this? Thanks, Alex Kirk