Date: Thu, 3 Nov 2005 09:40:15 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: Olaf Greve <o.greve@axis.nl> Cc: freebsd-questions@freebsd.org Subject: Re: How to clear an improperly unreferenced file in multi-user mode? Message-ID: <20051103154015.GB67512@dan.emsphone.com> In-Reply-To: <436A09E9.5070905@axis.nl> References: <436A09E9.5070905@axis.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Nov 03), Olaf Greve said: > When doing some maintenance on my fall-back server I ran into > something weird. When running df it turned out /var was for 90% full. > I then manually deleted some files (as root over SSH), amongst which > the 'maillog' logfiles in /var/log, I also killed sendmail (as it was > generating the big log files, and at present I don't need to run it > on that machine), and just to be sure I created a new 'maillog file > of 0 length. Sendmail may be generating the events, but syslogd is the process that opens and writes to logfiles. Send it a HUP signal and it will close and reopen them, which should free up your missing space. If that doesn't do it, install lsof and run "lsof +L 1", which will tell you if there are any other processes holding open filehandles to deleted files. -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051103154015.GB67512>