🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Sasko Stefanovski Mon, 22 Dec 2003 17:07
moving a server
#67516
Author: Sasko Stefanovski
Date: Mon, 22 Dec 2003 17:07
22 lines
2026 bytes
One practical question.
I have to move an inn server from an old to a new box. Wat is cleaner
and/or practical:

1. To configure the new server from scratch and configure it as a slave to
the old one, feed the article spool from the old to the new one as
described in http://www.eyrie.org/~eagle/faqs/inn.html#S6.4 and after
everithing is supposed to be working fine, shutdown the old box, and
rename the new server to have the same name as the old one (with minor
changes in the inn conf files).

Or
2. Shutdown the old server. Move the spool (tradspool and cnfs buffers),
active file, history, newsgroups, mirror the configuration and then
restart the new server.

I think the first method requires less downtime, and will result in less
lost post, if any.

What are your comments?

Sasko
Re: moving a server
#67517
Author: Jeffrey M. Vinocur
Date: Mon, 22 Dec 2003 17:57
35 lines
2701 bytes
In article <pan.2003.12.22.17.07.03.352511@richmond.edu>,
Sasko Stefanovski  <sstefano@richmond.edu> wrote:
>
>1. To configure the new server from scratch and configure it as a slave to
>the old one, feed the article spool from the old to the new one as
>described in http://www.eyrie.org/~eagle/faqs/inn.html#S6.4 and after
>everithing is supposed to be working fine, shutdown the old box, and
>rename the new server to have the same name as the old one

I think we generally trust this approach more.  You can certainly
do it without losing any articles at all (either by throttling
the old server so that no new articles come in while you're
mid-transfer, or in a variety of slightly more complicated ways
where you can receive new articles while doing the transfer).

BTW, once you complete the transfer, you can (with xrefslave
still true) configure a regular feed from old to new, and spend
some time verifying the reader config on the new box before
making the switch -- this will result in all new articles
appearing on both machines in parallel.


>2. Shutdown the old server. Move the spool (tradspool and cnfs buffers),
>active file, history, newsgroups, mirror the configuration and then
>restart the new server.

You can also do this (after all, in essence that's what an
operating system upgrade of the existing box would be), but
especially with CNFS buffers I'm a little wary.  It's definitely
easier to try the other approach and make sure it works before
committing.

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: moving a server
#67522
Author: Sasko Stefanovski
Date: Tue, 23 Dec 2003 16:30
38 lines
3059 bytes
Jeffrey M. Vinocur wrote:
> In article <pan.2003.12.22.17.07.03.352511@richmond.edu>,
> Sasko Stefanovski  <sstefano@richmond.edu> wrote:
> 
>>1. To configure the new server from scratch and configure it as a slave to
>>the old one, feed the article spool from the old to the new one as
>>described in http://www.eyrie.org/~eagle/faqs/inn.html#S6.4 and after
>>everithing is supposed to be working fine, shutdown the old box, and
>>rename the new server to have the same name as the old one
> 
> 
> I think we generally trust this approach more.  You can certainly
> do it without losing any articles at all (either by throttling
> the old server so that no new articles come in while you're
> mid-transfer, or in a variety of slightly more complicated ways
> where you can receive new articles while doing the transfer).

I did the first approach.
But while transfering the spool over to the news server I'am getting the 
following:

Dec 23 11:18:52 rumor-new innd: news.richmond.edu:48 bad_messageid 
<19943672.886214@relay.comanche.denmark.eu> <Tuesday@arch.inkom.ru>

Dec 23 11:19:03 rumor-new innd: news.richmond.edu:48 closed seconds 51 
accepted 0 refused 0 rejected 16085 duplicate 0 accepted size 0 
duplicate size 0

The rejected messages are too old (I did not set ctlinnd param c 0) and 
I don't care about them, but as soon as I hit this point, the innxmit on 
the old server exits with
     "Rewriting batch file and exiting."

Just to mention that on the new server I copied the active file form the 
old server. I also initialized the history to 0 lenght on the server 
before starting the transfer.
Am I doing right?
Re: moving a server
#67523
Author: Sasko Stefanovski
Date: Tue, 23 Dec 2003 16:38
26 lines
2659 bytes
Jeffrey M. Vinocur wrote:
> In article <pan.2003.12.22.17.07.03.352511@richmond.edu>,
> Sasko Stefanovski  <sstefano@richmond.edu> wrote:
> 
>>1. To configure the new server from scratch and configure it as a slave to
>>the old one, feed the article spool from the old to the new one as
>>described in http://www.eyrie.org/~eagle/faqs/inn.html#S6.4 and after
>>everithing is supposed to be working fine, shutdown the old box, and
>>rename the new server to have the same name as the old one
> 
> 
> I think we generally trust this approach more.  You can certainly
> do it without losing any articles at all (either by throttling
> the old server so that no new articles come in while you're
> mid-transfer, or in a variety of slightly more complicated ways
> where you can receive new articles while doing the transfer).
> 
> BTW, once you complete the transfer, you can (with xrefslave
> still true) configure a regular feed from old to new, and spend
> some time verifying the reader config on the new box before
> making the switch -- this will result in all new articles
> appearing on both machines in parallel.

Is using pullnews similar to this method? I can still use xrefslave=true 
on the new server to keep the same numbering, right?
Re: moving a server
#67540
Author: Jeffrey M. Vinocur
Date: Wed, 24 Dec 2003 08:08
34 lines
2469 bytes
In article <bs9qid$cpc$1@rumor.richmond.edu>,
Sasko Stefanovski  <sstefano@richmond.edu> wrote:
>
>Dec 23 11:18:52 rumor-new innd: news.richmond.edu:48 bad_messageid 
><19943672.886214@relay.comanche.denmark.eu> <Tuesday@arch.inkom.ru>

I'm confused by this message, actually.  It looks like there are
two Message-IDs there, and I don't know why that would be.


>The rejected messages are too old (I did not set ctlinnd param c 0) and 
>I don't care about them, but as soon as I hit this point, the innxmit on 
>the old server exits with
>     "Rewriting batch file and exiting."

Hmm, also strange.  You could try using -r to innxmit (if you
just want to ignore any problems).


>Just to mention that on the new server I copied the active file form the 
>old server. I also initialized the history to 0 lenght on the server 
>before starting the transfer.
>Am I doing right?

You may have problems because of the watermarks in the active
file; I would have set them all to zero (like a newly created
group) on the new server.  But I'm actually not sure what happens
when xrefslave is on and an article arrives with an article
number lower than the high watermark -- perhaps it works.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: moving a server
#67541
Author: Jeffrey M. Vinocur
Date: Wed, 24 Dec 2003 08:08
12 lines
1483 bytes
In article <bs9r1e$d8r$1@rumor.richmond.edu>,
Sasko Stefanovski  <sstefano@richmond.edu> wrote:
>
>Is using pullnews similar to this method? I can still use xrefslave=true 
>on the new server to keep the same numbering, right?

Correct.


-- 
Jeffrey M. Vinocur
jeff@litech.org
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