Thread View: news.software.nntp
8 messages
8 total messages
Started by Yves Martin
Tue, 19 Mar 2002 14:52
INN: upgrading from 1.4 to 2.3.2
Author: Yves Martin
Date: Tue, 19 Mar 2002 14:52
Date: Tue, 19 Mar 2002 14:52
14 lines
1464 bytes
1464 bytes
Yes, you have well read the subject. Because nobody takes time to update gradually the INN server on a old Solaris, articles are stored in 1.4 flavour. It seems that 2.3 does not store articles the same way, does it ? Now, the aim is to move articles to a brand new INN 2.3.2 server on a Linux machine. Is there any tool to do this job ? Thanks for any help. -- Yves Martin
Re: INN: upgrading from 1.4 to 2.3.2
Author: Yves Martin
Date: Wed, 20 Mar 2002 07:40
Date: Wed, 20 Mar 2002 07:40
38 lines
2748 bytes
2748 bytes
John Schmidt <js@saltmine.radix.net> writes: > On Tue, 19 Mar 2002, Yves Martin wrote: > > > Yes, you have well read the subject. > > Because nobody takes time to update gradually > > the INN server on a old Solaris, articles are stored in 1.4 flavour. > > It seems that 2.3 does not store articles the same way, does it ? > > I've not personally used it on a 2.x machine, but they do support > tradspool (one file per article) as a storage mechanism, the same > as 1.4. In theory, all you should have to do is copy over your > article spool and active file, make sure that storage.conf is set > up appropriately, and rebuild overview. I have understood this point, reading man page on 'storage.conf' > An alternative I've seen discussed here is to feed your entire existing > spool to the new server. You'd probably want to set up xreplic mode > for this so article numbers will be the same on the old and new servers, > so readers won't notice the difference. If this method is used, you can > use cycbuffs on the new server rather than tradspool if so desired. > > The only time I've migrated a reader box is from 1.4unoff to > 1.7.2+insync, so I was able to just copy over the whole thing - spool, > active, and overview. I also copied 'active' file. Then I did a 'makehistory' but 'makedbz' failed with "Can't do dbzagain, No such file or directory" Do you suggest me to simply copy history, history.dir .hash and .index from old server to new one without any operations ? Thank you -- Yves Martin
Re: INN: upgrading from 1.4 to 2.3.2
Author: Yves Martin
Date: Wed, 20 Mar 2002 07:43
Date: Wed, 20 Mar 2002 07:43
23 lines
1958 bytes
1958 bytes
Yves Martin <ymartin@nospam.fr> writes: > John Schmidt <js@saltmine.radix.net> writes: > > > The only time I've migrated a reader box is from 1.4unoff to > > 1.7.2+insync, so I was able to just copy over the whole thing - spool, > > active, and overview. > > I also copied 'active' file. Then I did a 'makehistory' but 'makedbz' > failed with "Can't do dbzagain, No such file or directory" > > Do you suggest me to simply copy history, history.dir .hash and .index > from old server to new one without any operations ? Well in fact, it does not seem possible because 1.4 uses history, history.dir and history.pag 2.3 uses history, history.dir .hash and .index I will try to make 'makedbz' work. -- Yves Martin
Re: INN: upgrading from 1.4 to 2.3.2
Author: Yves Martin
Date: Wed, 20 Mar 2002 08:06
Date: Wed, 20 Mar 2002 08:06
33 lines
2323 bytes
2323 bytes
Yves Martin <ymartin@nospam.fr> writes: > Yves Martin <ymartin@nospam.fr> writes: > > > John Schmidt <js@saltmine.radix.net> writes: > > > > > The only time I've migrated a reader box is from 1.4unoff to > > > 1.7.2+insync, so I was able to just copy over the whole thing - spool, > > > active, and overview. > > > > I also copied 'active' file. Then I did a 'makehistory' but 'makedbz' > > failed with "Can't do dbzagain, No such file or directory" > > > > Do you suggest me to simply copy history, history.dir .hash and .index > > from old server to new one without any operations ? > > Well in fact, it does not seem possible because > 1.4 uses history, history.dir and history.pag > 2.3 uses history, history.dir .hash and .index > > I will try to make 'makedbz' work. I'm working with INN FAQ located at blank.org: This part describe what to do after a crash http://www.blank.org/innfaq/part6.html#6.6 but my 'makehistory' (2.3.2) does not support given options. Is there another FAQ updated for INN 2.3 ? -- Yves Martin
Re: INN: upgrading from 1.4 to 2.3.2
Author: Yves Martin
Date: Wed, 20 Mar 2002 08:53
Date: Wed, 20 Mar 2002 08:53
37 lines
2586 bytes
2586 bytes
Yves Martin <ymartin@nospam.fr> writes: > Yves Martin <ymartin@nospam.fr> writes: > > > Yves Martin <ymartin@nospam.fr> writes: > > > > > John Schmidt <js@saltmine.radix.net> writes: > > > > > > > The only time I've migrated a reader box is from 1.4unoff to > > > > 1.7.2+insync, so I was able to just copy over the whole thing - spool, > > > > active, and overview. > > > > > > I also copied 'active' file. Then I did a 'makehistory' but 'makedbz' > > > failed with "Can't do dbzagain, No such file or directory" > > > > > > Do you suggest me to simply copy history, history.dir .hash and .index > > > from old server to new one without any operations ? > > > > Well in fact, it does not seem possible because > > 1.4 uses history, history.dir and history.pag > > 2.3 uses history, history.dir .hash and .index > > > > I will try to make 'makedbz' work. > > I'm working with INN FAQ located at blank.org: > > This part describe what to do after a crash > http://www.blank.org/innfaq/part6.html#6.6 > but my 'makehistory' (2.3.2) does not support given options. > > Is there another FAQ updated for INN 2.3 ? Found it: http://www.eyrie.org/~eagle/faqs/inn.html -- Yves Martin
Re: INN: upgrading from 1.4 to 2.3.2
Author: Jeffrey M. Vinocur
Date: Thu, 21 Mar 2002 07:21
Date: Thu, 21 Mar 2002 07:21
22 lines
1726 bytes
1726 bytes
In article <Pine.GSO.4.43.0203191214540.13271-100000@saltmine.radix.net>, John Schmidt <js@saltmine.radix.net> wrote: > >On Tue, 19 Mar 2002, Yves Martin wrote: > >> the INN server on a old Solaris, articles are stored in 1.4 flavour. >> It seems that 2.3 does not store articles the same way, does it ? > >An alternative I've seen discussed here is to feed your entire existing >spool to the new server. We *strongly* recommend this for upgrading to 2.3.2 -- there are known problems with makehistory in that version. There are instructions for this in the eyrie.org INN FAQ, although I don't know if they work on INN 1.4. -- Jeffrey M. Vinocur jeff@litech.org
Re: INN: upgrading from 1.4 to 2.3.2
Author: Jeffrey M. Vinocur
Date: Thu, 21 Mar 2002 20:17
Date: Thu, 21 Mar 2002 20:17
18 lines
1649 bytes
1649 bytes
In article <Pine.GSO.4.43.0203211313240.10882-100000@saltmine.radix.net>, John Schmidt <js@saltmine.radix.net> wrote: > >On Thu, 21 Mar 2002, Jeffrey M. Vinocur wrote: > >> known problems with makehistory in that version. > >I thought that had been cleaned up - is the fixed makehistory only >in the development versions? Or does it even exist? Russ applied one fix to the STABLE tree, so that may work. The code in CURRENT is undergoing substantial revisions. -- Jeffrey M. Vinocur jeff@litech.org
Re: INN: upgrading from 1.4 to 2.3.2
Author: Russ Allbery
Date: Thu, 21 Mar 2002 21:24
Date: Thu, 21 Mar 2002 21:24
89 lines
4238 bytes
4238 bytes
John Schmidt <js@saltmine.radix.net> writes:
> It should work - the innxmit syntax looks right. The only question would
> be how the 1.4 innxmit handles message IDs not in the spool - such as
> articles that have been expired, were recieved less than /remember/ days
> ago.
It'll be fine; that won't be a problem.
What will be a problem, unfortunately, is that 1.4 doesn't add Xref
headers to every article, only to crossposted articles. You need to have
an Xref header in every article to use innxmit with xrefslave to a new
server.
This Perl script may help. You can then generate a list of files in the
new <to> tree and feed just that list of filenames to innxmit.
#!/usr/bin/perl
$ID = q$Id: fixref,v 1.1 2001/01/10 11:27:37 eagle Exp $;
#
# fixref -- Fix the Xref headers in a tree of news articles.
#
# Written by Russ Allbery <rra@stanford.edu>
# Copyright 2000 Board of Trustees, Leland Stanford Jr. University
#
# Copy a tree of traditional spool news articles, fixing the Xref headers as
# we go. Add Xref headers if missing (based on the path to the article),
# and if an Xref header is present, trim out hierarchies other than those
# given on the command line.
#
# Usage: fixref -a <hierarchy-pattern> <from> <to> <hierarchy>
use strict;
use vars qw($ALLOW $COUNT %DONE $FROM $ID $TO);
use File::Find qw(find);
use File::Path qw(mkpath);
use Getopt::Long qw(GetOptions);
sub copy {
return unless -f $_;
return unless /^\d+$/;
my $path = $File::Find::dir;
$path =~ s%^\Q$FROM\E/*%%;
open (SRC, "< $_") or die "Can't open $File::Find::name: $!\n";
mkpath ("$TO/$path", 0, 0755) unless $DONE{$path}++;
open (DST, "> $TO/$path/$_") or die "Can't open $TO/$path/$_: $!\n";
my $header = 1;
my $havexref = 0;
while ($header) {
my $line = <SRC>;
if ($line =~ /^Xref: /) {
if ($ALLOW) {
my ($xref, $server, @groups) = split (' ', $line);
@groups = grep { /$ALLOW/ } @groups;
$line = join (' ', $xref, $server, @groups) . "\n";
}
$havexref = 1;
} elsif ($line =~ /^[\r\n]*$/) {
unless ($havexref) {
my $group = $path;
$group =~ tr%/%.%;
$group .= ":$_";
print DST "Xref: fixref $group\n";
}
$header = 0;
}
print DST $line;
}
local $_;
print DST while <SRC>;
close SRC;
close DST or die "Can't flush $TO/$path/$_: $!\n";
print "$COUNT articles processed\n" if ((++$COUNT % 100) == 0);
}
GetOptions ('allow|a=s' => \$ALLOW) or exit 1;
my $hierarchy;
($FROM, $TO, $hierarchy) = @ARGV;
die "Usage: fixref [-a <allow>] <from> <to> <hierarchy>\n"
unless $hierarchy;
find (\©, "$FROM/$hierarchy");
--
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.
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