Thread View: news.software.nntp
5 messages
5 total messages
Started by Steve
Wed, 10 Sep 2003 10:52
INN Server Migration
Author: Steve
Date: Wed, 10 Sep 2003 10:52
Date: Wed, 10 Sep 2003 10:52
6 lines
1062 bytes
1062 bytes
I need to move an active inn-2.4.0 to another server, hopefully in a manner that will be transparent to the users of it. The new box has a fresh installation of inn-2.4.0 on it, but absoutely nothing configured and no db's initialized. Is there a proceedure I should follow to accomplish this?
Re: INN Server Migration
Author: Russ Allbery
Date: Wed, 10 Sep 2003 17:38
Date: Wed, 10 Sep 2003 17:38
56 lines
3555 bytes
3555 bytes
Steve <steve@nospam-goofer.co.uk> writes:
> I need to move an active inn-2.4.0 to another server, hopefully in a
> manner that will be transparent to the users of it.
> The new box has a fresh installation of inn-2.4.0 on it, but absoutely
> nothing configured and no db's initialized. Is there a proceedure I
> should follow to accomplish this?
URL: <http://www.eyrie.org/~eagle/faqs/inn.html#S6.4>
Subject: 6.4. Feed all articles on a server to another server
To feed all articles on an existing server to another one, regardless of
how they're stored on the server, first tell the new server to accept
articles regardless of how old they are (otherwise, INN will reject
articles older than artcutoff in inn.conf):
ctlinnd param c 0
You may also want to set xrefslave to true in inn.conf and then restart
INN on the new server if you want to keep the same article numbers as you
had on the old server.
Next, make sure that the old server is listed in incoming.conf of the new
server, and reload incoming.conf with ctlinnd to pick up that change.
Then try these commands (a variation on commands posted by Katsuhiro
Kondou to inn-workers) on the old server:
cd pathdb
perl -ne 'chomp; ($a,$b,$_) = split " "; print "$_\n" if $_' history \
| tr . / > pathoutgoing/list
innxmit server list
where pathdb is the path to the directory containing the history file
(usually ~news/db), pathoutgoing is the path to the outgoing spool
directory (usually ~news/spool/outgoing), and server is the name of the
new news server to which you're feeding the articles.
When done, set xrefslave to false in inn.conf again if you changed it and
then either restart INN on the new server (necessary if you changed
xrefslave) or use another ctlinnd param command to set the cutoff value
back to what's specified in inn.conf.
Please note that this method requires that all of the articles in your
spool have Xref headers. Current versions of INN will always add an Xref
header, but very old versions (earlier 1.x versions) will only add an Xref
header to crossposted articles. If you're trying to import such a spool,
you'll need to modify all of those articles to add an Xref header.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN Server Migration
Author: Steve
Date: Wed, 10 Sep 2003 23:21
Date: Wed, 10 Sep 2003 23:21
43 lines
2457 bytes
2457 bytes
Russ Allbery wrote: > URL: <http://www.eyrie.org/~eagle/faqs/inn.html#S6.4> My apologies, I should have looked here first. Initialized the db's on the new server Started INN with no errors. > ctlinnd param c 0 Done after restart > You may also want to set xrefslave to true in inn.conf and then > restart INN on the new server if you want to keep the same article > numbers as you had on the old server. Done > Next, make sure that the old server is listed in incoming.conf of > the new server, and reload incoming.conf with ctlinnd to pick up > that change. Done > Then try these commands (a variation on commands posted by > Katsuhiro Kondou to inn-workers) on the old server: > > cd pathdb > perl -ne 'chomp; ($a,$b,$_) = split " "; print "$_\n" if $_' > history \ > | tr . / > pathoutgoing/list > innxmit server list This appeared to work: Lots of i/o and the history file on 'new server' holds all the articles. Something went wrong though, only very recent articles appeared, those posted within the last few seconds. 'new server' had no incoming feeds except for 'old server' so they certainly were migrated. news.notice shows 1000's of articles refused. I retried the operation but hit issues with existing history. Tried reinitializing db's and repeating again. Server throttled due to problems with overview. I need to get back to a clean INN so I can try again tomorrow. Is there an easy way to do this short of completely wiping and recompiling?
Re: INN Server Migration
Author: Jeffrey M. Vinocur
Date: Wed, 10 Sep 2003 23:28
Date: Wed, 10 Sep 2003 23:28
27 lines
1972 bytes
1972 bytes
In article <bjobl7$e9s$1@bananasplit.info>, Steve <steve@nospam-goofer.co.uk> wrote: > >news.notice shows 1000's of articles refused. Can you check $pathlog/news for the reasons? (Oh, maybe you didn't have the groups created on the new server?) >I need to get back to a clean INN so I can try again tomorrow. Is >there an easy way to do this short of completely wiping and >recompiling? Well, you don't need to recompile; `make install` would suffice. But presumably you want to keep the configuration changes, which should be possible. I think it suffices to wipe $pathdb/history* and recreate as you did originally, wipe all your overview (varies depending on what ovmethod you chose), and reset the numbers in $pathdb/active (or delete it and create groups again). -- Jeffrey M. Vinocur jeff@litech.org
Re: INN Server Migration
Author: Steve
Date: Thu, 11 Sep 2003 09:19
Date: Thu, 11 Sep 2003 09:19
22 lines
1860 bytes
1860 bytes
Jeffrey M. Vinocur wrote: > (Oh, maybe you didn't have the groups created on the new server?) Indeed, that was the problem. > Well, you don't need to recompile; `make install` would suffice. > But presumably you want to keep the configuration changes, which > should be possible. Backed up ~news/etc, deleted ~news/*, ran make install, put etc back again. No issues. > > I think it suffices to wipe $pathdb/history* and recreate as you > did originally, wipe all your overview (varies depending on what > ovmethod you chose), and reset the numbers in $pathdb/active (or > delete it and create groups again). I tried this prior to reinstalling, but I hit various snags. I probably did get back to a clean state but it was a case of better safe than sorry. Thanks for your help and Russ's. Everything seems to have gone smoothly overnight and the new server is now active.
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