Article View: news.software.nntp
Article #37916Re: Need to rebuild history, overview data from cyclic buffers
From: bill davidsen
Date: Wed, 09 Jun 1999 00:00
Date: Wed, 09 Jun 1999 00:00
108 lines
3753 bytes
3753 bytes
In article <7jlltj$hrs$1@nnrp1.deja.com>, <jrifkin@my-deja.com> wrote:
| How do you recreate the history, overview and overview
| index files from cyclic buffers which contain valid
| info?
|
| We tried the two commands
|
| > makehistory -O -I new-overview-index
| > sort -T /tmp -t' ' +1 -2 new-overview-index |
| expireindex -a -o -z
| We have reason to believe that one or more
| of the following may be true...
|
| (1) INND on AIX is unreliable.
| (2) Cyclic buffers are unrealiable
| (3) INND is unreliable.
|
| Any comments?
Sigh!
================================================================
#!/bin/bash
# be sure you really want to do this
echo -e "\n\aThis script recreates the history file!\n"
echo -e "Are you *sure* you want to do this? (y/N) \c"
read ans
if [ "$ans" != "y" ]; then
echo "Rebuild aborted!"
exit 1
fi
# killing the innd daemon if running
echo; echo "Killing innd..."
ctlinnd shutdown "History rebuild"
# checking for reader daemon
nnrpd_pid="$ln/run/nnrpd.pid"
if [ -f $nnrpd_pid ]; then
echo "Trying to kill nnrpd daemon process"
kill $nnrpd_pid
rm -f $nnrpd_pid
fi
# finally we actually try to run something
ln=/usr/local/news
exix=/tmp/exix.tmp
tmp=$ln/tmp
# clean history
rm -f $ln/db/history*
# do the build of overview
time makehistory -T $tmp -o -O -I $exix ||
{
echo "Appears to have failed, exited with status $?"
exit $?
}
# set overviewmmap to true
ed $ln/etc/inn.conf <<XX
/overviewmmap/s/false/true/p
w
q
XX
# create the uniover
time sort -T $tmp -t' ' +1 -2 $exix | expireindex -a -o -z ||
{
echo "Appears to have failed, exited with status $?"
exit $?
}
# set overviewmmap to false
ed $ln/etc/inn.conf <<XX
/overviewmmap/s/true/false/p
w
q
XX
================================================================
If you want to use ksh check the echo commands, just dropping the -e
should suffice.
I have not been able to build overview unless I set overviewmmap true,
nor can I read articles unless I set it false. Other than than nit,
which I have mentioned before, INN runs just fine on AIX, or at least in
a stable and reasonably efficient manner.
Traditional storage really breaks on AIX, if you get more than N entries
in a directory the performance drops like a rock. I used to have scripts
which fixed this on the fly, expiring madly to prevent large directories
no matter how small the retension.
I suspect that AIX mmap is less than correct, I just don't have time to
run it down. I think expireindex should work without mmap as well, I
have that on my list of stuff to try on Linux and/or BSD to be sure it's
truly broken rather than another AIX artifact.
--
bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.
Technical Details
Message-ID:
<7jmrit$ace$1@newssvr03-int.news.prodigy.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-mailReferences:
<7jlltj$hrs$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
Message-ID: <7jmrit$ace$1@newssvr03-int.news.prodigy.com> Subject: Re: Need to rebuild history, overview data from cyclic buffers Date: Wed, 09 Jun 1999 00:00:00 +0000 From: davidsen@tmr.com (bill davidsen) References: <7jlltj$hrs$1@nnrp1.deja.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: 487686730 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr03-int.news.prodigy.com 928969117 10638 199.4.137.118 (9 Jun 1999 22:58:37 GMT) Organization: TMR Associates, Schenectady NY NNTP-Posting-Date: 9 Jun 1999 22:58:37 GMT Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com