Article View: news.software.nntp
Article #46091Re: changing numbering in active file
From: rmtodd
Date: Thu, 27 Apr 2000 00:00
Date: Thu, 27 Apr 2000 00:00
58 lines
3995 bytes
3995 bytes
rmtodd <rmtodd@amonduul.ecn.ou.edu> writes:
> abby@ucan.foad.org (Abby Franquemont) writes:
>
> > Here's what happens: I run makehistory -bu -O -f filename. Unless I've
> > missed something, that's -b, remove articles without valid message-ids,
> > -u, assume innd is running, -O, create overviews too, -f for alternate
> > filename.
>
> Okay. That should work, though nuking the old overview data before
> starting might be a good idea.
Murgle. Obviously nuking the old overview data is a bad idea if you're
running in -u mode (which causes makehistory to look only at articles that
*aren't* already in history.) Obviously I need to consume more caffeine
before posting.
In looking at the man page for makehistory, I see that part of it hasn't
been updated to correspond with the way -u actually works in 2.3, and that
if you believed what the docs said, this could explain some of your problems.
Sorry about that.
Specificially, the section on the -u flag says:
-u If the `-u'' flag is given, then makehistory
assumes that innd is running. It will throttle the
server while scanning, and then send `addhist''
commands (see ctlinnd(8)) to the server for any
article that is not found in the dbz database. The
command `makehistory -bu'' is useful after a sys-
tem crash, to delete any mangled articles and bring
the article database back into a more consistent
state.
This is, unfortunately, almost completely wrong.
1) -u does *not* throttle the server. (Note that throttling the server *isn't*
needed for makehistory to do its overview updates with -O; both tradindexed
and buffindexed overview methods do locking such that both innd and
makehistory can add records without turning the database into spam).
2) -u does not send any addhist commands. It doesn't cause makehistory to
add any records to history itself; all it does is cause makehistory to write
the history data for any "missing" articles it finds to the file you specified
with -f. Once makehistory is done, the user still needs to add the entries
to the history file. This can be done by either
a) cooking up a little shell script to 'ctlinnd addhist' them one at
a time, or
b) (recommended) throttle innd, cat the file onto the end of history,
rebuild the .dir/.pag files with makedbz, and unthrottle innd.
b) is recommended as, if there's any significant number of missing articles
to be added, you may be waiting for the addhists to finish until Hell freezes
over. The ctlinnd interface just isn't suitable for trying to cram large
amounts of information down innd's throat (see recent discussion on
inn-workers on why 'ctlinnd cancel' doesn't cut it as a way to implement
NoCeM type services).
Technical Details
Message-ID:
<86vh14nmpz.fsf@amonduul.ecn.ou.edu>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:
<8e20e0$r12$1@news.jump.net> <863doane7i.fsf@amonduul.ecn.ou.edu> <8e5m05$j69$1@ucan.foad.org> <868zy0po41.fsf@amonduul.ecn.ou.edu> <8e7qub$b9g$1@ucan.foad.org> <864s8op4ch.fsf@amonduul.ecn.ou.edu>Show Full Headers
Complete Article Headers
Message-ID: <86vh14nmpz.fsf@amonduul.ecn.ou.edu> Subject: Re: changing numbering in active file Date: Thu, 27 Apr 2000 00:00:00 +0000 From: rmtodd <rmtodd@amonduul.ecn.ou.edu> References: <8e20e0$r12$1@news.jump.net> <863doane7i.fsf@amonduul.ecn.ou.edu> <8e5m05$j69$1@ucan.foad.org> <868zy0po41.fsf@amonduul.ecn.ou.edu> <8e7qub$b9g$1@ucan.foad.org> <864s8op4ch.fsf@amonduul.ecn.ou.edu> 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: 616215433 Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@mailhost.ecn.ou.edu X-Trace: skywalker.ecn.ou.edu 956812856 43695 129.15.119.201 (27 Apr 2000 05:20:56 GMT) Organization: University of Oklahoma, Engineering Computer Network Mime-Version: 1.0 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Canyonlands) NNTP-Posting-Date: 27 Apr 2000 05:20:56 GMT Newsgroups: news.software.nntp