Article View: news.software.nntp
Article #74286Re: Renaming a newsgroup
From: John F. Morse
Date: Tue, 26 Sep 2006 17:43
Date: Tue, 26 Sep 2006 17:43
303 lines
13668 bytes
13668 bytes
Jeff,
I have not seen your reply to this article, originally posted nearly two
weeks ago. I figured you may have been on vacation. Now I wonder if you
may have replied, but the article didn't appear on my ISP's server.
There are questions in items 1 and 3, and I had hoped for some
explanation for item 2.
TIA
--
John
John F. Morse wrote:
> Good morning, Jeff.
>
> I'd suggest reading all of this instead of spending time answering as
> you read. I may have included some clues further down that could save
> some time. It may also make understanding what I'm trying to convey a
> little easier. ;-)
>
> Some of the following is an observation report on what I have done
> which worked, and then there are some questions, and finally there is
> one big problem. Not necessary in that order, since part of the
> following was a draft saved from yesterday, before I decided to try a
> few more ideas to see if I could find a solution (which I did on some
> items).
>
> 1.
>
> After rebuilding the history and overview on the news2 server, I
> discovered that the history.hash and the history.index had grown by
> 100 times the original size. Below shows the backed-up (*.orig) files
> for comparison with the new ones.
>
>
> sh-2.05b$ ls -l
> total 107814
> -rw-rw-r-- 1 news news 746 2006-09-11 08:36 active
> -rw-r--r-- 1 news news 435 2006-09-11 08:36 active.times
> -rw-rw-r-- 1 news news 3939763 2006-09-13 00:31 history
> -rw-rw-r-- 1 news news 51 2006-09-13 00:31 history.dir
> -rw-rw-r-- 1 news news 85 2006-09-03 02:20 history.dir.orig
> -rw-rw-r-- 1 news news 60000000 2006-09-13 00:31 history.hash
> -rw-rw-r-- 1 news news 652800 2006-09-03 01:45 history.hash.orig
> -rw-rw-r-- 1 news news 40000000 2006-09-13 00:31 history.index
> -rw-rw-r-- 1 news news 435200 2006-09-03 01:45 history.index.orig
> -rw-rw-r-- 1 news news 5321295 2006-09-03 01:46 history.orig
> -rw-r--r-- 1 news news 604 2006-02-16 21:44 newsgroups
>
> sh-2.05b$ du -sch *
> 4.0K active
> 4.0K active.times
> 3.8M history
> 4.0K history.dir
> 4.0K history.dir.orig
> 58M history.hash
> 640K history.hash.orig
> 39M history.index
> 428K history.index.orig
> 5.1M history.orig
> 106M total
>
>
> These two files are nowhere near this size on the news7 server shown
> below for comparison, which additionally has over 100 Usenet groups.
>
>
> john@news7:/var/lib/news$ ls -l
> total 18954
> -rw-rw-r-- 1 news news 8394 2006-09-07 04:10 active
> -rw-r--r-- 1 news news 8922 2006-09-07 00:40 active.times
> -rw-rw-r-- 1 news news 14591599 2006-09-13 00:39 history
> -rw-rw-r-- 1 news news 95 2006-09-13 00:44 history.dir
> -rw-rw-r-- 1 news news 1379400 2006-09-13 00:04 history.hash
> -rw-rw-r-- 1 news news 919600 2006-09-13 00:04 history.index
> -rw-r--r-- 1 news news 2445204 2006-09-02 17:28 newsgroups
>
> john@news7:/var/lib/news$ du -sch *
> 12K active
> 12K active.times
> 14M history
> 4.0K history.dir
> 1.4M history.hash
> 900K history.index
> 2.4M newsgroups
> 19M total
>
>
> Any idea why these files grew so large after makehistory completed
> (using "makehistory -b -f history.n -I -O")?
>
> Additionally, expireover took 28 minutes yesterday (Wednesday) morning
> for news2, usually taking around 35 seconds at most. Expiration is not
> used for these groups ("*:A:never:never:never). This was a report for
> the past 11 days since this server has been shut off (Daily Usenet
> report from Sep 3 01:43:56 to Sep 13 00:00:03).
>
> The "Article lines processed 80930" looks double what it should be.
> Perhaps it was reading the backup spool "~/archive/articles" within
> the archive directory? Or the history database for the previous and
> current groups, or active (when this nightly expiration ran, I hadn't
> yet removed the old non-xanadu.oldgroups from active, although I did
> move them to archive.)
>
> Expire messages:
> expireover start Wed Sep 13 00:00:12 CDT 2006: (
> -z/var/log/news/expire.rm -Z/var/log/news/expire.lowmark)
> Article lines processed 80930
> Articles dropped 0
> Overview index dropped 0
> expireover end Wed Sep 13 00:28:00 CDT 2006
> lowmarkrenumber begin Wed Sep 13 00:28:00 CDT 2006:
> (/var/log/news/expire.lowmark)
> lowmarkrenumber end Wed Sep 13 00:28:01 CDT 2006
> expire begin Wed Sep 13 00:28:31 CDT 2006: (-v1)
> Article lines processed 40212
> Articles retained 40212
> Entries expired 0
> expire end Wed Sep 13 00:31:55 CDT 2006
> all done Wed Sep 13 00:31:55 CDT 2006
>
>
> Tonight's for comparison -- down to 12 minutes:
>
> Expire messages:
> expireover start Thu Sep 14 00:00:11 CDT 2006: (
> -z/var/log/news/expire.rm -Z/var/log/news/expire.lowmark)
> Article lines processed 40493
> Articles dropped 0
> Overview index dropped 0
> expireover end Thu Sep 14 00:12:35 CDT 2006
> lowmarkrenumber begin Thu Sep 14 00:12:35 CDT 2006:
> (/var/log/news/expire.lowmark)
> lowmarkrenumber end Thu Sep 14 00:12:35 CDT 2006
> expire begin Thu Sep 14 00:13:05 CDT 2006: (-v1)
> Article lines processed 40212
> Articles retained 40212
> Entries expired 0
> expire end Thu Sep 14 00:18:14 CDT 2006
> all done Thu Sep 14 00:18:14 CDT 2006
>
>
> ------------------------------------------------------------------------
>
> 2.
>
> I also had considerable trouble with oldgroup-to-newgroup renaming.
> Message counts were not the same as they were before running the
> renamer.pl script.
>
> After examining several headers of articles in the spool, I discovered
> headers which appeared as "xanadu.xanadu.brisbee" etc. It may have
> been contributed to what Dr.Ruud discovered. So I changed the
> renamer.pl to include Dr.Ruud's idea, then I had to return and rename
> all groups to remove the double "xanadu." group names
> ("xanadu.xanadu.group xanadu.group"). This fixed all of the headers
> that I later sampled.
>
> I was using "find . -type f -print0 | xargs -0 renamer.pl oldgroup
> newgroup" for the renaming, from the "~/articles/xanadu" directory,
> changing the oldgroup and newgroup variables for each of the groups.
>
> ------------------------------------------------------------------------
>
> 3.
>
> I am satisfied the spool now has correct header information, but
> despite several different runs of makehistory, including deleting the
> overview files first, I cannot get the raucouscaucus group to show any
> articles (it does appear as a group, but with zero articles in a news
> reader).
>
> The active file shows:
>
> control 0000000000 0000000001 n
> control.cancel 0000000111 0000000112 n
> control.checkgroups 0000000000 0000000001 n
> control.newgroup 0000000000 0000000001 n
> control.rmgroup 0000000000 0000000001 n
> junk 0000000000 0000000001 n
> xanadu.brisbee 0000047283 0000000125 y
> xanadu.computers 0000003549 0000000002 y
> xanadu.petchat 0000000921 0000000010 y
> xanadu.raucouscaucus 0000000239 0000000240 y
> xanadu.soapbox 0000003719 0000000001 y
> xanadu.test 0000000111 0000000001 y
> xanadu.announce 0000000011 0000000011 y
>
> I manually edited active (using vi) the raucouscaucus group low-water
> mark to 0000000001, but this did not help. The group still indicated
> zero articles in several news readers -- even after quitting them and
> deleting the news2 server's index files, and then recreating a news2
> server "account" in the newsreaders (Mozilla and Pan).
>
> When I ran "ctlinnd renumber raucouscaucus" the active file again
> indicated a low-water mark of 0000000240 .
>
> By the way, the default "ctlinnd renumber" or "ctlinnd renumber all"
> will not work as indicated in ctlinnd(8) to scan all groups:
>
> renumber group
> Scan overview database for the specified newsgroup and
> update the low-water mark and hi-water mark in the active file.
> Regardless of
> the content of the overview database, the hi-water mark
> will not be decreased (decreasing it may cause duplicate article
> numbers to be
> assigned after a crash, which can cause serious problems
> with the tradspool storage method). If group is an empty string
> then all
> newsgroups are scanned.
>
> I have throttled and stopped the server several times, deleted the
> overview directory files (rm -r /var/spool/news/overview/*), ran
> "makehistory -b -f history.n -I -O", renamed the four history files to
> remove the ".n" (the "mv history.n.* history.*" also will not work),
> restarted the server, and I still have no raucouscaucus articles. I've
> then tried the "ctlinnd renumber raucouscaucus" with no changes other
> than the low-watermark increases to one more than the high-watermark
> -- i.e. xanadu.raucouscaucus is still "empty" in a news reader.
>
> All other groups appear normal, both in displayed message count equals
> the actual file count in the spool, and in the header newsgroup names
> for Newsgroups|Followup-To|Xref. I suspected but could not find any
> extra characters (i.e. spaces) in the xanadu.raucouscaucus group name
> in the headers of the messages in the spool. There might be an
> invisible (<CTRL>) character, but I don't know how to locate one,
> other than trying to rename the group again, using a carefully-typed
> "xanadu.raucouscaucus" as the oldgroup name. If it didn't fly, then
> there must be something there that doesn't match the active file entry.
>
> Another thought: Is makedbz required after running this renamer.pl and
> on a tradspool storage method, and if so, before or after makehistory?
>
> Is "makehistory -b -f history.n -I -O" correct, and why are those
> history.hash and history.index files so huge?
>
> Here is a telnet session that might offer a clue:
>
> john@Wintergreen18:~$ telnet
> telnet> o
> (to) news2 119
> Trying 192.168.0.25...
> Connected to optima2.my.net.
> Escape character is '^]'.
> 200 news2.my.net InterNetNews NNRP server INN 2.4.3 (20050407
> prerelease) ready (posting ok).
> authinfo user myname
> 381 PASS required
> authinfo pass mypassword
> 281 Ok
> mode reader
> 200 news2.my.net InterNetNews NNRP server INN 2.4.3 (20050407
> prerelease) ready (posting ok).
>
> list
> 215 Newsgroups in form "group high low flags".
> control.cancel 0000000111 0000000112 n
> xanadu.brisbee 0000047283 0000000125 y
> xanadu.computers 0000003549 0000000002 y
> xanadu.petchat 0000000921 0000000010 y
> xanadu.raucouscaucus 0000000239 0000000240 y
> xanadu.soapbox 0000003719 0000000001 y
> xanadu.test 0000000111 0000000001 y
> xanadu.announce 0000000011 0000000011 y
> .
> group xanadu.raucouscaucus
> 211 0 0 0 xanadu.raucouscaucus
> listgroup xanadu.raucouscaucus
> 411 No such group xanadu.raucouscaucus
> quit
> 205 .
> Connection closed by foreign host.
>
>
> That 411 message is some kind of flag I'm sure.
>
>
> Here's raucouscaucus:1 from the spool so you can see the header:
>
> Path: optima2.my.net!192.168.0.20!news.my.net!user
> Message-ID: <RumorMill--119937207333182048@mkc-65-28-28-81.kc.rr.com>
> From: "Larry" <no.mail.gets@here.gov>
> Newsgroups:
> xanadu.brisbee,xanadu.computers,xanadu.raucouscaucus,xanadu.soapbox
> Subject: Brisbee street sweeper test one
> Date: Sun, 3 Feb 2002 15:33:58 -0600
> Lines: 6
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
> X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
> NNTP-Posting-Host: news.my.net (65.28.28.81)
> X-Posting-Server: RumorMill 1.3.2
> Xref: 192.168.0.20 xanadu.brisbee:130 xanadu.computers:2
> xanadu.raucouscaucus:1 xanadu.soapbox:1
>
>
> TIA, and I hope this isn't one of my dyslexia things.
>
Technical Details
Message-ID:
<oFdSg.119491$QM6.76028@bgtnsc05-news.ops.worldnet.att.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mailReferences:
<AiTMg.17827$QM6.1566@bgtnsc05-news.ops.worldnet.att.net> <OJ7Ng.103780$5i3.83664@bgtnsc04-news.ops.worldnet.att.net> <ee3bcp$sqa$1@puck.litech.org> <OwbNg.22657$QM6.20750@bgtnsc05-news.ops.worldnet.att.net> <ee6nbc$pv6$1@puck.litech.org> <NpCNg.117971$5i3.30183@bgtnsc04-news.ops.worldnet.att.net> <kGbOg.40791$QM6.16542@bgtnsc05-news.ops.worldnet.att.net>Show Full Headers
Complete Article Headers
Message-ID: <oFdSg.119491$QM6.76028@bgtnsc05-news.ops.worldnet.att.net> Subject: Re: Renaming a newsgroup Date: Tue, 26 Sep 2006 17:43:49 GMT From: "John F. Morse" <xanadu.bbs@invalid.net> References: <AiTMg.17827$QM6.1566@bgtnsc05-news.ops.worldnet.att.net> <OJ7Ng.103780$5i3.83664@bgtnsc04-news.ops.worldnet.att.net> <ee3bcp$sqa$1@puck.litech.org> <OwbNg.22657$QM6.20750@bgtnsc05-news.ops.worldnet.att.net> <ee6nbc$pv6$1@puck.litech.org> <NpCNg.117971$5i3.30183@bgtnsc04-news.ops.worldnet.att.net> <kGbOg.40791$QM6.16542@bgtnsc05-news.ops.worldnet.att.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!17a21c27!not-for-mail Reply-To: xanadu.bbs@invalid.net Organization: Xanadu BBS User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <kGbOg.40791$QM6.16542@bgtnsc05-news.ops.worldnet.att.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 303 NNTP-Posting-Host: 7746edba239e4391032370c8d7e5fa99 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1159292628 NNTP-Posting-Date: Tue, 26 Sep 2006 17:43:48 GMT