Article View: news.software.nntp
Article #46028Re: changing numbering in active file
From: Abby Franquemont
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
76 lines
4364 bytes
4364 bytes
In article <ylbt2zni4g.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: >Abby Franquemont <abby@eniac.stanford.edu> writes: > >> As for me, I just have to figure out why the renumber in news.daily >> (that didn't suddenly go away, or anything, did it?) is not actually >> renumbering. ;-) 'Cause otherwise I'm renumbering with individual >> ctlinnds anytime I catch the stupid box throttling. > >Hm. You shouldn't need renumber in news.daily any more; you should only >need lowmark, which increases the low article mark. innd will manage the >high article mark itself, or should. > >I don't know how you could get articles in the spool with higher numbers >than is accounted for in the active file range unless you manually >populated the spool, and ctlinnd renumber '' should really fix that. >Maybe tradspool isn't handling that quite right? Nah, I had a mysterious active file corruption take place, and lost about a hundred entries -- but I had an active file from about an hour previous which had the right data, so I threw the missing lines from the old one into the corrupt one in the course of repair (I've done this kind of thoroughly stupid thing and had it work fine under older INNs). But, since there were articles that had come in for some of those groups whose entries were whacked, during that hour, the entries which had vanished from my active didn't match the entries from the hour-old active. ;-) So let's say I lost the entry for news.froups.whinging, which said: news.froups.whinging 0000062175 0000061996 y and I replaced it with: news.froups.whinging 0000062150 0000061966 y Then, when the next article for news.froups.whinging arrived, with the himark set to 62150, the next article would be 62151, but there's already $spooldir/62151 sitting there, so next thing you know: Server throttled File exists writing SMstore file -- throttling Because SMstore can't write a file that already exists. This was true in old INN too, INN couldn't write it any more than SMstore, in INN 1.3 through INN 1.7, but the fix I used in those days was just to run the renumber in news.daily, which renumbered all froups, updating both lomark and himark. So, I naively skimmed the current man pages, concluded that renumber should work roughly the same (which it does when issued manually) and checked to be sure my news.daily was expecting to do a renumber, and then just ran that figuring it'd take care of the problem like it always useta back when I was an actual real-live sysadmin. Anyway at this point it looks like "ctlinnd renumber" works as I expected but the renumber in news.daily doesn't happen like it used to, and my sh is rusty as hell so I haven't tracked down why that is as of yet (since I also got sidetracked by actual work). Anyway, so I probably am going to throw together some kind of perl fixactive script, which does roughly what makeactive used to do, except that it will only create entries for an active file for directories which contain actual article files... which of course won't be useful at all to anyone who isn't running tradspool, but it would be the right recovery tool for me to have if I ever again encounter this particular unexplained active file hosure. Oh, as to what the active file hosure involved: somehow, no clue how, the file stayed exactly the same size but a hundred or so lines were replaced with a piece of mail that had been archived by majordomo about a year ago. Really, no kidding. I haven't even got a theory. -- Abby Franquemont Systems Software Developer abby@highwire.stanford.edu HighWire Press, Stanford University
Technical Details
Message-ID:
<8e4kjf$pg2$1@nntp.Stanford.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> <8e24nq$qki$1@nntp.Stanford.EDU> <ylbt2zni4g.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <8e4kjf$pg2$1@nntp.Stanford.EDU> Subject: Re: changing numbering in active file Date: Tue, 25 Apr 2000 00:00:00 +0000 From: abby@eniac.stanford.edu (Abby Franquemont) References: <8e20e0$r12$1@news.jump.net> <8e24nq$qki$1@nntp.Stanford.EDU> <ylbt2zni4g.fsf@windlord.stanford.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: 615542652 Organization: Stanford University Newsgroups: news.software.nntp