From owner-freebsd-questions Tue Oct 2 21:27: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from marine.sonic.net (marine.sonic.net [208.201.224.37]) by hub.freebsd.org (Postfix) with SMTP id 0468037B405 for ; Tue, 2 Oct 2001 21:26:56 -0700 (PDT) Received: (qmail 31831 invoked from network); 3 Oct 2001 04:26:52 -0000 Received: from sub.sonic.net (208.201.224.8) by marine.sonic.net with SMTP; 3 Oct 2001 04:26:52 -0000 Received: from wingerboy.sonic.net (fw.office.sonic.net [209.204.177.119]) by sub.sonic.net (8.11.6/8.8.5) with ESMTP id f934QpT29537; Tue, 2 Oct 2001 21:26:51 -0700 X-envelope-info: Date: Tue, 2 Oct 2001 21:26:45 -0700 From: Kelsey Cummings To: Zach Hartley Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /var filling up Message-ID: <20011002212645.E38238@sonic.net> References: <20011002195847.M13152-100000@labrador.dhs.org> <20011003000106.B8905@linus.highpoint.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011003000106.B8905@linus.highpoint.edu>; from zhartley@linus.highpoint.edu on Wed, Oct 03, 2001 at 12:01:06AM -0400 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 Wed, Oct 03, 2001 at 12:01:06AM -0400, Zach Hartley wrote: > Around Tue, Oct 02, 2001 at 08:01:58PM -0700, David Oleszkiewicz thus spake the following: > > so after about a week and a half of firewall messages and normal logging > > messages, my /var fills up. i scan through all the logrotated .gz > > files for anything interesting and then i remove them. the thing is the > > /bin/df output shows that /var is still above 100%. This means i can't > > send or receive mail or anything interesting like that. i reboot and then > > everything is ok. > > > > /var is it's own slice with like 20M > > FreeBSD 4.3 > > You might wish to use a bigger partition for /var, 20 megs will not get > you very far. If reinstalling is not an option, I've heard of people 20 megs wouldn't get you very far at all. I think my mail spool alone is over 250MB right now. (Gotta trim that, mutt takes too long to start.) However, it would seem to me that something is holding open a file that is rm'd on the filesystem. That's the only way that I can think that df would show a capacity that wasn't true. Is softupdates turned on for /var? If so, have you tried 'sync' to see if that changes the df output? > suggesting creating a tmp directory on a larger partition and symlinking > /var to it. > > i.e., something like: > mkdir /usr/var ; mv /var/* /usr/var ; rmdir /var ; ln -s > /usr/var /var Sounds like a fine idea to me. -- Kelsey Cummings - kgc@sonic.net sonic.net System Administrator 300 B Street, Ste 101 707.522.1000 (Voice) Santa Rosa, CA 95404 707.547.2199 (Fax) http://www.sonic.net/ Fingerprint = 7F 59 43 1B 44 8A 0D 57 91 08 73 73 7A 48 90 C5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message