🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46086

Re: swapping a master news server

#46086
From: 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

Technical Details
Message-ID: <39077053.10003DA7@bio.vu.nl>
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: <39072FF8.BA18AC15@cheerful.com> <ylvh14r2g2.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <39077053.10003DA7@bio.vu.nl>
Subject: Re: swapping a master news server
Date: Thu, 27 Apr 2000 00:00:00 +0000
From: Thomas Tonino <ttonino@bio.vu.nl>
References: <39072FF8.BA18AC15@cheerful.com> <ylvh14r2g2.fsf@windlord.stanford.edu>
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: 616101932
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@a2000.nl
X-Trace: tesla.a2000.nl 956788548 23141 24.132.6.5 (26 Apr 2000 22:35:48 GMT)
Organization: A2000 Kabeltelevisie en Telecommunicatie
Mime-Version: 1.0
NNTP-Posting-Date: 26 Apr 2000 22:35:48 GMT
Newsgroups: news.software.nntp