From owner-freebsd-questions Tue Jan 28 17:27:19 2003 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 806F337B401 for ; Tue, 28 Jan 2003 17:27:18 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id D168A43F3F for ; Tue, 28 Jan 2003 17:27:16 -0800 (PST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <20030129012714001008627oe>; Wed, 29 Jan 2003 01:27:14 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.6/8.12.6) with ESMTP id h0T1REtm086232 for ; Tue, 28 Jan 2003 20:27:14 -0500 (EST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.6/8.12.6/Submit) id h0T1RCpr086229; Tue, 28 Jan 2003 20:27:12 -0500 (EST) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f To: freebsd-questions@freebsd.org Subject: Re: Deleted files not releasing their space (was Re: syslog message wrt inodes) References: <20030128093720.A26639@asu.edu> <3E36E3AF.8030201@potentialtech.com> From: Lowell Gilbert Date: 28 Jan 2003 20:27:12 -0500 In-Reply-To: <3E36E3AF.8030201@potentialtech.com> Message-ID: <44ptqgoidr.fsf@be-well.ilk.org> Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bill Moran writes: > Let's see if I remember the details on this. > I believe this happens when a file is deleted, but another program still holds > a filehandle? to it. Thus, if you delete Apache's log file (for example) but > don't restart Apache, the space the logfile is using isn't truely freed. > (This is why newsyslog.conf has a column for the PID of a process to restart). > > So ... if you know which process had the files open, restart it (probably by > sending it a -HUP). Right. That's why newsyslog(8) can send a signal on rotating a log file. I'm not quite sure why this is relevant to the actual problem, because it's not really *that* many inodes involved in log files, but then again I'm not sure I completely understand the problem anyway... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message