🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #15657

Re: any way to transfer articles while maintaining numbers?

#15657
From: Per Hedeland
Date: Sat, 08 Mar 1997 00:00
71 lines
3810 bytes
In article <5fpmq0$25o@unix.sri.com> cole@unix.sri.com (Susan E. Cole) writes:
>We're about to move our main news server from one machine to another.  We're
>running INN on both systems.  One system is SunOS 4.1 and the other is
>Solaris 2.5.
>
>The simplest way to get news onto the new machine is just to open up a full
>feed from the old one, but in that case, the article numbers will start from
>1 and that will screw up all our readers' news config files when they point
>to the new server.
>
>Is there a way to feed the articles from one system to the other en masse but
>in such a way that the article numbers are maintained in each newsgroup?  I
>know there's xreplic, but I don't know if you can do this on a large scale.

If you want to do an *absolutely* seamless transfer, that doesn't
require excessive downtime (maybe none at all for readers), this is the
True Way(tm) - I've done it at least twice:

1. Shut down news at the new server (or just don't start it:-).

2. Throttle innd at the old server - this means no new news can arrive,
but reading is still possible (and posting sort-of with 1.5 or patched
1.4unoff4 - posts will be spooled in in.coming, that's OK).

3. Copy active file old->new.

4. Transfer *only* those hierarchies that have extra long expiry times
(e.g. local ones) from the old spool to the new - use something that
preserves links for this, e.g. tar (if not too many), dump/restore,
perhaps cpio (dunno), but not rcp -r.

5. Build the history files at the new server (using makehistory).

6. Set up an xreplic feed old -> new.

7. Start news at new server, unthrottle innd at old.

8. After a week or two, or whatever your "normal" expiry time is, again
throttle innd at the old server, make sure the xreplic feed has
transfered everything queued and then take it down (requires restarting
innd at the new server), set up the proper feeds at the new server, and
finally do whatever you have to do to make readers and feeders find the
new one (might be as easy as changing the target of a hostname alias,
though feedees will have to reload their hosts.nntp if the IP address
changes) - do *not* unthrottle innd at the old server (ever again).

9. When DNS changes have propagated etc and it appears all new
connections go to the new server, finally take down the old one - any
lingering nnrpds can just be killed off, if the users' readers aren't
absolute crap they'll reconnect transparently and get the new server.

>  Can I regenerate
>both history (yes) and the active file (?) from the spool if I dump and
>restore news-spool? 

You can't regenerate active correctly from spool.

> And is it worth the time and trouble to restore the
>massive news spool or is there a less time-consuming way?

I definitely don't think copying the entire spool makes sense - by the
time you're finished, most of it is due for immediate expiration.:-) The
above procedure is certainly time-consuming in wall-clock time, but not
a whole lot in "work-time" - it *is* a bit complex though, you'll have
to decide if it's worth it.

--Per Hedeland
per@erix.ericsson.se

Technical Details
Message-ID: <5frshg$3ag$1@news.du.etx.ericsson.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5fpmq0$25o@unix.sri.com>

Show Full Headers
Complete Article Headers
Message-ID: <5frshg$3ag$1@news.du.etx.ericsson.se>
Subject: Re: any way to transfer articles while maintaining numbers?
Date: Sat, 08 Mar 1997 00:00:00 +0000
From: per@erix.ericsson.se (Per Hedeland)
References: <5fpmq0$25o@unix.sri.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 223970969
Organization: Ericsson Telecom, Stockholm, Sweden
Newsgroups: news.software.nntp,comp.unix.solaris
NNTP-Posting-User: per