Thread View: news.software.nntp
7 messages
7 total messages
Started by Bernhard Kohl
Tue, 13 Mar 2001 10:45
News transfer from inn 2.2.1 to 2.3.1
Author: Bernhard Kohl
Date: Tue, 13 Mar 2001 10:45
Date: Tue, 13 Mar 2001 10:45
37 lines
1946 bytes
1946 bytes
I'm preparing a new news server that will run inn 2.3.1.
The enclosed NEWS documentation says that it's strongly recommended to feed
the articles to the new news server rather than dump it and trying to build
overview and history directly from the old spool.
So, I have 2 questions:
* 1 * Is there a way to sync the article numbers between the old an
new spool?
I've set xrefslave and storetoxref to true, but it doesn't seem
to work.
* 2 * Is there a script to feed all news to new server? I've found a
script on
http://www.eyrie.org/~eagle/faqs/inn.html#3.9
but it ends with many "ignoring line ..." when innxmitting
The script:
cd pathdb
perl -ne '($a,$b,$_) = split "\t"; print if $_' history > \
pathoutgoing/list
innxmit server list
Is there anything I'm doing wrong?
Thanks in advance for any clues.
Bernhard Kohl
Re: News transfer from inn 2.2.1 to 2.3.1
Author: Russ Allbery
Date: Tue, 13 Mar 2001 11:38
Date: Tue, 13 Mar 2001 11:38
48 lines
2812 bytes
2812 bytes
Bernhard Kohl <B.Kohl@rrz.uni-koeln.de> writes:
> I'm preparing a new news server that will run inn 2.3.1. The enclosed
> NEWS documentation says that it's strongly recommended to feed the
> articles to the new news server rather than dump it and trying to build
> overview and history directly from the old spool.
> So, I have 2 questions:
> * 1 * Is there a way to sync the article numbers between the old an
> new spool?
> I've set xrefslave and storetoxref to true, but it doesn't seem
> to work.
That should do it. What version of INN are you upgrading from? The
articles all need to have Xref headers in order to do this, so if you're
upgrading from a fairly old version (1.5 vintage), you may need to use a
script to add Xref headers to each article before feeding them to the new
server.
> * 2 * Is there a script to feed all news to new server? I've found a
> script on
> http://www.eyrie.org/~eagle/faqs/inn.html#3.9
> but it ends with many "ignoring line ..." when innxmitting
> The script:
> cd pathdb
> perl -ne '($a,$b,$_) = split "\t"; print if $_' history > \
> pathoutgoing/list
> innxmit server list
> Is there anything I'm doing wrong?
Which innxmit are you using? The one in INN 2.3.1 only understands
article tokens. You need to use either the one from your older server or
the one that will be in INN 2.3.2 (which will be released this month).
That's not in the STABLE snapshot yet, though.
--
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: News transfer from inn 2.2.1 to 2.3.1
Author: Bernhard Kohl
Date: Tue, 13 Mar 2001 12:45
Date: Tue, 13 Mar 2001 12:45
80 lines
3380 bytes
3380 bytes
Russ Allbery <rra@stanford.edu> wrote in
<yly9u9hp9t.fsf@windlord.stanford.edu>:
>Bernhard Kohl <B.Kohl@rrz.uni-koeln.de> writes:
>
>><SNIP>
>
>> * 1 * Is there a way to sync the article numbers between the old an
>> new spool?
>
>> I've set xrefslave and storetoxref to true, but it doesn't
>> seem to work.
>
>That should do it. What version of INN are you upgrading from? The
>articles all need to have Xref headers in order to do this, so if you're
>upgrading from a fairly old version (1.5 vintage), you may need to use a
>script to add Xref headers to each article before feeding them to the
>new server.
>
Sorry, but it's my fault! I missed to stop and restart innd and did only a
ctlinnd reload all.
>> * 2 * Is there a script to feed all news to new server? I've found a
>> script on
>
>> http://www.eyrie.org/~eagle/faqs/inn.html#3.9
>
>> but it ends with many "ignoring line ..." when innxmitting
>
>> The script:
>
>> cd pathdb
>> perl -ne '($a,$b,$_) = split "\t"; print if $_' history >
>> \
>> pathoutgoing/list
>> innxmit server list
>
>> Is there anything I'm doing wrong?
>
>Which innxmit are you using? The one in INN 2.3.1 only understands
>article tokens. You need to use either the one from your older server
>or the one that will be in INN 2.3.2 (which will be released this
>month). That's not in the STABLE snapshot yet, though.
>
I'm using the innxmit of inn 2.2.1.
A first look at the "ignoring lines" seems that there is a problem with
articles posted to multiple groups:
The history contains:
<98l1t7$pld$1@news.hccnet.nl> 984484988~-~984481628 \
nl.culinair/48692 nl.tuinen/5618
The resulting list entry is:
nl.culinair/48692 nl.tuinen/5618
leading to
Ignoring line "nl.culinair/48692 nl.tuinen/5618..."
The XREF header of this article:
Xref: RRZ.Uni-Koeln.DE nl.culinair:48692 nl.tuinen:5618
Would it be riskless to splitt these lines into separate lines?
BTW:
What could really go wrong in copiing the article tree from the old to the
new server?
Re: News transfer from inn 2.2.1 to 2.3.1
Author: Russ Allbery
Date: Tue, 13 Mar 2001 12:59
Date: Tue, 13 Mar 2001 12:59
36 lines
2481 bytes
2481 bytes
Bernhard Kohl <B.Kohl@rrz.uni-koeln.de> writes:
> A first look at the "ignoring lines" seems that there is a problem with
> articles posted to multiple groups:
> The history contains:
> <98l1t7$pld$1@news.hccnet.nl> 984484988~-~984481628 \
> nl.culinair/48692 nl.tuinen/5618
> The resulting list entry is:
> nl.culinair/48692 nl.tuinen/5618
Ah! Just cut everything after the space. I'll modify the FAQ entry to do
that.
> Would it be riskless to splitt these lines into separate lines?
You don't need to; it's the same article. That would just offer the same
article twice. Nuking everything after the first space is enough.
> What could really go wrong in copiing the article tree from the old to
> the new server?
I don't trust makehistory to do the right thing in all cases with an
imported spool. Eventually it *should*, but the advantage of using
innxmit is that it deals with changes in storage method, complete changes
in overview format and history format, only requires that the old server
be able to read the articles and not the new one, and provides an
opportunity to do other article transformations if needed.
--
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: News transfer from inn 2.2.1 to 2.3.1
Author: bill davidsen
Date: Wed, 14 Mar 2001 17:06
Date: Wed, 14 Mar 2001 17:06
54 lines
2961 bytes
2961 bytes
In article <Xns9063778CF2B4BBKohlrrzunikoelnde@134.95.100.202>,
Bernhard Kohl <B.Kohl@rrz.uni-koeln.de> wrote:
| I'm preparing a new news server that will run inn 2.3.1.
|
| The enclosed NEWS documentation says that it's strongly recommended to feed
| the articles to the new news server rather than dump it and trying to build
| overview and history directly from the old spool.
|
| So, I have 2 questions:
|
|
| * 1 * Is there a way to sync the article numbers between the old an
| new spool?
|
| I've set xrefslave and storetoxref to true, but it doesn't seem
| to work.
If you have an old system you have to set an option to include the
xref header. I believe it might be -x, but do check. You also have to
start innd with the option set to accept really old articles.
| * 2 * Is there a script to feed all news to new server? I've found a
| script on
|
| http://www.eyrie.org/~eagle/faqs/inn.html#3.9
|
| but it ends with many "ignoring line ..." when innxmitting
I usually just grab field three out of the history file and feed to
innxmit. Depending on the age of the old system formatting might be
needed.
From memory (ln is my news base dir):
cut -f3 $ln/db/history | grep / | sed 's/ .*//' >file_for_innxmit
I had a neat perl script to put the message-id back in in the right
place, but I doubt I can find it as quickly as you can write it. Again,
from memory:
while(<>) {
chomp;
@foo = split;
print "$foo[2] $foo[0]\n" if $#foo > 1;
}
History in and innxmit format out. I am likely to be mislead by memory,
check this stuff.
--
bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait." -seen in a doctor's office
Re: News transfer from inn 2.2.1 to 2.3.1
Author: bill davidsen
Date: Wed, 14 Mar 2001 17:15
Date: Wed, 14 Mar 2001 17:15
28 lines
2555 bytes
2555 bytes
In article <yl3dchg6yb.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: | I don't trust makehistory to do the right thing in all cases with an | imported spool. Eventually it *should*, but the advantage of using | innxmit is that it deals with changes in storage method, complete changes | in overview format and history format, only requires that the old server | be able to read the articles and not the new one, and provides an | opportunity to do other article transformations if needed. Agreed. While I have a perfect record doing old to new format conversion (one for one) even if it works it takes a boatload of disk and time. I have a program which I use to copy groups, which *might* work for a whole article base, which reads overview, pulls the articles, and write a file in rnews format. This is all suck feed with an nntp reader connection. Then I push the rnews file into the destination system. Never tried with xrefslave, interesting thought. Lots of ways to solve this, I like "feed it all" the best when you can. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc "I am lost. I am out looking for myself. If I should come back before I return, please ask me to wait." -seen in a doctor's office
Re: News transfer from inn 2.2.1 to 2.3.1
Author: Bernhard Kohl
Date: Thu, 15 Mar 2001 09:46
Date: Thu, 15 Mar 2001 09:46
4 lines
1057 bytes
1057 bytes
Thanks to all for the help. Bernhard Kohl
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