From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 11:05:36 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5839137B490 for ; Wed, 9 Jul 2003 11:05:36 -0700 (PDT) Received: from fubar.adept.org (fubar.adept.org [63.147.172.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id C359643F93 for ; Wed, 9 Jul 2003 11:05:35 -0700 (PDT) (envelope-from mike@adept.org) Received: by fubar.adept.org (Postfix, from userid 1001) id B80141524B; Wed, 9 Jul 2003 11:05:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by fubar.adept.org (Postfix) with ESMTP id B728115247 for ; Wed, 9 Jul 2003 11:05:35 -0700 (PDT) Date: Wed, 9 Jul 2003 11:05:35 -0700 (PDT) From: Mike Hoskins To: freebsd-stable@freebsd.org In-Reply-To: Message-ID: <20030709110208.G77890@fubar.adept.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 18:05:36 -0000 On Wed, 9 Jul 2003, Jan Grant wrote: > On Wed, 9 Jul 2003, Kirk Strauser wrote: > > At 2003-07-09T08:36:50Z, "Brandon S. Allbery KF8NH" writes: > > > Install sysutils/lsof and use it to find what program has a deleted file > > > open on /var; kill that program, and the space will be reclaimed. > > I see that advice a lot. Is lsof inherently superior to `fstat' in the base > > system? I think it's just Linux/SysV folks that are used to lsof. > You don't _need_ lsof, it just ties things neatly together for you. If > you don't have lsof (for whatever reason), you can scan down /var > looking for "missing" open inodes - eg, the script at > http://ioctl.org/unix/scripts/openfiles Couldn't you also just do something like, `find /var|xargs lsof` That seems to yield similar output as lsof for me... Granted, some columns are swapped around. -mrh -- From: "Spam Catcher" To: spam-catcher@adept.org Do NOT send email to the address listed above or you will be added to a blacklist!