🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20587

quick fix: finding enough /tmp space

#20587
From: Rahul Dhesi
Date: Sat, 16 Aug 1997 00:00
28 lines
1391 bytes
I found that sometimes, during inn's expire, various things were running
low on temp disk space.  Rather than simply wasting a big filesystem on
/tmp, I found a quick and effective fix.

1. Make a temp directory on each big filesystem.

2. Before running News expiration:

   TMPDIR=`/news/bin/mostspace -f /news/lib/sort.dirs`
   export TMPDIR

   'mostspace' is a script that looks in /news/lib/sort.dirs for a list
   of directories.  It does 'df' on each and prints the name of the
   directory lying on a filesystem with the greatest amount of free
   space.

3. Make sure that utilities use TMPDIR for temp space.

You can get my 'mostspace' perl script from 

   http://www.rahul.net/dhesi/software/

or roll your own.
-- 
Rahul Dhesi <dhesi@spams.r.us.com>

Technical Details
Message-ID: <5t38f5$m00$1@samba.rahul.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <5t38f5$m00$1@samba.rahul.net>
Subject: quick fix: finding enough /tmp space
Date: Sat, 16 Aug 1997 00:00:00 +0000
From: c.c.eiftj@39.usenet.us.com (Rahul Dhesi)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 264424895
Organization: a2i network
X-Comment: Encoded From: line allows replies that preserve original subject
NNTP-Posting-User: dhesi
Newsgroups: news.software.nntp