🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by jrifkin Wed, 09 Jun 1999 00:00
Need to rebuild history, overview data from cyclic buffers
#37898
Author: jrifkin
Date: Wed, 09 Jun 1999 00:00
51 lines
2129 bytes
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

But we got garbled text when trying to read news
postings which had previously worked.

--------------------------------------------------

Here's the history of our sad tale...

INND running on our AIX box crashed taking down 1 of 3
sets (or 'classes' in innd lingo) of cyclic buffers.

To re-enable the acquisition of news from the news
groups assigned to the set 1, we first re-initialized
them
   > dd if=/dev/zero of=/news1/cycbuffer...
and then rebuilt the history, overview and overview
index files with the commands above.

We assumed that 'makehistory' would read all three
buffers (one virgin buffer, two working buffers),
set up the necessary history, overview and overview
index files, and then we would be on our way.
But apparently not.

Can anyone explain what actually happened?

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?

Thanks in advance.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

Re: Need to rebuild history, overview data from cyclic buffers
#37916
Author: bill davidsen
Date: Wed, 09 Jun 1999 00:00
108 lines
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.


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