From owner-freebsd-questions@FreeBSD.ORG Wed Nov 9 23:57:51 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82A6C16A41F for ; Wed, 9 Nov 2005 23:57:51 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: from ratchet.nebcorp.com (ratchet.nebcorp.com [205.217.153.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5628B43D48 for ; Wed, 9 Nov 2005 23:57:51 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: by ratchet.nebcorp.com (Postfix, from userid 1014) id 0175DD982E; Wed, 9 Nov 2005 15:57:50 -0800 (PST) Date: Wed, 9 Nov 2005 15:57:50 -0800 From: Danny Howard To: user Message-ID: <20051109235750.GF72876@ratchet.nebcorp.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Loop: djhoward@uiuc.edu Cc: freebsd-questions@freebsd.org Subject: Re: how do I tell FreeBSD to sync, for real ? 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, 09 Nov 2005 23:57:51 -0000 On Tue, Nov 08, 2005 at 04:34:04PM -0500, user wrote: > > Sometimes you delete a large batch of files, or you do some other serious > FS operations and the output of `df` does not tell you immediately of the > new disk space, etc. > > If you run something like: sync > > Or even: sync ; sync user, can you describe a reproducible phenomenon? Did you delete something from /var/log and you're waiting for df to reflect that? This is a common one ... if a process has a filehandle open, and you delete the file, the blocks on disk are not freed until the process closes that filehandle. If this is what's thwarting you, check out lsof. :) Cheers, -danny -- http://dannyman.toldme.com/