Date: Tue, 9 Sep 1997 11:14:01 +0930 From: Greg Lehey <grog@lemis.com> To: Robert Hof <rhof@netinc.ca> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /kernel - file system full (mail.local) Message-ID: <19970909111401.16076@lemis.com> In-Reply-To: <199709090113.VAA00974@box.netinc.ca>; from Robert Hof on Mon, Sep 08, 1997 at 09:13:35PM -0400 References: <199709090113.VAA00974@box.netinc.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <paths.h> -#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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970909111401.16076>