🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #37399

Re: Changing news server

#37399
From: Greg Andrews
Date: Wed, 12 May 1999 00:00
50 lines
3192 bytes
tuuli.tuominen@helsinki.fi writes:
>On 11 May 1999 15:15:06 -0700, Russ Allbery <rra@stanford.edu> wrote:
>>Sven Ingvar Jonsson <sijon@lin.foa.se> writes:
>>
>>>> Is it possible to "synchronize" the old and the new server so that the
>>> news readers can continue without problems with their .newsrc etc after
>>> the upgrade?
>>
>>Yes.  You need to run your new server in Xref slaving mode for as long as
>>the longest expire time of all the newsgroups you carry, and then you
>>should be able to drop that new server in place without disruption to
>>clients.
>
>Can this be done in any other way? I mean, is it possible to copy the
>article spool and the needed files (history, active and such) into the new
>server and then just change servers? We're in the process of upgrading too
>but I'm not sure the old server can take the extra load of sending all the
>articles it receives to the new server. And we keep some of our local groups
>for months, so I would like to have the old articles in those groups
>available in the new server too.
>

But for a sufficiently large spool, copying the articles will take
a loooong time.  And you have to copy the active file and the
history database files as well.  Those are tough, but you can
copy just the text file and rebuild the .dir and .pag files on
the new server.

The cheap way out is to bump the article numbers on the new server.
Boost the "high" article number in the active file by some amount,
e.g. 5000.  Then switch your users over.  Your long-lived local groups
are likely small enough that you could copy the articles over.

If you have a period where users will be using both servers (e.g.
a two-day transition period), then you have to boost the article
numbers on the new server enough that the articles on the old
server will not catch up to the ones on the new server.
In other words, if a group on the old server gets 2000 articles
per day and you have a two-day transition, you need to boost
the article number on the new server by at least 5000.

Of course, you need to stop the new server while you fiddle
with the article numbers in the active file.  (you can merely
throttle it, but I've forgotten the correct command to make
it reload the active file before un-throttling it)  A fairly
simple awk script can increment the article numbers for you.

  -Greg

Technical Details
Message-ID: <7hbrol$apa$1@shell1.ncal.verio.com>
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
References: <7h96et$d2g$1@mercur.foa.se> <ylhfpji785.fsf@windlord.stanford.edu> <slrn7jigdd.5kk.tuuli.tuominen@yendor.it.helsinki.fi>

Show Full Headers
Complete Article Headers
Message-ID: <7hbrol$apa$1@shell1.ncal.verio.com>
Subject: Re: Changing news server
Date: Wed, 12 May 1999 00:00:00 +0000
From: gerg@shell1.ncal.verio.com (Greg Andrews)
References: <7h96et$d2g$1@mercur.foa.se> <ylhfpji785.fsf@windlord.stanford.edu> <slrn7jigdd.5kk.tuuli.tuominen@yendor.it.helsinki.fi>
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: 476981455
X-Complaints-To: abuse@verio.net
X-Trace: nuq-read.news.verio.net 926511703 204.247.248.254 (Wed, 12 May 1999 12:21:43 GMT)
Organization: The Nerd From B.O.F.H.
NNTP-Posting-Date: Wed, 12 May 1999 12:21:43 GMT
Newsgroups: news.software.nntp