🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #3866

Re: Disk full errors

#3866
From: Chet Ramey
Date: Tue, 03 Oct 1995 00:00
48 lines
2253 bytes
In article <davidp-2909951437400001@mac219.admin.biola.edu>,
David Pisoni <davidp@leonardo.net> wrote:
>Hello,
>
>I am running INN on a BSDI 2.0 system.
>Lately our INN has been reporting some strange disk full errors.  From the
>daily news report :
>
>Disk usage:
>/dev/sd0e      3220914  2431678   467144    84%    /usr/var/spool/news
>/dev/sd1a      1388078   164578  1154096    12%    /usr/local/news
>
>Seems like lots of space....
>
>but then later in the report:
>
>sort: No space left on device

It doesn't have anything to do with how much spool space you have
available.

/usr/contrib/lib/news/bin/news.daily, when run with the `delayrm'
option, wants to sort the file of articles to be removed
(/var/log/news/expire.rm).  It calls `sort', which uses $TMPDIR to
decide where to put its temp files.  TMPDIR is one of the variables
set in /usr/contrib/lib/news/innshellvars, which sets it to `/tmp'
by default.  The upshot is that `sort' is using /tmp to sort a
(presumably) large file, and running out of space on that filesystem.

You can do several things:

1.  Set TMPDIR to /var/tmp and export it at the top of news.daily, before
    the `.' command that reads innshellvars.

2.  Change /usr/contrib/lib/news/innshellvars so that it unconditionally
    sets TMPDIR to /var/tmp.

3.  Change news.daily to call sort like this:

	TMPDIR=/var/tmp sort -o ${RMFILE} ${RMFILE}


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu

Technical Details
Message-ID: <44rkq5$h80@usenet.INS.CWRU.Edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.bsd.bsdi.misc.mbox.zip!not-for-mail
References: <davidp-2909951437400001@mac219.admin.biola.edu>

Show Full Headers
Complete Article Headers
Message-ID: <44rkq5$h80@usenet.INS.CWRU.Edu>
Subject: Re: Disk full errors
Date: Tue, 03 Oct 1995 00:00:00 +0000
From: chet@clavelle.INS.CWRU.Edu (Chet Ramey)
References: <davidp-2909951437400001@mac219.admin.biola.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.bsd.bsdi.misc.mbox.zip!not-for-mail
X-Deja-AN: 116954775
Distribution: inet
Organization: Case Western Reserve University, Cleveland, Ohio, USA
Keywords: inn news bsdi
Newsgroups: news.software.nntp,comp.unix.bsd.bsdi.misc