🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Xavier Roche Tue, 13 Sep 2005 09:45
[INN] Spool compatibility ?
#72256
Author: Xavier Roche
Date: Tue, 13 Sep 2005 09:45
9 lines
1544 bytes
Hi folks,

It is possible to migrate a INN 2.4.x spool to another platform 
(example: migrate from a Solaris machine to Linux) ? Any known 
endianness issues with spools such as timecaf ? Can 
history.hash/history.index be kept safely ?

Is rsync'ing a complete spool to another machine, and just start the 
server, totally stupid ?
Re: [INN] Spool compatibility ?
#72255
Author: Jeffrey M. Vinocur
Date: Tue, 13 Sep 2005 09:56
24 lines
1846 bytes
In article <dg676c$2fh$1@news.httrack.net>,
Xavier Roche  <xroche@free.fr.NOSPAM.invalid> wrote:
>
>It is possible to migrate a INN 2.4.x spool to another platform 
>(example: migrate from a Solaris machine to Linux) ? Any known 
>endianness issues with spools such as timecaf ? Can 
>history.hash/history.index be kept safely ?

I'm not actually sure about this.  But we routinely recommend
feeding the articles across using NNTP and letting the new
machine build its own history and overview from scratch.  See
http://www.eyrie.org/~eagle/faqs/inn.html#S6.4 for the recipe.


>Is rsync'ing a complete spool to another machine, and just start the 
>server, totally stupid ?

Well, I guess you could try it and see...I wish I had something
more definite to tell you.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: [INN] Spool compatibility ?
#72264
Author: Russ Allbery
Date: Thu, 15 Sep 2005 05:02
16 lines
1712 bytes
Xavier Roche <xroche@free.fr.NOSPAM.invalid> writes:

> It is possible to migrate a INN 2.4.x spool to another platform
> (example: migrate from a Solaris machine to Linux) ? Any known
> endianness issues with spools such as timecaf ? Can
> history.hash/history.index be kept safely ?

tradspool is okay, everything else is suspect.  In particular, history,
tradindexed overview, and I'm pretty sure timecaf and buffindexed are all
endian-dependent.

-- 
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] Spool compatibility ?
#72267
Author: Xavier Roche
Date: Thu, 15 Sep 2005 05:41
17 lines
1963 bytes
Russ Allbery wrote:
> tradspool is okay, everything else is suspect.  In particular, history,
> tradindexed overview, and I'm pretty sure timecaf and buffindexed are all
> endian-dependent.

Apparently it is worse: I copied a 2.4.1 timecaf spool to a same 
endianness machine (alpha/OSF1 to Linux/Xeon-64) and innd died with 
horrible screams:

Sep 14 15:02:36 kayoo kernel: innd[6338]: segfault at 00002aad69fede10 
rip 000000000043d9b6 rsp 00007ffffffff9e0 error 4

Moving overwiew to overwiew.old (forcing INN to create an empty 
overview) "fixes" the problem - but, of course, everything is empty!

And unfortunately makehistory -O takes ages - I'm wondering if a full 
innxmit wouldn't be faster ?
Re: [INN] Spool compatibility ?
#72268
Author: Russ Allbery
Date: Thu, 15 Sep 2005 05:58
26 lines
2115 bytes
Xavier Roche <xroche@free.fr.NOSPAM.invalid> writes:
> Russ Allbery wrote:

>> tradspool is okay, everything else is suspect.  In particular, history,
>> tradindexed overview, and I'm pretty sure timecaf and buffindexed are
>> all endian-dependent.

> Apparently it is worse: I copied a 2.4.1 timecaf spool to a same 
> endianness machine (alpha/OSF1 to Linux/Xeon-64) and innd died with 
> horrible screams:

> Sep 14 15:02:36 kayoo kernel: innd[6338]: segfault at 00002aad69fede10 
> rip 000000000043d9b6 rsp 00007ffffffff9e0 error 4

They're also dependent on the size of various data types, yeah.

> And unfortunately makehistory -O takes ages - I'm wondering if a full 
> innxmit wouldn't be faster ?

It shouldn't be, but makehistory isn't necessarily that optimized.

-- 
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] Spool compatibility ?
#72270
Author: Xavier Roche
Date: Thu, 15 Sep 2005 09:02
17 lines
1941 bytes
Russ Allbery wrote:
> They're also dependent on the size of various data types, yeah.

But type sizes should be consistence in this case (alpha/opteron have 
identical sizes and endianness, if I am not mistaken)

Unfortunately, makehistory crashes while rebuilding the history:

..
@04000043119302C300000000000000000000@
makehistory: no Message-ID header in @04000043119302C400000000000000000000@
*** glibc detected *** double free or corruption (out): 
0x00002aaaaadde8c8 ***
Aborted

I guess the only reliable way is to respool the zillions of messages, 
which is going to take several weeks :(
Re: [INN] Spool compatibility ?
#72269
Author: Frank Slootweg
Date: Thu, 15 Sep 2005 11:40
14 lines
1854 bytes
Xavier Roche <xroche@free.fr.nospam.invalid> wrote:
> Russ Allbery wrote:
> > They're also dependent on the size of various data types, yeah.
> 
> But type sizes should be consistence in this case (alpha/opteron have 
> identical sizes and endianness, if I am not mistaken)

  Russ talks about *data types*, not word length. The same (C) data type
might have a different length on different hardware (and even on
different OSs/C-environments on the same hardware). And then there are
the data *alignment* (i.e. byte boundary, 2-byte boundary, 4-byte
boundary, etc.) rules which can be different. Isn't binary data fun!? :-)

[deleted]
Re: [INN] Spool compatibility ?
#72280
Author: Xavier Roche
Date: Thu, 15 Sep 2005 19:41
6 lines
1519 bytes
Frank Slootweg wrote:
>   Russ talks about *data types*, not word length. The same (C) data type

Argh. So I assume the struct's are directly written on disk.

So, let's innxmit ..
Re: [INN] Spool compatibility ?
#72282
Author: Russ Allbery
Date: Thu, 15 Sep 2005 19:43
16 lines
1900 bytes
Xavier Roche <xroche@free.fr.NOSPAM.invalid> writes:
> Frank Slootweg wrote:

>>   Russ talks about *data types*, not word length. The same (C) data type

> Argh. So I assume the struct's are directly written on disk.

Right.  INN's data structures are all about speed and simplicity of code,
rather than about portability.  (The exception is the ovdb overview
backend, which should be as portable between platforms as BerkeleyDB is.)

-- 
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