🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Kean Meng, Lim Thu, 27 Apr 2000 00:00
swapping a master news server
#46095
Author: Kean Meng, Lim
Date: Thu, 27 Apr 2000 00:00
18 lines
1187 bytes
I am running a one master server which is feeding to 4 slave news
server.
I am using INN1.7 for all the news server.  The master is receiving news
from outside provider like AT&T, Sprint etc.
Now I would like to swap my master server with a news server which is
created from fresh (/var/news/spool, history file is empty) except for
active file taken from the old master
After the swapping, can I continue feeding my slave server smoothly with
consistent articles numbering and not lossing any articles in between
the swapping?
Thanks for any hints.


--kean meng



Re: swapping a master news server
#46036
Author: Russ Allbery
Date: Wed, 26 Apr 2000 00:00
31 lines
2094 bytes
Kean Meng, Lim <kmlim@cheerful.com> writes:

> I am running a one master server which is feeding to 4 slave news
> server.  I am using INN1.7 for all the news server.  The master is
> receiving news from outside provider like AT&T, Sprint etc.

> Now I would like to swap my master server with a news server which is
> created from fresh (/var/news/spool, history file is empty) except for
> active file taken from the old master

> After the swapping, can I continue feeding my slave server smoothly with
> consistent articles numbering and not lossing any articles in between
> the swapping?

I've never actually done this, so I can't give you a certain answer.  But
if you shut down the old server cleanly, copy the active file over to the
new server after the old one is shut down, and copy the history file from
your old server to the new server (stripping out the third field of all
entries since the article isn't actually on disk) I think this should
work.  Slaving only cares about consistent assignment of article numbers
within groups, and copying the active file should preserve that.

You need to copy the history file over and use it as the basis for the
history file for the new server or your server will accept articles that
the old server had already accepted (resulting in your slaves seeing
duplicates).

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

Re: swapping a master news server
#46086
Author: Thomas Tonino
Date: Thu, 27 Apr 2000 00:00
35 lines
2320 bytes
Russ Allbery wrote:

> Kean Meng, Lim <kmlim@cheerful.com> writes:

> > Now I would like to swap my master server with a news server which is
> > created from fresh (/var/news/spool, history file is empty) except for
> > active file taken from the old master
> 
> > After the swapping, can I continue feeding my slave server smoothly with
> > consistent articles numbering and not lossing any articles in between
> > the swapping?

> I've never actually done this, so I can't give you a certain answer.  But
> if you shut down the old server cleanly, copy the active file over to the
> new server after the old one is shut down, and copy the history file from
> your old server to the new server (stripping out the third field of all
> entries since the article isn't actually on disk) 

I would suggest - if possible - to feet the new master for a while from
the old master as if it were a slave. This will make sure history and
active are in sync, at least for the more important recent articles.

Then stop both news servers, starting with the incoming feeds to the old
master. Change the new master to be really a master again, and change
its IP or whatever you had in mind to do the actual switchover, and
start it.

That seems like the safest way to go about it - and the method with the
shortest downtime. But it only works if you have actually two machines,
and the new master can run as slave.


Thomas

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