🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #31645

Re: problems with inn 2.1

#31645
From: David Hastings
Date: Wed, 23 Sep 1998 00:00
59 lines
2607 bytes
Robert Collier wrote:
> 
> I get simmilar problems if the server ever has a systemcrash that
> results in an unclean shutdown. This manifests itself as a corrupt
> overview database.
> 
> I now run the following script after every system crash.
> 
> Users with outlook/agent will need to unsubscribe from the group to
> clear the corrupt overview information from their machines btw.
> 
> --8<--8<--
> #! /bin/sh
> 
> . /news/lib/innshellvars
> 
> echo "Rebuilding essential news databases"
> 
> rm -f $PATHTMP/newindex
> rm -f $PATHTMP/newindex.sorted
> 
> echo "Scanning spool"
> rm -f $PATHTMP/newindex
> 
> $PATHBIN/makehistory -I $PATHTMP/newindex -O -n
> 
> echo -n "Counting history entries: "
> COUNT=`wc -l $PATHDB/history | awk '{ print $1 }'`
> echo $COUNT
> 
> 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"
> --8<--8<--
> 
> --

Can anybody give me an idea of how long this script will take to run?
My history file has got over 5 million lines in it!

Thanks,

Dave
-- 
David Hastings                       |  "The Golden Rule was, is and 
Systems Programmer/News Manager      |  ever shall be: 
Oxford University Computing Services |  Don't Lift Lids Off 
email: david.hastings@oucs.ox.ac.uk  |                Cans Of Worms"
URL http://users.ox.ac.uk/~daveh/    |
(anti-spam: remove the "2" from the address before replying)

Technical Details
Message-ID: <3608B5F5.2AA0@computing-services.oxford.ac.uk>
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
References: <35ff7c42.579595273@news.nordwest.net> <87sohsqt77.fsf@smart.ruhr.de> <35ff8d07.583888807@news.nordwest.net> <87n280l18i.fsf@rune.tech.ftech.net>

Show Full Headers
Complete Article Headers
Message-ID: <3608B5F5.2AA0@computing-services.oxford.ac.uk>
Subject: Re: problems with inn 2.1
Date: Wed, 23 Sep 1998 00:00:00 +0000
From: David Hastings <2david.hastings@computing-services.oxford.ac.uk>
References: <35ff7c42.579595273@news.nordwest.net> <87sohsqt77.fsf@smart.ruhr.de> <35ff8d07.583888807@news.nordwest.net> <87n280l18i.fsf@rune.tech.ftech.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
X-Deja-AN: 393932917
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: newsmaster@ox.ac.uk
X-Trace: news.ox.ac.uk 906540630 11811 163.1.32.103 (23 Sep 1998 08:50:30 GMT)
Organization: Oxford University Computing Services
Mime-Version: 1.0
NNTP-Posting-Date: 23 Sep 1998 08:50:30 GMT
Newsgroups: news.software.nntp