Thread View: news.software.nntp
3 messages
3 total messages
Started by Geoff Allen
Wed, 26 Mar 1997 00:00
Migrating machine A/C-news to machine B/INN
Author: Geoff Allen
Date: Wed, 26 Mar 1997 00:00
Date: Wed, 26 Mar 1997 00:00
22 lines
1401 bytes
1401 bytes
I'm about to update my news server. We've currently got a computer running C-news + nntp + overview. I have a new computer at my disposal, on which I plan to set up INN. We have a CNAME pointing to our news server, so if the actual machine changes, it shouldn't affect anyone (assuming they're playing by the rules). But I'm wondering about the effect on clients if the news server suddenly changes behavior and article numbers. Is there any way to smooth the migration? Anything I should be doing in the planning stages to make it go better? Geoff -- Geoff Allen, geoff@wsu.edu, <http://www.eecs.wsu.edu/~geoff/> Rest is not idleness, and to lie sometimes on the grass on a summer day listening to the murmur of water, or watching the clouds float across the sky, is hardly a waste of time. -- Sir J. Lubbock
Re: Migrating machine A/C-news to machine B/INN
Author: Dave Barr
Date: Wed, 26 Mar 1997 00:00
Date: Wed, 26 Mar 1997 00:00
23 lines
1624 bytes
1624 bytes
In article <u3afnqtvw3.fsf@wsu.edu>, Geoff Allen <geoff@wsu.edu> wrote: >But I'm wondering about the effect on clients if the news server >suddenly changes behavior and article numbers. Is there any way to >smooth the migration? Anything I should be doing in the planning >stages to make it go better? You can copy your active file and history from the old host to the new, and dump|restore from the old to the new computer even while the server is up. If you keep your active file, the article numbers will stay the same so newsreaders won't know the difference. (except for the fact that old articles won't be there) Don't forget that sites you feed with INN will need to be notified, since innd loads the IP address of the hosts in hosts.nntp into memory. They'll need to do a 'ctlinnd reload hosts.nntp'. Or you can notify people ahead of time saying to put the new real hostname of the server in their hosts.nntp before making the transition. After the cname is changed and is propagated they can remove it. --Dave
Re: Migrating machine A/C-news to machine B/INN
Author: USENET news
Date: Sat, 29 Mar 1997 00:00
Date: Sat, 29 Mar 1997 00:00
110 lines
7018 bytes
7018 bytes
In article <5hbu4i$g83@augusta.math.psu.edu>,
Dave Barr <barr@math.psu.edu> wrote:
>In article <u3afnqtvw3.fsf@wsu.edu>, Geoff Allen <geoff@wsu.edu> wrote:
>>But I'm wondering about the effect on clients if the news server
>>suddenly changes behavior and article numbers. Is there any way to
>>smooth the migration? Anything I should be doing in the planning
>>stages to make it go better?
>
>You can copy your active file and history from the old host to the new,
>and dump|restore from the old to the new computer even while the
>server is up. If you keep your active file, the article numbers
>will stay the same so newsreaders won't know the difference. (except
>for the fact that old articles won't be there)
That's one possibility, but I'd be a bit worried about the dump getting
incomplete copies of articles, changes after the history snapshot, etc. Plus
if the spool is large, it may take a long time dumping and almost forever
restoring, depending on OS etc. It also pretty much forces you to copy the
spool and then switch the users across immediately (or block incoming news
until you are ready to switch users to B).
What I did (a long time ago, I probably don't have the scripts now) for a
similar C-news to INN transition was (something like)
* configure the INN server in "slave" mode on system B, with *very* long
cutoff for "stale" news (so ancient articles would be accepted); no
outbound feeds at this point
* copy over innxmit to system A (or build it there, if different
architecture or OS, I was moving from SunOS 4 to Solaris 2 at the same
time)
* set up outbound feed on A creating normal batch files; periodically save
the current batch and convert it (perl script) to INN slave-format batch.
I think it used brute-force scanning of history to get the full details
it needed; dbz lookup would be better but fiddlier. Or you could just
generate slave batches by scanning history periodically for articles
received since the last batch was generated. Send them to B using innxmit
in slave mode.
* run script to generate INN slave-format batch file on A by scanning
history file looking for articles with long expiry - some of our local
groups have 365 days and people expect those articles to be available for
reference; send those articles to B using innxmit on A in slave mode.
This is needed only for groups/articles with expiry longer than you'll be
feeding B before letting the users onto it. After doing this, you can
reduce the "stale article" threshold on B to a normal value, so routine
old articles will be rejected. ctlinnd renumber '' on B to update low
article numbers, which may have gone backwards due to receiving old
articles. Enable outbound feeds from B if you want, to check innxmit,
innfeed, or whatever, is working. [Tell your peers to allow feeding from
there...]
* continue like this (i.e. sending current news in slave mode) until
you're happy that B is looking healthy and has essentially the same
articles (except for variations in what gets expired, etc.)
* switch A to generating normal batches for B, but don't send them yet.
After doing that, stop generating the slave batches and ensure they've
all been sent.
* Remove the overview files (the entries need to be in article number order,
but may not be, for a number of reasons arising from the "misuse" of slave
mode). Rebuild overview data (expireover -a).
* change CNAME to point at B. [Prior to this, reduce its time-to-live to
something short, so changes should take effect quickly; reinstate normal
TTL later]
* restart B in non-slave mode. Enable feeding of the non-slave batches from
A. Block reader access on A (better than people getting in and then
using it due to not yet seeing the DNS change, then getting switched to
B with article numbers no longer fully synchronised]
Reading from B (for testing only) should be possible prior to the changeover
but is likely to be inefficient as the overview data will be muddled and
nnrpd will therefore often end up scanning article files for header info,
slow on big groups. [Mmm... will posting to B work? I suppose it should, I
presume the slave uses normal NNTP to send postings back to its master.]
The advantage of this approach is that everything *stays* synchronised,
possibly for days or weeks, rather than requiring a one-off copy and then an
immediate changeover (and with articles arriving and numbering for new
articles not synchronised after the history/active snapshots are taken,
unless feeds in to A are blocked).
I *think* (can't really remember) that I did it this way (approximately)
because I didn't feel dump & restore (with a change of operating system to
complicate it) was a viable option. Blocking incoming feeds until the new
server was ready to go into operation and that in turn would have caused
user complaints and confusion (local postings not appearing immediately, no
news from outside, possibly for some days until the new server was ready
with any last-minute problems fixed). Basically, I wanted to do it in a way
which would be transparent to the users *including* avoiding disruption to
the users while preparing system B, and with no pressure to get it all done
in a day or two.
One final subtlety ... the "old" long-expiry articles will appear
newly-arrived on B, therefore their expiry timers will restart from "now"
using INN's default expiry based on arrival time. I fudged that by running
expire on the new server with "-p", which expires based on posting time,
reverting to the default after the new server had been running for some
months.
This may sound very complicated, but beyond developing the means to send
INN slave (XREPLIC) feeds from C-news, it was not that much different from any
other feed. The more significant difficulty was anticipating the things that
would need particular care - overview entries not in article number order,
expiry defaulting to using arrival time which would be seriously misleading
for old long-expiry articles, etc.
John Line
--
Cambridge University Computing Service - USENET news manager. Usually John Line
newsmaster@ucs.cam.ac.uk (alias {newsmaster,news,usenet}@news.cam.ac.uk)
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