Article View: news.software.nntp
Article #33275Re: Problems configuring INN 2.2b2
From: Kjetil Torgrim Homme
Date: Tue, 24 Nov 1998 00:00
Date: Tue, 24 Nov 1998 00:00
62 lines
2779 bytes
2779 bytes
[Phil Colmer]
> We have a number of internal newsgroups, some of which are not
> supposed to expire (as they are used as a technical resource). So,
> I've restored this files from tape and then used makehistory to
> import those messages into the CNFS system.
>
> The uniform overview is happy about this and lists an entry for
> each message. However, nnrp reports that the particular
> newsgroups are empty.
You need to update the overview files (one per group) as well as the
uniover files.
> What am I doing wrong? Is it possible to have newsgroups that
> don't expire at all with CNFS?
Not really. You can make a metacycbuff which will "never" run out of
room, but if you misjudge it and need to add a another cycbuff, that
won't help much. It will only make the expire go slower. This is due
to the simplistic round robin algorithm used in INN. Use timehash
instead.
Kjetil T.
PS. I use this script to rebuild all indices and history from spool.
TMPDIR is used by sort, and needs to have room for a copy of the
history file. This takes ~8 hours on my machine with 8 GB spool.
(I only use this whenever one of the disks in my newslib stripe
die, which is altogether too often ;-) It will fix the overview
problem, but will not migrate articles into timehash.
#! /bin/sh
. /news/lib/innshellvars
TMPDIR=/news/disk/c3t3/tmp; export TMPDIR
echo "Rebuilding essential news databases"
rm -f $PATHTMP/newindex
rm -f $PATHTMP/newindex.sorted
echo -n "Counting history entries: "
COUNT=`/bin/ls -l $PATHDB/history | awk '{ printf ("%d", $5/100) }'`
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"
Technical Details
Message-ID:
<1rpvadrg08.fsf@haey.ifi.uio.no>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-mailReferences:
<73c255$qao$1@nnrp1.dejanews.com>Show Full Headers
Complete Article Headers
Message-ID: <1rpvadrg08.fsf@haey.ifi.uio.no> Subject: Re: Problems configuring INN 2.2b2 Date: Tue, 24 Nov 1998 00:00:00 +0000 From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> References: <73c255$qao$1@nnrp1.dejanews.com> 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: 415015753 X-Complaints-To: usenet@mimir.ifi.uio.no X-Trace: mimir.ifi.uio.no 911873849 3325 129.240.64.139 (24 Nov 1998 02:17:29 GMT) Organization: Dept. of Informatics, University of Oslo, Norway NNTP-Posting-Date: 24 Nov 1998 02:17:29 GMT Newsgroups: news.software.nntp