From owner-freebsd-questions Mon Sep 8 18:44:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA23257 for questions-outgoing; Mon, 8 Sep 1997 18:44:36 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA23250 for ; Mon, 8 Sep 1997 18:44:28 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id LAA19238; Tue, 9 Sep 1997 11:14:02 +0930 (CST) Message-ID: <19970909111401.16076@lemis.com> Date: Tue, 9 Sep 1997 11:14:01 +0930 From: Greg Lehey To: Robert Hof Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /kernel - file system full (mail.local) References: <199709090113.VAA00974@box.netinc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199709090113.VAA00974@box.netinc.ca>; from Robert Hof on Mon, Sep 08, 1997 at 09:13:35PM -0400 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Sep 08, 1997 at 09:13:35PM -0400, Robert Hof wrote: > Hi all, here's an argh question for you, sorry if it's a faq - I searched, > but did not find.... > > I'm running FreeBSD on a p200 w/ 64M RAM, running a mail server for > approximately 2000 customers. Quite frequently, I'm seeing the following > message: > Sep 8 20:44:55 box /kernel: pid 28800 (mail.local), uid 0 on /: file system > full > Sep 8 20:54:12 box /kernel: pid 302 (mail.local), uid 0 on /: file system full > > yet I have lots of free space: > > Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted > /dev/sd0a 31775 17137 12096 59% 987 6691 13% / > > Swap is not in use. And it only ever seems to be with mail.local. Before I > beefed up the box, it was running at 16Mb, and I saw these errors quite > frequently then, but not many more times... At a guess, mail.local is trying to deliver an enormous mail message. It uses a file with the name /tmp/local.XXXXXX for this. After it's done, the file is removed again, so you see a lot of space free. There's a good question as to why this copy should be done in /tmp, which is relatively small, rather than in /var/tmp, which should have more space. Certainly you can try this patch: --- pathnames.h 1994/05/27 12:39:19 1.1.1.1 +++ pathnames.h 1997/09/09 01:42:38 @@ -34,4 +34,4 @@ */ #include -#define _PATH_LOCTMP "/tmp/local.XXXXXX" +#define _PATH_LOCTMP "/var/tmp/local.XXXXXX" Do this in /usr/src/libexec/mail.local, then do a 'make install', and let me know if it solves the problem. Greg