Thread View: news.software.nntp
16 messages
16 total messages
Started by madog
Wed, 22 Aug 2001 23:56
timehash and cnfs
Author: madog
Date: Wed, 22 Aug 2001 23:56
Date: Wed, 22 Aug 2001 23:56
9 lines
1093 bytes
1093 bytes
i am running inn 2.3.1 current storage is timehash and i am thinking of changing it to cnfs any advice on how to do this ? (keeping current posts) thanks
Re: timehash and cnfs
Author: Russ Allbery
Date: Thu, 23 Aug 2001 00:53
Date: Thu, 23 Aug 2001 00:53
19 lines
1616 bytes
1616 bytes
madog <madog@madogcc.myip.org> writes:
> i am running inn 2.3.1
> current storage is timehash and i am thinking of changing it to cnfs
> any advice on how to do this ? (keeping current posts)
If you change your configuration in storage.conf, that will take effect
when innd is restarted. As long as you leave the old entries in
storage.conf with the same class numbers as they had before, existing
articles will continue to be accessible from the previous storage
mechanism until they expire.
--
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: timehash and cnfs
Author: madog
Date: Thu, 23 Aug 2001 02:35
Date: Thu, 23 Aug 2001 02:35
31 lines
2064 bytes
2064 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:yln14rvbop.fsf@windlord.stanford.edu... | madog <madog@madogcc.myip.org> writes: | | > i am running inn 2.3.1 | > current storage is timehash and i am thinking of changing it to cnfs | | > any advice on how to do this ? (keeping current posts) | | If you change your configuration in storage.conf, that will take effect | when innd is restarted. As long as you leave the old entries in | storage.conf with the same class numbers as they had before, existing | articles will continue to be accessible from the previous storage | mechanism until they expire. so, all that i need to do is to add a new option with CNFS to the file storage.conf and after inn is restarted all the NEW artilcles will be using CNFS, while the old ones still use TIMEHASH until they expire is that what you mean ? also, i don't understand the class stuff, currently i set TIMEHASH class 0, do i have to set CNFS other than that, say class 1, or class 2 ? thanks
Re: timehash and cnfs
Author: Russ Allbery
Date: Thu, 23 Aug 2001 03:28
Date: Thu, 23 Aug 2001 03:28
24 lines
1730 bytes
1730 bytes
madog <madog@madogcc.myip.org> writes:
> so, all that i need to do is to add a new option with CNFS to the file
> storage.conf and after inn is restarted all the NEW artilcles will be
> using CNFS, while the old ones still use TIMEHASH until they expire
> is that what you mean ?
Right.
> also, i don't understand the class stuff, currently i set TIMEHASH class
> 0, do i have to set CNFS other than that, say class 1, or class 2 ?
Right.
The number is arbitrary; every different storage method just has to have a
different number.
--
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: timehash and cnfs
Author: Karsten Thygesen
Date: Thu, 23 Aug 2001 05:33
Date: Thu, 23 Aug 2001 05:33
16 lines
1449 bytes
1449 bytes
Russ Allbery <rra@stanford.edu> writes: > > also, i don't understand the class stuff, currently i set TIMEHASH class > > 0, do i have to set CNFS other than that, say class 1, or class 2 ? > > Right. > > The number is arbitrary; every different storage method just has to have a > different number. Why not let INN choose class numbers by it self, then? Why make it a config option? Sorry - I don't get the purpose of classes either :-) Karsten
Re: timehash and cnfs
Author: madog
Date: Thu, 23 Aug 2001 07:06
Date: Thu, 23 Aug 2001 07:06
24 lines
1841 bytes
1841 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:ylsnejbgkt.fsf@windlord.stanford.edu... | madog <madog@madogcc.myip.org> writes: | | > so, all that i need to do is to add a new option with CNFS to the file | > storage.conf and after inn is restarted all the NEW artilcles will be | > using CNFS, while the old ones still use TIMEHASH until they expire | | > is that what you mean ? | | Right. | | > also, i don't understand the class stuff, currently i set TIMEHASH class | > 0, do i have to set CNFS other than that, say class 1, or class 2 ? | | Right. | | The number is arbitrary; every different storage method just has to have a | different number. ok, i've got a rough idea. thanks a lot
Re: timehash and cnfs
Author: Graeme Mathieson
Date: Thu, 23 Aug 2001 07:48
Date: Thu, 23 Aug 2001 07:48
24 lines
1985 bytes
1985 bytes
Karsten Thygesen <karthy@sonofon.dk> writes:
> Why not let INN choose class numbers by it self, then? Why make it a
> config option? Sorry - I don't get the purpose of classes either :-)
If 'groupbaseexpiry' is set to false in inn.conf, then expiry is based
on the class in expire.ctl. For example, I permanently archive some
groups in tradspool, so I have an entry in my storage.conf along the
lines of:
method tradspool {
newsgroups: private.*
class: 1
}
And expire.ctl has:
## Never expire anything from tradspool
1:never:never:never
--
graeme+sig@mathie.cx http://www.mathie.cx/~graeme/
Re: timehash and cnfs
Author: madog
Date: Thu, 23 Aug 2001 08:00
Date: Thu, 23 Aug 2001 08:00
18 lines
1698 bytes
1698 bytes
"Graeme Mathieson" <graeme+usenet@mathie.cx> wrote in message news:87zo8rb4ih.fsf@homer.mathie.cx... | Karsten Thygesen <karthy@sonofon.dk> writes: | | > Why not let INN choose class numbers by it self, then? Why make it a | > config option? Sorry - I don't get the purpose of classes either :-) | | If 'groupbaseexpiry' is set to false in inn.conf, then expiry is based | on the class in expire.ctl what if it's set to true? by default it is true with my inn 2.3.1 i don't have to deal with class any more ? thanks
Re: timehash and cnfs
Author: Graeme Mathieson
Date: Thu, 23 Aug 2001 08:17
Date: Thu, 23 Aug 2001 08:17
22 lines
2245 bytes
2245 bytes
"madog" <madog@madogcc.myip.org> writes: > "Graeme Mathieson" <graeme+usenet@mathie.cx> wrote in message > | > | If 'groupbaseexpiry' is set to false in inn.conf, then expiry is based > | on the class in expire.ctl > > what if it's set to true? by default it is true with my inn 2.3.1 If it's set to true, then the first field in the expiry line is a list of wildmat-style patterns. See storage.conf(5) and expire.ctl(5) which explain it better than I can. > i don't have to deal with class any more ? I _think_ it still needs to be there in storage.conf. For timecaf and timehash, the storage class is part of what's used to determine the file the article is stored in. For cnfs and tradspool, it looks to be insignificant. -- graeme+sig@mathie.cx http://www.mathie.cx/~graeme/
Re: timehash and cnfs
Author: madog
Date: Thu, 23 Aug 2001 08:44
Date: Thu, 23 Aug 2001 08:44
39 lines
2270 bytes
2270 bytes
"Graeme Mathieson" <graeme+usenet@mathie.cx> wrote in message
news:87vgjfb364.fsf@homer.mathie.cx...
| If it's set to true, then the first field in the expiry line is a list
| of wildmat-style patterns. See storage.conf(5) and expire.ctl(5) which
| explain it better than I can.
some one has told me this, currently i set this:
test:A:1:1:1
*:A:30:30:30
which i think is to keep the articles in group "test" for only 1 day, whil
the others for 30 days
is that right ?
| > i don't have to deal with class any more ?
|
| I _think_ it still needs to be there in storage.conf. For timecaf and
| timehash, the storage class is part of what's used to determine the file
| the article is stored in. For cnfs and tradspool, it looks to be
| insignificant.
ok, but i still feel confused about class, for example, is it legal to set
class this way ?
method timehash {
newsgroups: *
class: 0
size: 2,64000
}
method timehash {
newsgroups: *
class: 1
size: 2,64000
Re: timehash and cnfs
Author: Graeme Mathieson
Date: Thu, 23 Aug 2001 09:22
Date: Thu, 23 Aug 2001 09:22
40 lines
2523 bytes
2523 bytes
"madog" <madog@madogcc.myip.org> writes:
[ expire.ctl ]
> some one has told me this, currently i set this:
>
> test:A:1:1:1
> *:A:30:30:30
>
> which i think is to keep the articles in group "test" for only 1 day,
> whil the others for 30 days is that right ?
That's correct, yes.
> ok, but i still feel confused about class, for example, is it legal to
> set class this way ?
>
> method timehash {
> newsgroups: *
> class: 0
> size: 2,64000
> }
> method timehash {
> newsgroups: *
> class: 1
> size: 2,64000
I don't get it. The second method stanza there is completely pointless.
storage.conf(5) says:
If an article matches multiple storage method entries, the
first one will be used.
Since both are exactly the same, only the first would ever be used.
For timehash, the class specifies the directory under $patharticles
that the article is stored under. For example, in your first method
there, articles would be stored in $patharticles/time-00/...
--
graeme+sig@mathie.cx http://www.mathie.cx/~graeme/
Re: timehash and cnfs
Author: Russ Allbery
Date: Thu, 23 Aug 2001 09:55
Date: Thu, 23 Aug 2001 09:55
27 lines
2028 bytes
2028 bytes
Karsten Thygesen <karthy@sonofon.dk> writes:
> Russ Allbery <rra@stanford.edu> writes:
>> Right.
>> The number is arbitrary; every different storage method just has to
>> have a different number.
> Why not let INN choose class numbers by it self, then? Why make it a
> config option? Sorry - I don't get the purpose of classes either :-)
How do you guarantee, after you've changed storage.conf, that INN will
assign the same storage class numbers to your storage.conf stanzas as it
did before except for the part that you changed?
I don't think you can without having the user do the number assignment or
adding a *lot* more intelligence.
And if the number changes after an article is stored, that article becomes
unretrievable, so that part is important.
--
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: timehash and cnfs
Author: Russ Allbery
Date: Thu, 23 Aug 2001 09:56
Date: Thu, 23 Aug 2001 09:56
18 lines
1879 bytes
1879 bytes
Graeme Mathieson <graeme+usenet@mathie.cx> writes:
> I _think_ it still needs to be there in storage.conf. For timecaf and
> timehash, the storage class is part of what's used to determine the file
> the article is stored in. For cnfs and tradspool, it looks to be
> insignificant.
I believe it's part of the article token. Hm. Although the article token
should still store enough other information that the message should still
be retrievable, so maybe the stuff I just said in my other message was
completely wrong....
--
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: timehash and cnfs
Author: madog
Date: Thu, 23 Aug 2001 10:17
Date: Thu, 23 Aug 2001 10:17
18 lines
1824 bytes
1824 bytes
"Graeme Mathieson" <graeme+usenet@mathie.cx> ??????:87pu9nb07a.fsf@homer.mathie.cx... | storage.conf(5) says: | | If an article matches multiple storage method entries, the | first one will be used. | | Since both are exactly the same, only the first would ever be used. | | For timehash, the class specifies the directory under $patharticles | that the article is stored under. For example, in your first method | there, articles would be stored in $patharticles/time-00/... ok, i got it, thanks a lot
Re: timehash and cnfs
Author: Graeme Mathieson
Date: Thu, 23 Aug 2001 10:45
Date: Thu, 23 Aug 2001 10:45
45 lines
3054 bytes
3054 bytes
Russ Allbery <rra@stanford.edu> writes:
> Graeme Mathieson <graeme+usenet@mathie.cx> writes:
>
> > I _think_ it still needs to be there in storage.conf. For timecaf and
> > timehash, the storage class is part of what's used to determine the file
> > the article is stored in. For cnfs and tradspool, it looks to be
> > insignificant.
>
> I believe it's part of the article token.
This time I've actually scanned the code rather than just the
documentation. It is part of the article token, yes.
> Hm. Although the article token
> should still store enough other information that the message should still
> be retrievable,
From what I can see (and I could be completely wrong), the class is not
used for retrieving an article in CNFS, but it is used to determine
which metacycbuff is chosen to write an article. The only thing
tradspool uses the class for is generating the token. :)
It has occured to me that it is not possible to have multiple tradspool
stanzas in storage.conf. It would be useful to be able to do something
along the lines of:
method tradspool {
class: 0
newsgroups: *
size: 1,1999
options: /disk/lots-of-inodes
}
method tradspool {
class: 1
newsgroups: *
options: /disk/the-rest
}
The only excuse for it I can think of just now is that you'd be able
to make better use of partitions formatted with a particular blocksize.
But it seems kinda neat.
--
graeme+sig@mathie.cx http://www.mathie.cx/~graeme/
Re: timehash and cnfs
Author: Kjetil Torgrim Homme
Date: Thu, 23 Aug 2001 20:38
Date: Thu, 23 Aug 2001 20:38
11 lines
1535 bytes
1535 bytes
[Graeme Mathieson] > It has occured to me that it is not possible to have multiple > tradspool stanzas in storage.conf. You certainly can, but they may have to be the same class (I haven't checked). Kjetil T.
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