Thread View: news.software.nntp
9 messages
9 total messages
Started by Schroeder, AJ
Thu, 21 Sep 2006 22:30
INN: Cleaning old articles?
Author: Schroeder, AJ
Date: Thu, 21 Sep 2006 22:30
Date: Thu, 21 Sep 2006 22:30
26 lines
2109 bytes
2109 bytes
Hello group, I have another question. Again, I googled on how to clean up the spool directory for INN and I found numerous home-grown perl scripts that scanned the active file and the spool directory and compared the two and came up with a list of directories and files to remove. They all appeared to do the same thing, so I went with the "findmissing.pl" script in the unofficial contrib FTP directory. So I ran it and piped its output to a file so I could see what it was trying to remove, and the first thing that scared me was that the file generated was over 54,000 lines and it was going to try and remove my CNFS buffers and some of my overview files! Is this supposed to happen? Or is that script only for tradspool? (I do have tradspool for the big eight hierarchies, CNFS for the rest) I am currently running out of space and I would like keep the article spool cleaner than it is - seeing as how I have files and directories that are from early 2005. Thank you again, AJ Schroeder
Re: INN: Cleaning old articles?
Author: Jeffrey M. Vinocur
Date: Fri, 22 Sep 2006 03:15
Date: Fri, 22 Sep 2006 03:15
21 lines
1749 bytes
1749 bytes
In article <eev3qq$17qd$1@sxnews1.qg.com>, Schroeder, AJ <aj1@qg.com> wrote:
>
>I am currently running out of space and I would like keep the article spool
>cleaner than it is - seeing as how I have files and directories that are
>from early 2005.
Well, what does your expire.ctl predict?
(1) If the old articles are there because your expire.ctl
allows them, then you should simply adjust your expire
configuration.
(2) If the old articles are there despite your expire.ctl
(which probably means they are not in history and are not
accessible by newsreaders), then yeah, there is something
that will need intervention to clean up the spool.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: INN: Cleaning old articles?
Author: Schroeder, AJ
Date: Fri, 22 Sep 2006 17:28
Date: Fri, 22 Sep 2006 17:28
43 lines
2496 bytes
2496 bytes
Jeffrey M. Vinocur wrote: > In article <eev3qq$17qd$1@sxnews1.qg.com>, Schroeder, AJ <aj1@qg.com> > wrote: >> >> I am currently running out of space and I would like keep the >> article spool cleaner than it is - seeing as how I have files and >> directories that are from early 2005. > > Well, what does your expire.ctl predict? > > (1) If the old articles are there because your expire.ctl > allows them, then you should simply adjust your expire > configuration. Here is my expire.ctl file (I hope the syntax is correct): /remember/:10 ## Keep articles in the microsoft.* groups longer than default. ## Allow Expire headers to work. microsoft.*:A:20:30:never ## Keep rec.* and soc.* for 1-10 days, allowing Expires headers to work. ## This is an entry based on storage class, used when groupbaseexpiry is false. rec.*:AX:1:10:never soc.*:AX:1:10:never ## Keep the rest of the articles for 15-30 days, allow Expires headers to work. ## This entry uses the syntax appropriate when groupbaseexpiry is true in inn.c onf. *:A:15:30:never > > (2) If the old articles are there despite your expire.ctl > (which probably means they are not in history and are not > accessible by newsreaders), then yeah, there is something > that will need intervention to clean up the spool.
Re: INN: Cleaning old articles?
Author: Jeffrey M. Vinocur
Date: Sat, 23 Sep 2006 00:30
Date: Sat, 23 Sep 2006 00:30
33 lines
2131 bytes
2131 bytes
In article <ef16f1$1c74$1@sxnews1.qg.com>, Schroeder, AJ <aj1@qg.com> wrote:
>
>## Keep rec.* and soc.* for 1-10 days, allowing Expires headers to work.
>## This is an entry based on storage class, used when groupbaseexpiry is
>false.
>rec.*:AX:1:10:never
>soc.*:AX:1:10:never
>
>## Keep the rest of the articles for 15-30 days, allow Expires headers to
>work.
>## This entry uses the syntax appropriate when groupbaseexpiry is true in
>inn.c
>onf.
>*:A:15:30:never
Err...
Those shouldn't all be there. From the expire.ctl man page:
All lines must be in the correct format given the current setting of
groupbaseexpiry, and therefore the two formats cannot co-exist in the
same file.
I haven't a clue what semantics you're getting in real life -- do
your nightly reports indicate that any articles are being
expired? Regardless you should figure out what policies you want
in place, and what your groupbaseepxiry is set to, and correct
your expire.ctl to match.
--
Jeffrey M. Vinocur
jeff@litech.org
Re: INN: Cleaning old articles?
Author: Schroeder, AJ
Date: Mon, 25 Sep 2006 15:35
Date: Mon, 25 Sep 2006 15:35
82 lines
3682 bytes
3682 bytes
Jeffrey M. Vinocur wrote: > In article <ef16f1$1c74$1@sxnews1.qg.com>, Schroeder, AJ <aj1@qg.com> > wrote: >> >> ## Keep rec.* and soc.* for 1-10 days, allowing Expires headers to >> work. ## This is an entry based on storage class, used when >> groupbaseexpiry is false. >> rec.*:AX:1:10:never >> soc.*:AX:1:10:never >> >> ## Keep the rest of the articles for 15-30 days, allow Expires >> headers to work. >> ## This entry uses the syntax appropriate when groupbaseexpiry is >> true in inn.c >> onf. >> *:A:15:30:never > > Err... > > Those shouldn't all be there. From the expire.ctl man page: > > All lines must be in the correct format given the current setting > of groupbaseexpiry, and therefore the two formats cannot co-exist > in the same file. > > I haven't a clue what semantics you're getting in real life -- do > your nightly reports indicate that any articles are being > expired? Regardless you should figure out what policies you want > in place, and what your groupbaseepxiry is set to, and correct > your expire.ctl to match. Ok, so I started from scratch on my exipre.ctl file, here are the new settings: <snip> /remember/:10 ## Keep for 1-10 days, allow Expires headers to work. This entry uses ## the syntax appropriate when groupbaseexpiry is true in inn.conf. *:A:14:14:14 ## Believe expiration dates in moderated groups, up to six weeks *:M:1:30:42 ## Keep Big-8 stuff for a long time comp.*,humanities.*,news.*,sci.*,misc.*,rec.*,soc.*,talk.*:A:30:30:30 Does that look better? I also looked and articles are being expired, here is the expire messages from the previous nights news.daily (I think its working): Expire messages: expireover start Mon Sep 25 03:02:33 CDT 2006: ( -z/var/log/news/expire.rm -Z/var/log/news/expire.lowmark) Article lines processed 1727106 Articles dropped 40217 Overview index dropped 59606 expireover end Mon Sep 25 04:02:49 CDT 2006 lowmarkrenumber begin Mon Sep 25 04:02:49 CDT 2006: (/var/log/news/expire.lowmark) lowmarkrenumber end Mon Sep 25 04:02:50 CDT 2006 expirerm start Mon Sep 25 04:02:51 CDT 2006 expirerm end Mon Sep 25 04:04:22 CDT 2006 expire begin Mon Sep 25 04:04:52 CDT 2006: (-v1) Article lines processed 3671975 Articles retained 3394595 Entries expired 277380 expire end Mon Sep 25 04:32:31 CDT 2006 all done Mon Sep 25 04:32:31 CDT 2006
Re: INN: Cleaning old articles?
Author: Jeffrey M. Vinocur
Date: Tue, 26 Sep 2006 10:25
Date: Tue, 26 Sep 2006 10:25
22 lines
1770 bytes
1770 bytes
In article <ef8svt$1sf7$1@sxnews1.qg.com>, Schroeder, AJ <aj1@qg.com> wrote: > >Ok, so I started from scratch on my exipre.ctl file, here are the new >settings: [...] Okay, that looks reasonable. >I also looked and articles are being expired, here is the expire messages >from the previous nights news.daily (I think its working): Good. (What happened the news.daily run just after you fixed expire.ctl? Was there much more expiration than usual?) With all that out of the way, can you identify articles in tradspool that are older than the corresponding expire.ctl settings suggest should be present? -- Jeffrey M. Vinocur jeff@litech.org
Re: INN: Cleaning old articles?
Author: Schroeder, AJ
Date: Tue, 26 Sep 2006 16:35
Date: Tue, 26 Sep 2006 16:35
41 lines
2603 bytes
2603 bytes
Jeffrey M. Vinocur wrote: > In article <ef8svt$1sf7$1@sxnews1.qg.com>, Schroeder, AJ <aj1@qg.com> > wrote: >> >> Ok, so I started from scratch on my exipre.ctl file, here are the new >> settings: [...] > > Okay, that looks reasonable. > > >> I also looked and articles are being expired, here is the expire >> messages from the previous nights news.daily (I think its working): > > Good. (What happened the news.daily run just after you fixed > expire.ctl? Was there much more expiration than usual?) Not any more than usual, here is a snippet of last nights report: <snip> Article lines processed 3725302 Articles retained 3403535 Entries expired 321767 <snip> > > With all that out of the way, can you identify articles in > tradspool that are older than the corresponding expire.ctl > settings suggest should be present? There are a lot of directories that are from 2005 and several from earlier this year, so I peeked inside a couple of the older directories and they do not seem to contain any articles, so I can safely assume that expire.ctl is working since there there are no articles in the directories? But, can these directories just be removed? I don't want to bork up my history or overview if they are reliant on the directory structure.
Re: INN: Cleaning old articles?
Author: Jeffrey M. Vinocur
Date: Tue, 26 Sep 2006 22:46
Date: Tue, 26 Sep 2006 22:46
18 lines
1925 bytes
1925 bytes
In article <efbktf$248k$1@sxnews1.qg.com>, Schroeder, AJ <aj1@qg.com> wrote: > >There are a lot of directories that are from 2005 and several from earlier >this year, so I peeked inside a couple of the older directories and they do >not seem to contain any articles, so I can safely assume that expire.ctl is >working since there there are no articles in the directories? But, can these >directories just be removed? I don't want to bork up my history or overview >if they are reliant on the directory structure. Sure, you can remove empty directories from tradspool if it makes you happy, but I'm not sure it's really worth the trouble -- they don't take up much in the way of disk space, and they'll just be recreated if a new article arrives in that group. -- Jeffrey M. Vinocur jeff@litech.org
Re: INN: Cleaning old articles?
Author: Schroeder, AJ
Date: Fri, 29 Sep 2006 13:59
Date: Fri, 29 Sep 2006 13:59
23 lines
2209 bytes
2209 bytes
Jeffrey M. Vinocur wrote: > In article <efbktf$248k$1@sxnews1.qg.com>, Schroeder, AJ <aj1@qg.com> > wrote: >> >> There are a lot of directories that are from 2005 and several from >> earlier this year, so I peeked inside a couple of the older >> directories and they do not seem to contain any articles, so I can >> safely assume that expire.ctl is working since there there are no >> articles in the directories? But, can these directories just be >> removed? I don't want to bork up my history or overview if they are >> reliant on the directory structure. > > Sure, you can remove empty directories from tradspool if it makes > you happy, but I'm not sure it's really worth the trouble -- they > don't take up much in the way of disk space, and they'll just be > recreated if a new article arrives in that group. Gotcha... as long as articles are being expired is really the concern. And now my expire.ctl file is more in-line with what it should have been. Thank you for the help...
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