🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Steve Thu, 14 Aug 2003 16:36
INN - timecaf
#66477
Author: Steve
Date: Thu, 14 Aug 2003 16:36
10 lines
1304 bytes
I've got an INN server running with the timecaf article storage format.  
For reasons I don't understand, this has resulted in me being unable to 
perform a full system backup (tar) as the file system thinks the 
timecaf-00 directory is about 3 times the size of the partition it 
resides on.

I'd like to convert to a tradspool format, but I'm not sure what the 
implications are.  Can I change it in storage.conf without losing 
articles and just let expiration take care of the old format?
Re: INN - timecaf
#66486
Author: Jeffrey M. Vinocur
Date: Fri, 15 Aug 2003 04:29
43 lines
2801 bytes
In article <bhgdpi$vr0$1@bananasplit.info>,
Steve  <steve@nospam-goofer.co.uk> wrote:
>I've got an INN server running with the timecaf article storage format.  
>For reasons I don't understand, this has resulted in me being unable to 
>perform a full system backup (tar) as the file system thinks the 
>timecaf-00 directory is about 3 times the size of the partition it 
>resides on.

Huh.  I don't know much about the timecaf implementation, but
maybe there are sparse files involved?  If you've got GNU tar,
you might try using the appropriate flag for detecting such
files.

But anyway --


>I'd like to convert to a tradspool format, but I'm not sure what the 
>implications are.  Can I change it in storage.conf without losing 
>articles and just let expiration take care of the old format?

You can do exactly what you describe, but be careful:

There are two purposes to storage.conf:  (1) first-matching-block
by pattern is used to determine where to store new articles, and
(2) the 'class:' lines are used to locate existing articles on
disk when a client requests them.

If you add a new block nearer the top of the file, it will affect
the #1 above, so articles arriving after the change will be
stored in a different location.  But as long as you're careful to
leave the old entry with the same 'class:' line, #2 will not be
affected, so old articles will remain accessible until such time
as they expire.  (You can revise the old entry so that it matches
different articles if you want; the important thing is that the
method type, 'class:', and 'options:' if any, remain the same.)


Russ, FAQ?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN - timecaf
#66487
Author: Steve
Date: Fri, 15 Aug 2003 08:15
79 lines
3077 bytes
Jeffrey M. Vinocur wrote:

> In article <bhgdpi$vr0$1@bananasplit.info>,
> Steve  <steve@nospam-goofer.co.uk> wrote:
>>I've got an INN server running with the timecaf article storage
>>format.  For reasons I don't understand, this has resulted in me
>>being unable to perform a full system backup (tar) as the file
>>system thinks the timecaf-00 directory is about 3 times the size
>>of the partition it resides on.
> 
> Huh.  I don't know much about the timecaf implementation, but
> maybe there are sparse files involved?  If you've got GNU tar,
> you might try using the appropriate flag for detecting such
> files.
> 
> But anyway --
> 
> 
>>I'd like to convert to a tradspool format, but I'm not sure what
>>the implications are.  Can I change it in storage.conf without
>>losing articles and just let expiration take care of the old
>>format? 
> 
> You can do exactly what you describe, but be careful:
> 
> There are two purposes to storage.conf:  (1) first-matching-block
> by pattern is used to determine where to store new articles, and
> (2) the 'class:' lines are used to locate existing articles on
> disk when a client requests them.
> 
> If you add a new block nearer the top of the file, it will affect
> the #1 above, so articles arriving after the change will be
> stored in a different location.  But as long as you're careful to
> leave the old entry with the same 'class:' line, #2 will not be
> affected, so old articles will remain accessible until such time
> as they expire.  (You can revise the old entry so that it matches
> different articles if you want; the important thing is that the
> method type, 'class:', and 'options:' if any, remain the same.)
> 
> 
> Russ, FAQ?

Jeffrey, thanks for the reply.  Would you mind giving me an example 
please?  My current storage.conf is:

