Thread View: news.software.nntp
5 messages
5 total messages
Started by Andrew Stribblehill
Wed, 02 Apr 2003 09:28
Newly-created CNFS buffers seem wonky
Author: Andrew Stribblehill
Date: Wed, 02 Apr 2003 09:28
Date: Wed, 02 Apr 2003 09:28
61 lines
2935 bytes
2935 bytes
Running the Debian package of INN 2.3.999+20030227-1 (i.e. the
snapshot from 2003-02-27. The server is a dual-processor i386 running
Linux 2.4.17.
I've just moved alt.* onto CNFS storage, with the following
[storage.conf]
method cnfs {
newsgroups: alt.*
class: 2
expires: 0s,4d
options: ALT
}
method tradspool {
class: 1
newsgroups: *
}
The cyclic buffers themselves are configured thus:
[cycbuff.conf]
cycbuff:ONE:/var/spool/news/cnfs/ONE:8388608
cycbuff:TWO:/var/spool/news/cnfs/TWO:8388608
cycbuff:THREE:/var/spool/news/cnfs/THREE:8388608
metacycbuff:ALT:ONE
(Yes, I know I'm only using 1/3 of the allocated space, but I want my
flexibility.)
Each cycbuff is a device, otherwise known as /dev/hda{9,10,11} which
are set in fdisk to be 8192 Mb, hence the size.
However, no files appear to be being stored in the CNFS buffers. I can
see the ones with an expiry header set, so I know that everything but
the CNFS system is working.
When I ran cnfsheadconf -c ONE, I get a division by zero because it
thinks $len is 0.
cnfsstat gives:
Class ALT for groups matching "alt.*"
Buffer ONE, size: 0.00 TBytes, position: 16.0 kBytes 0.00 cycles
Newest: 2003-04-02 10:23:41, 0 days, 0:00:00 ago
The buffers were initialised okay, apparently:
[greppings from news.notice]
Apr 1 16:44:53 sirius makehistory[496]: CNFS-sm: No magic cookie found for cycbuff ONE, initializing
Apr 1 16:44:53 sirius makehistory[496]: CNFS-sm: No magic cookie found for cycbuff TWO, initializing
Apr 1 16:44:53 sirius makehistory[496]: CNFS-sm: No magic cookie found for cycbuff THREE, initializing
Any ideas?
--
Andrew Stribblehill
Systems programmer, IT Service, University of Durham, England
Re: Newly-created CNFS buffers seem wonky
Author: Jeffrey M. Vinocur
Date: Wed, 02 Apr 2003 17:30
Date: Wed, 02 Apr 2003 17:30
29 lines
1639 bytes
1639 bytes
In article <877kadxn7s.fsf@durham.ac.uk>,
Andrew Stribblehill <a.d.stribblehill@durham.ac.uk> wrote:
>
>method cnfs {
> newsgroups: alt.*
> class: 2
> expires: 0s,4d
> options: ALT
>}
>
>method tradspool {
> class: 1
> newsgroups: *
>}
>
>
>However, no files appear to be being stored in the CNFS buffers. I can
>see the ones with an expiry header set, so I know that everything but
>the CNFS system is working.
I'm confused by what you expect to happen. The "cnfs" block will
only match articles in alt.* that have an Expires header.
What are you trying to accomplish?
--
Jeffrey M. Vinocur
jeff@litech.org
Re: Newly-created CNFS buffers seem wonky
Author: Andrew Stribblehill
Date: Fri, 04 Apr 2003 09:13
Date: Fri, 04 Apr 2003 09:13
42 lines
2378 bytes
2378 bytes
jeff@litech.org (Jeffrey M. Vinocur) writes:
> In article <877kadxn7s.fsf@durham.ac.uk>,
> Andrew Stribblehill <a.d.stribblehill@durham.ac.uk> wrote:
> >
> >method cnfs {
> > newsgroups: alt.*
> > class: 2
> > expires: 0s,4d
> > options: ALT
> >}
> >
> >method tradspool {
> > class: 1
> > newsgroups: *
> >}
> >
> >
> >However, no files appear to be being stored in the CNFS buffers. I can
> >see the ones with an expiry header set, so I know that everything but
> >the CNFS system is working.
>
> I'm confused by what you expect to happen. The "cnfs" block will
> only match articles in alt.* that have an Expires header.
>
> What are you trying to accomplish?
That was me trying to be clever. I can't guarantee that the CNFS
buffer is going to stick around for too long and I wanted to make sure
that articles with an expiry header set for > 4 days in the future
would go to the tradspool.
However, this part seems to have worked. With this config, only
articles with an Expires: went into the tradspool.
My question is basically, "Why does CNFS think my buffers are zero
size?"
--
Andrew Stribblehill
Systems programmer, IT Service, University of Durham, England
Re: Newly-created CNFS buffers seem wonky
Author: Jeffrey M. Vinocur
Date: Sat, 05 Apr 2003 00:02
Date: Sat, 05 Apr 2003 00:02
37 lines
2412 bytes
2412 bytes
In article <87y92qwrpx.fsf@durham.ac.uk>, Andrew Stribblehill <a.d.stribblehill@durham.ac.uk> wrote: > >That was me trying to be clever. I can't guarantee that the CNFS >buffer is going to stick around for too long and I wanted to make sure >that articles with an expiry header set for > 4 days in the future >would go to the tradspool. > >However, this part seems to have worked. With this config, only >articles with an Expires: went into the tradspool. Ok, that was my guess. But what you've implemented isn't what you describe. With the configuration you posted: - articles with Expires headers <4days go to CNFS - articles with Expires headers >4days go to tradspool - articles with no Expires header go to tradspool I think you want the "no Expires header" category to go to CNFS, right? If so, the way to do that is to flip the order of the groups, so "tradspool-only-if->4days" is first, and unrestricted CNFS is second. >My question is basically, "Why does CNFS think my buffers are zero >size?" Perhaps no articles are being filed in them because the criteria I mentioned above haven't been met by any articles? (The fact that cnfsheadconf dies in that case is probably a bug, but I'm too tired to track it down at the moment.) -- Jeffrey M. Vinocur jeff@litech.org
Re: Newly-created CNFS buffers seem wonky
Author: Bill
Date: Mon, 14 Apr 2003 06:59
Date: Mon, 14 Apr 2003 06:59
16 lines
1498 bytes
1498 bytes
On Wed, 02 Apr 2003 10:28:23 +0100, Andrew Stribblehill wrote: > > When I ran cnfsheadconf -c ONE, I get a division by zero because it > thinks $len is 0. > > Any ideas? This seems oddly familiar. Did you try restarting INN with "ctlinnd xexec innd"? If this works, it is because you need to restart inn every time you change the CNFS config. Doing a "ctlinnd reload all" doesn't rebuild the CNFS buffers. Bill
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