🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Susan E. Cole Fri, 07 Mar 1997 00:00
any way to transfer articles while maintaining numbers?
#15638
Author: Susan E. Cole
Date: Fri, 07 Mar 1997 00:00
25 lines
1748 bytes
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.

Keeping the article numbers in sync involves at least the history database
and active file as well as files in the spool directory, so it's not anything
as simple as dumping and restoring /news/spool.  Or is it?  Can I regenerate
both history (yes) and the active file (?) from the spool if I dump and
restore news-spool?  And is it worth the time and trouble to restore the
massive news spool or is there a less time-consuming way?

Any tips from those who've gone before would be appreciated.


Re: any way to transfer articles while maintaining numbers?
#15617
Author: Tim Rosmus
Date: Fri, 07 Mar 1997 00:00
20 lines
1376 bytes
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.

Since this is a new server, just shutdown your old server, copy the active
file and newsfeeds file to the new server and configure the rest as needed.
Now when you start up both servers, the article numbers will be close if
not exact.  The affect on the news readers should be nill.
-- 
				-- tim --

Re: any way to transfer articles while maintaining numbers?
#15642
Author: Forrest J. Cavalier III
Date: Sat, 08 Mar 1997 00:00
32 lines
1564 bytes
In article <5fpmq0$25o@unix.sri.com>, cole@unix.sri.com wrote...
>
>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.
>

<snip>

Article numbers will not start from 1 if you copy the active file over first.  

Consider:
When a newsgroup completely expires, all that is left is an empty directory.  
But the active file maintains the highest article number precisely so that news 
clients don't get confused when articles do arrive.

The limiting case is the whole spool is empty.

Forrest Cavalier
Mib Software

(Now transferring the old spool,  well, that is another matter
entirely.)


Re: any way to transfer articles while maintaining numbers?
#15657
Author: 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

Re: any way to transfer articles while maintaining numbers?
#15665
Author: Michael Masterson
Date: Sat, 08 Mar 1997 00:00
11 lines
995 bytes
Susan E. Cole wrote:
> 
> We're about to move our main news server from one machine to another.  > I know there's xreplic, but I don't know if you can do this on a
> large scale.

All xreplic does is transfer the article number along with the article,
in effect, here's the article, make it 788823 on your end...  easy as
pie.  you can xreplic with innxmit or nntplink.

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