method timecaf {
        newsgroups: *
        class: 0
}

If I understand correctly, I need to leave this entry unchanged until 
such time as all timecaf articles have expired, and add a new section 
preceeding this in the storage.conf file, that contains the tradspool 
configuration.
























Re: INN - timecaf
#66490
Author: Jeffrey M. Vinocur
Date: Fri, 15 Aug 2003 11:52
50 lines
2403 bytes
In article <bhi4rd$f89$1@bananasplit.info>,
Steve  <steve@nospam-goofer.co.uk> wrote:
>
>Jeffrey, thanks for the reply.  Would you mind giving me an example 
>please?  My current storage.conf is:
>
>method timecaf {
>        newsgroups: *
>        class: 0
>}
>
>If I understand correctly, I need to leave this entry unchanged until 
>such time as all timecaf articles have expired, and add a new section 
>preceeding this in the storage.conf file, that contains the tradspool 
>configuration.

Yes, but of course you add the new section first, and then wait
until the timecaf articles expire.  (Or, for that matter, it's
find if they never expire -- they'll remain accessible for as
long as needed.)

So right now, change your storage.conf to:

method tradspool {
        newsgroups: *
        class: 1
}

method timecaf {
        newsgroups: !*
        class: 0
}

and then restart innd.  The timecaf articles will expire as
normal, and in the meantime all new articles will be stored in
tradspool.


>
>
>
>

Y'know, if you trimmed some of the quoted text, you wouldn't have
to fill the article with blank lines...


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: INN - timecaf
#66492
Author: Steve
Date: Fri, 15 Aug 2003 14:48
12 lines
1350 bytes
Jeffrey M. Vinocur wrote:

Thanks, I've modified storage.conf as you suggested and all seems to be 
working well.

> Y'know, if you trimmed some of the quoted text, you wouldn't have
> to fill the article with blank lines...

Sorry, each group seems to have it's own preferred protocol.  Some want 
the entire thread in the last message, whilst others want nothing 
quoted at all.  I'll try and trim things further in future.
Re: INN - timecaf
#66500
Author: Richard Todd
Date: Sat, 16 Aug 2003 22:09
31 lines
2366 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes:

> In article <bhgdpi$vr0$1@bananasplit.info>,
> Steve  <steve@nospam-goofer.co.uk> wrote:
>>I've got an INN server running with the timecaf article storage format.  
>>For reasons I don't understand, this has resulted in me being unable to 
>>perform a full system backup (tar) as the file system thinks the 
>>timecaf-00 directory is about 3 times the size of the partition it 
>>resides on.

> Huh.  I don't know much about the timecaf implementation, but
> maybe there are sparse files involved?  If you've got GNU tar,
> you might try using the appropriate flag for detecting such
> files.

Timecaf files are most definitely sparse.  The "S" option for GNU tar seems to
Do the Right Thing here:

130 ichotolot /var/spool/news/timecaf-03/3e[ 5:07PM] Z% tar cvfzS /var/tmp/foo.tar.gz 3f4*
3f4e.CF
3f4f.CF
131 ichotolot /var/spool/news/timecaf-03/3e[ 5:07PM] Z% cd /var/tmp/test
132 ichotolot /var/tmp/test[ 5:07PM] Z% tar xvvfz /var/tmp/foo.tar.gz
-rw-rw-r-- news/wheel  6073657 Aug 16 10:33 2003 3f4e.CF
-rw-rw-r-- news/wheel  6066049 Aug 16 10:34 2003 3f4f.CF
133 ichotolot /var/tmp/test[ 5:08PM] Z% ls -ls
total 72
40 -rw-r--r--  1 rmtodd  wheel  6073657 Aug 16 10:33 3f4e.CF
32 -rw-r--r--  1 rmtodd  wheel  6066049 Aug 16 10:34 3f4f.CF
134 ichotolot /var/tmp/test[ 5:08PM] Z%
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