Date: 28 Jan 2003 20:27:12 -0500 From: Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com> To: freebsd-questions@freebsd.org Subject: Re: Deleted files not releasing their space (was Re: syslog message wrt inodes) Message-ID: <44ptqgoidr.fsf@be-well.ilk.org> In-Reply-To: <3E36E3AF.8030201@potentialtech.com> References: <20030128093720.A26639@asu.edu> <3E36E3AF.8030201@potentialtech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Bill Moran <wmoran@potentialtech.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44ptqgoidr.fsf>