From owner-freebsd-questions@FreeBSD.ORG Thu Nov 3 15:40:22 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 85ACC16A41F for ; Thu, 3 Nov 2005 15:40:22 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2779C43D45 for ; Thu, 3 Nov 2005 15:40:21 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id jA3FeFAP031752; Thu, 3 Nov 2005 09:40:15 -0600 (CST) (envelope-from dan) Date: Thu, 3 Nov 2005 09:40:15 -0600 From: Dan Nelson To: Olaf Greve Message-ID: <20051103154015.GB67512@dan.emsphone.com> References: <436A09E9.5070905@axis.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <436A09E9.5070905@axis.nl> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: How to clear an improperly unreferenced file in multi-user mode? 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: Thu, 03 Nov 2005 15:40:22 -0000 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