🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Obi-Wan Wed, 02 Oct 1996 00:00
makehistory takes forever?
#11328
Author: Obi-Wan
Date: Wed, 02 Oct 1996 00:00
53 lines
2689 bytes
How long should makehistory take to run?

We have a Sun UltraSPARC with a limited spool (1-2 weeks fits
in a GB or two) running Netscape's bastardized INN clone.

For the first month or so after setup, expire wasn't running.
I've got that fixed now, but I'm getting the "Can't store
key" errors that indicate a screwed history file.  Fixhist
removed some problems, but not all of them, so I resorted
to makehistory.  The full command was:
	makehistory -bu -s 2051352 -T /usr/local/news/tmp

I started this as root at 2am Monday with a 0 nice value.
Early Tuesday I reniced it to -10.  At 11:30am Wednesday,
it's still running.  Is this normal?  57 hours seems excessive.

Here's the only output it's given me, which grows every few
hours:

newshost# makehistory -bu -s 2051352 -T /usr/local/news/tmp
Bad Expires: header in comp.answers/16410
Bad Expires: header in comp.answers/16407
Bad Expires: header in comp.os.linux.misc/119833
Bad Expires: header in comp.protocols.tcp-ip.domains/8909
Bad Expires: header in comp.protocols.tcp-ip.domains/8913
Ignoring duplicate Expires: header in news.announce.newusers/1193
Ignoring duplicate Expires: header in news.announce.newusers/1192
Ignoring duplicate Expires: header in news.announce.newusers/1196
Ignoring duplicate Expires: header in news.answers/60539
Bad Expires: header in news.answers/59473
Bad Expires: header in news.answers/59480
Ignoring duplicate Expires: header in news.answers/60042
Ignoring duplicate Expires: header in news.answers/60283
Bad Expires: header in news.answers/60371
Bad Expires: header in news.answers/60406

The server was throttled until 10am Wednesday, when it died 
after a 'ctlinnd changegroup' & refused to restart.  No apparent
change to makehistory's status.

Please tell me what's happening!  Email to bvh@inetnebr.com is
preferred, but news posts are acceptable.

				Thanks,
				Obi-Wan

--
Ben "Obi-Wan" Hollingsworth                         email:  bvh@inetnebr.com
Vice President and System Administrator             voice:  (402)434-8680
  Internet Nebraska -- Nebraska's on-ramp to the information superhighway

Re: makehistory takes forever?
#11361
Author: Greg Andrews
Date: Thu, 03 Oct 1996 00:00
70 lines
3341 bytes

[posted and e-mailed]

bvh@falcon.inetnebr.com (Obi-Wan) writes:
>How long should makehistory take to run?
>
>We have a Sun UltraSPARC with a limited spool (1-2 weeks fits
>in a GB or two) running Netscape's bastardized INN clone.
>
>For the first month or so after setup, expire wasn't running.
>I've got that fixed now, but I'm getting the "Can't store
>key" errors that indicate a screwed history file.  Fixhist
>removed some problems, but not all of them, so I resorted
>to makehistory.  The full command was:
>	makehistory -bu -s 2051352 -T /usr/local/news/tmp
>
>I started this as root at 2am Monday with a 0 nice value.
>Early Tuesday I reniced it to -10.  At 11:30am Wednesday,
>it's still running.  Is this normal?  57 hours seems excessive.
>

How many articles are in your spool?  A couple of years ago, it
took 60 hours for makehistory -bun to recreate the history file.
We had about 1.5-1.7 million articles in our spool.

It takes that long because it's doing the equivalent of
a find on every article in every directory of your spool
filesystem.  And it's reading the "Newsgroups:" line to
generate the cross-posting information for the history
database entry.  That's a slow operation, period.


What you want to do instead is make backup copies of your
history file (just the text file, not the .dir or .pag
files).  If you have an uncorrupted copy of the text file,
you can rebuild the database portion in only 1-2 hours
with "makehistory -ri file_name".  Adding the -s option
with the number of lines in the file is also a good
thing to do.

At Netcom, I made a backup of my history file every 12
hours, and kept 4 copies.  Since the file was 200 megs,
I could safely keep 4 copies on a spare 2GB drive.
Two days' worth of backups was a good compromise between
the amount of space they consume and the length of time
it would take me to notice corruption in the history file
and correct it (even over a weekend).

Dave Barr's perl script for fixing the more common types
of history file corruption is also a good tool to keep
handy for rebuilding from backups.

The history database you build from a backup copy will be
missing some articles.  Specifically, the ones that were
received since the last backup copy.  Still, you can
add those in with the -bunv (I think) options to
makehistory afterward, while your server is back up
and serving users.

Good Luck,

  -Greg
-- 
:::::::::::::::::::  Greg Andrews  gerg@netcom.com  :::::::::::::::::::
ObGuindon:  Harriet Bover just found out from television that
            "Rust never sleeps."  Now she can't either.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

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