From owner-freebsd-questions Mon Feb 4 15:16:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 3464137B426 for ; Mon, 4 Feb 2002 15:16:26 -0800 (PST) Received: from user-33qtm48.dialup.mindspring.com ([199.174.216.136] helo=gohan.cjclark.org) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16XsLY-000144-00; Mon, 04 Feb 2002 15:16:25 -0800 Received: (from cjc@localhost) by gohan.cjclark.org (8.11.6/8.11.1) id g120cxB01449; Fri, 1 Feb 2002 16:38:59 -0800 (PST) (envelope-from cjc) Date: Fri, 1 Feb 2002 16:38:59 -0800 From: "Crist J. Clark" To: "Dennis I. Kovarsky" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: df Message-ID: <20020201163859.A1280@gohan.cjclark.org> Reply-To: cjclark@alum.mit.edu References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from dennis.kovarsky@usask.ca on Fri, Feb 01, 2002 at 03:24:37PM -0600 X-URL: http://people.freebsd.org/~cjc/ 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 On Fri, Feb 01, 2002 at 03:24:37PM -0600, Dennis I. Kovarsky wrote: > > FreeBSD-4.4R, a file in /var/log keeps filling up the FS. Newsyslog > solution has been implemented, however, the question remains. > > According to the Handbook article on "output from df vs. du", the cause > for the mismatch in the outputs is the fact that there's a process with > the lock on the file. > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#DU-VS-DF > > However, doing a kill -HUP on the offending daemon doesn't help. In fact, > HUPping each and every one of the entries in "ps -ax" doesn't work. > Rebooting seems to be the only solution at this point. Needless to say, > that is not a desirable solution. What a daemon does when it receives a SIGHUP is totally up to the daemon. It may or may not be closing open file descriptors to log files. Try terminating each process to see which one it might be. You can also look at fstat(1) output for suspects. Check if they have any open files in /var that you cannot find(1) by the inode number. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message