🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by hume.spamfilter Sun, 08 Aug 1999 00:00
INN2, /overview fills, double posts?
#39017
Author: hume.spamfilter
Date: Sun, 08 Aug 1999 00:00
30 lines
2337 bytes
I've had an interesting experience recently on a Solaris INN2.2 box.  During
the morning, my overview partition filled up.  As far as I know, there was
normally plenty of space, and the expires were working fine, but some hung
nnrpds kept the old uniover databases open and thus didn't yield back the
disk space (there still should have been plenty of space, but that's 
something different I have to look into).  Anyway, the overview partition
filled, expire certainly noticed, as did innd when it tried to write out
the overview for incoming articles (the db partition did not fill, so
history and the like had plenty of space).  I use CNFS for all article
spool.

So now I have some questions... Does innd throttle when it gets ENOSPACE 
writing uniover?  I don't think innwatch would do so, since it just spins
while news.daily is running, as it was in this case.  Why am I getting 
DOUBLE posts in some newsgroups?  I would expect some articles to be 
blackholed in a situation like this, not reproduced... and I mean listed
in overview twice, despite having identical Message-IDs.  innfeed has 
noticed as well, giving "two filenames for same message id" errors, and
spitting out the history token.

Is 'makehistory -bu' a solution?  Or just let the doubled articles fall
off the server on their own?  (I don't carry binaries, and have a fairly
decent retention time.)  I'm trying to avoid a full history/overview
rebuild if I can.

-- 
Brandon Hume    - hume -> BOFH.Halifax.NS.Ca, http://WWW.BOFH.Halifax.NS.Ca/
                       -> Solaris Snob and general NOCMonkey

Re: INN2, /overview fills, double posts?
#39031
Author: Kjetil Torgrim Homme
Date: Mon, 09 Aug 1999 00:00
43 lines
1810 bytes
When overview fills, INN does not notice at once since that code uses
stdio for writing the records.  In my experience, the overview data
will always get corrupted (overview data for articles pop up in the
wrong groups, garbage characters etc.) and a makehistory is needed.  I
enclose the script I use at the end.


Kjetil T.

#! /bin/sh

. /local/lib/news/lib/innshellvars

TMPDIR=/news/disk/c3t3/tmp
echo "Rebuilding essential news databases"

rm -f $PATHTMP/newindex
rm -f $PATHTMP/newindex.sorted

echo -n "Counting history entries: "
case $1 in
    ?*) COUNT=$1
	;;
    *)  COUNT=`/bin/ls -l $PATHDB/history | awk '{ printf ("%d", $5/100) }'`
	;;
esac
echo $COUNT

echo "Scanning spool"
$PATHBIN/makehistory -I $PATHTMP/newindex -O -n 

echo "Rebuilding history index"
$PATHBIN/makehistory -o -r -s $COUNT

echo "Sorting overindex input file"
sort -t' ' +1 -2 $PATHTMP/newindex > $PATHTMP/newindex.sorted

echo "Rebuilding overindex"
expireindex -a -o -z < $PATHTMP/newindex.sorted

echo "Rebuild completed"

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads