Thread View: news.software.nntp
8 messages
8 total messages
Started by Sven Ingvar Jonsson
Tue, 11 May 1999 00:00
Changing news server
Author: Sven Ingvar Jonsson
Date: Tue, 11 May 1999 00:00
Date: Tue, 11 May 1999 00:00
15 lines
959 bytes
959 bytes
We are going to upgrade our news server and we have had the new server running for a while. Is it possible to "synchronize" the old and the new server so that the news readers can continue without problems with their .newsrc etc after the upgrade? Thanks in advance Sven Ingvar -- Sven Ingvar Jonsson | E-mail: sijon@lin.foa.se FOA, Linkoping, Sweden |
Re: Changing news server
Author: Russ Allbery
Date: Tue, 11 May 1999 00:00
Date: Tue, 11 May 1999 00:00
18 lines
1170 bytes
1170 bytes
Sven Ingvar Jonsson <sijon@lin.foa.se> writes: > We are going to upgrade our news server and we have had the new server > running for a while. > Is it possible to "synchronize" the old and the new server so that the > news readers can continue without problems with their .newsrc etc after > the upgrade? Yes. You need to run your new server in Xref slaving mode for as long as the longest expire time of all the newsgroups you carry, and then you should be able to drop that new server in place without disruption to clients. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: Changing news server
Author: Greg Andrews
Date: Wed, 12 May 1999 00:00
Date: Wed, 12 May 1999 00:00
50 lines
3192 bytes
3192 bytes
tuuli.tuominen@helsinki.fi writes: >On 11 May 1999 15:15:06 -0700, Russ Allbery <rra@stanford.edu> wrote: >>Sven Ingvar Jonsson <sijon@lin.foa.se> writes: >> >>>> Is it possible to "synchronize" the old and the new server so that the >>> news readers can continue without problems with their .newsrc etc after >>> the upgrade? >> >>Yes. You need to run your new server in Xref slaving mode for as long as >>the longest expire time of all the newsgroups you carry, and then you >>should be able to drop that new server in place without disruption to >>clients. > >Can this be done in any other way? I mean, is it possible to copy the >article spool and the needed files (history, active and such) into the new >server and then just change servers? We're in the process of upgrading too >but I'm not sure the old server can take the extra load of sending all the >articles it receives to the new server. And we keep some of our local groups >for months, so I would like to have the old articles in those groups >available in the new server too. > But for a sufficiently large spool, copying the articles will take a loooong time. And you have to copy the active file and the history database files as well. Those are tough, but you can copy just the text file and rebuild the .dir and .pag files on the new server. The cheap way out is to bump the article numbers on the new server. Boost the "high" article number in the active file by some amount, e.g. 5000. Then switch your users over. Your long-lived local groups are likely small enough that you could copy the articles over. If you have a period where users will be using both servers (e.g. a two-day transition period), then you have to boost the article numbers on the new server enough that the articles on the old server will not catch up to the ones on the new server. In other words, if a group on the old server gets 2000 articles per day and you have a two-day transition, you need to boost the article number on the new server by at least 5000. Of course, you need to stop the new server while you fiddle with the article numbers in the active file. (you can merely throttle it, but I've forgotten the correct command to make it reload the active file before un-throttling it) A fairly simple awk script can increment the article numbers for you. -Greg
Re: Changing news server
Author: Russ Allbery
Date: Wed, 12 May 1999 00:00
Date: Wed, 12 May 1999 00:00
23 lines
1750 bytes
1750 bytes
Greg Andrews <gerg@shell1.ncal.verio.com> writes: > Russ Allbery <rra@stanford.edu> writes: >> The problem is that you want the article numbers to be the same on both >> servers. Otherwise, clients will get very confused when you do the >> switchover and people will probably have to either catch up on or >> re-read all of the groups they're subscribed to. > If the article numbers on the new server are higher than the article > numbers on the old server, newsreaders will handle it gracefully. They > don't have to be synchronized together, just new > old. They'll handle it *almost* gracefully. The person will end up reading a bunch of articles they've already read. This may or may not be a cause for concern depending on your user population. (For example, here at Stanford, I try to sync a new server but if I can't I might just have the users deal with the temporary disruption. At a commercial news provider, that may not be acceptable.) -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: Changing news server
Author: bill davidsen
Date: Wed, 12 May 1999 00:00
Date: Wed, 12 May 1999 00:00
59 lines
3267 bytes
3267 bytes
In article <slrn7jigdd.5kk.tuuli.tuominen@yendor.it.helsinki.fi>, Tuuli Tuominen <tuuli.tuominen@helsinki.fi> wrote: | Can this be done in any other way? I mean, is it possible to copy the | article spool and the needed files (history, active and such) into the new | server and then just change servers? We're in the process of upgrading too | but I'm not sure the old server can take the extra load of sending all the | articles it receives to the new server. And we keep some of our local groups | for months, so I would like to have the old articles in those groups | available in the new server too. The overhead of generating a single feed is trivial. Unless one more reader would break your machine, stop worrying. You need to generate a feed of incoming articles to the new machine, but you also need to feed the old articles, preferably first. So you start the feed of current articles, putting it in a file. Save the file, don't start anything to send it. This table tells you how to prepare the feed from the old machine to the new, based on the storage method. NEW server trad. CNFS OLDsvr ________________________________ | | | trad. | Hist2slave | Hist2peer | |_______________|_______________| | | | CNFS | You Lose | AWK | |_______________|_______________| For Hist2slave, pipe your history file into Hist2slave, and then run innxmit with the -x option against the output file. For Hist2peer, pipe your history file into Hist2peer, then run innxmit on the saved output, using the 'xrefslave' option in inn.conf on the CNFS machine. For CNFS to CNFS, use this AWK script to generate a list of files to send, then run innxmit to feed the salve. Use xrefslave as above. You can probably do CNFS to traditional, but it would be a high overhead operation which I will leave to someone else to write. If you didn't grab Hist2* when I posted years ago, let me know and I'll put them on a web site. Some people wanted the scripts to generate CNFS files automatically, too. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc One common problem is mistyping an email address and creating another valid, though unintended, recipient. Always check the recipient's address carefully when sending personal information, such as credit card numbers, death threats or offers of sexual services.
Re: Changing news server
Author: Tuuli Tuominen
Date: Wed, 12 May 1999 00:00
Date: Wed, 12 May 1999 00:00
27 lines
1882 bytes
1882 bytes
On 11 May 1999 15:15:06 -0700, Russ Allbery <rra@stanford.edu> wrote:
>Sven Ingvar Jonsson <sijon@lin.foa.se> writes:
>
>>> Is it possible to "synchronize" the old and the new server so that the
>> news readers can continue without problems with their .newsrc etc after
>> the upgrade?
>
>Yes. You need to run your new server in Xref slaving mode for as long as
>the longest expire time of all the newsgroups you carry, and then you
>should be able to drop that new server in place without disruption to
>clients.
Can this be done in any other way? I mean, is it possible to copy the
article spool and the needed files (history, active and such) into the new
server and then just change servers? We're in the process of upgrading too
but I'm not sure the old server can take the extra load of sending all the
articles it receives to the new server. And we keep some of our local groups
for months, so I would like to have the old articles in those groups
available in the new server too.
Tuuli.
--
NH 3.2.2D A Daphne-VF HP:287(303) Pw:112(112) AC:-41 L:30 T:113561 N
[++ )++ P+ S+ D+ p+ $+ t+ s+ W+ E- PS PP G+ C+ I++
@W(*(15)) N b- !B !Y X+ So+ Sp++ !sb !wb
Re: Changing news server
Author: Greg Andrews
Date: Wed, 12 May 1999 00:00
Date: Wed, 12 May 1999 00:00
26 lines
1914 bytes
1914 bytes
Russ Allbery <rra@stanford.edu> writes: >Tuuli Tuominen <tuuli.tuominen@helsinki.fi> writes: >> Russ Allbery <rra@stanford.edu> wrote: > >>> Yes. You need to run your new server in Xref slaving mode for as long >>> as the longest expire time of all the newsgroups you carry, and then >>> you should be able to drop that new server in place without disruption >>> to clients. > >> Can this be done in any other way? I mean, is it possible to copy the >> article spool and the needed files (history, active and such) into the >> new server and then just change servers? > >The problem is that you want the article numbers to be the same on both >servers. Otherwise, clients will get very confused when you do the >switchover and people will probably have to either catch up on or re-read >all of the groups they're subscribed to. > If the article numbers on the new server are higher than the article numbers on the old server, newsreaders will handle it gracefully. They don't have to be synchronized together, just new > old. -Greg
Re: Changing news server
Author: Russ Allbery
Date: Wed, 12 May 1999 00:00
Date: Wed, 12 May 1999 00:00
43 lines
2634 bytes
2634 bytes
Tuuli Tuominen <tuuli.tuominen@helsinki.fi> writes: > Russ Allbery <rra@stanford.edu> wrote: >> Yes. You need to run your new server in Xref slaving mode for as long >> as the longest expire time of all the newsgroups you carry, and then >> you should be able to drop that new server in place without disruption >> to clients. > Can this be done in any other way? I mean, is it possible to copy the > article spool and the needed files (history, active and such) into the > new server and then just change servers? The problem is that you want the article numbers to be the same on both servers. Otherwise, clients will get very confused when you do the switchover and people will probably have to either catch up on or re-read all of the groups they're subscribed to. In order to preserve article numbers, the server itself has to have the same idea of article numbers as the old server. With tradspool, I don't know of any way of doing this short of some really complicated mass article renaming and then rebuilding all of the overview files. It may be easier with the storage API if you can munge all of the uniover stuff, but I haven't looked at it in any detail. > We're in the process of upgrading too but I'm not sure the old server > can take the extra load of sending all the articles it receives to the > new server. A single outgoing feed usually isn't much load. And you can probably safely not bother with the binary newsgroups and just purge them when you switch to the new server, if you have an expire time of a day or two like most everyone. That saves a lot on the load of sending the feed. > And we keep some of our local groups for months, so I would like to have > the old articles in those groups available in the new server too. Assuming you're using tradspool, copy those article trees over to the new server first and then run makehistory and expireover -a. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
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