From owner-freebsd-questions@FreeBSD.ORG Fri Oct 31 01:32:15 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 F40C6106564A for ; Fri, 31 Oct 2008 01:32:14 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA10.emeryville.ca.mail.comcast.net (qmta10.emeryville.ca.mail.comcast.net [76.96.30.17]) by mx1.freebsd.org (Postfix) with ESMTP id D5CA78FC13 for ; Fri, 31 Oct 2008 01:32:14 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA08.emeryville.ca.mail.comcast.net ([76.96.30.12]) by QMTA10.emeryville.ca.mail.comcast.net with comcast id ZCtC1a0010FhH24AADYEhY; Fri, 31 Oct 2008 01:32:14 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA08.emeryville.ca.mail.comcast.net with comcast id ZDYC1a0032P6wsM8UDYCEf; Fri, 31 Oct 2008 01:32:13 +0000 X-Authority-Analysis: v=1.0 c=1 a=L6qYQmhLVqQA:10 a=_bM8OcOcC78A:10 a=QycZ5dHgAAAA:8 a=9S0bGS8UvzzNphwzs-MA:9 a=MU3CRC6wfv1r2bjfvzkA:7 a=sOXvkjWQaTBf_VF0U3esm6xgKEsA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 22E49C9419; Thu, 30 Oct 2008 18:32:12 -0700 (PDT) Date: Thu, 30 Oct 2008 18:32:12 -0700 From: Jeremy Chadwick To: Brendan Hart Message-ID: <20081031013212.GA19134@icarus.home.lan> References: <021f01c93a28$651752e0$2f45f8a0$@com.au> <200810301538.24819.fbsd.questions@rachie.is-a-geek.net> <03a101c93af6$e2f654d0$a8e2fe70$@com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03a101c93af6$e2f654d0$a8e2fe70$@com.au> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: 'Mel' , 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: Fri, 31 Oct 2008 01:32:15 -0000 On Fri, Oct 31, 2008 at 11:50:39AM +1030, Brendan Hart wrote: > >> #: 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 > > > Is this output untruncated? Is df really df or an alias to 'df -t nonfs'? > > Yes, it really is the untruncated output of "df -h". I also tried the "df -t > nonfs" and it gives exactly the same output as "df". What are you expecting > that is not present in the output ? > > > Is it possible that nfs directory got written to /usr at some point in > time? > > You would only notice this with du if the nfs directory is unmounted. > > Unmount it and ls -al /usr/mountpoint should only give you an empty dir > > Bingo!! That is exactly the problem. An NFS mount was hiding a 17G local dir > which had an old copy of the entire NFS mounted dir. I guess it must have > been written incorrectly to this standby server by RSYNC before the NFS > mount was put in place. I will add an exclusion to rsync to make sure it > does not happen again even if the NFS dir is not mounted. > > Thank you for your help, you have saved me much time rebuilding this server. Can either of you outline what exactly happened here? I'm trying to figure out how an "NFS mount was hiding a 17G local dir", when there's no NFS mounts shown in the above df output. This is purely an ignorant question on my part, but I'm not able to piece together what happened. -- | 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 |