Thread View: news.software.nntp
6 messages
6 total messages
Started by Quentin Campbell
Thu, 02 Oct 2003 12:19
Unable to expire removed groups
Author: Quentin Campbell
Date: Thu, 02 Oct 2003 12:19
Date: Thu, 02 Oct 2003 12:19
138 lines
5125 bytes
5125 bytes
Am running inn-2.3.2-12 on a RedHat 7.3 box.
System is expiring articles of groups in the "active" file OK but is NOT
expiring removed groups; that is, News groups that have been removed with
"ctlinnd rmgroup <group>" and are not in "active" file.
We use "tradspool" storage and the Overview method is "tradindexed".
I do "/usr/bin/news.daily expireover lowmark" each night.
The groups that were removed are the "alt.binaries" hierarchy and the
"alt.jankenpon" hierarchy. Almost all articles in the latter hierarchy are
NOT cross-posted. Their history file entries still exist and have arrival
and posted dates of September 10 and earlier.
The "expire.ctl" file contains:
/remember/:7
*:A:0:0:0
*:M:1:7:14
*:U:1:3:3
# Keep FAQ's for at least a month, so they're always available
*.answers:M:1:28:56
*.announce.*:M:1:28:56
# The more worthwhile stuff we keep for at least 2 weeks
# First "The Big 8"
comp.*:U:1:28:28
comp.*:M:1:56:56
humanities.*:A:1:14:14
misc.*:A:1:14:14
news.*:U:1:14:14
news.*:M:1:21:21
rec.*:A:1:14:14
sci.*:A:1:28:28
soc.*:A:1:14:14
talk.*:A:1:14:14
# Next any groups of "academic/professional" interest
bionet.*:A:1:28:28
borland.*:A:1:28:28
linux.*:A:1:28:28
microsoft.*:A:1:28:28
uk.*:A:1:14:14
# Keep local stuff for a long time - at least 3 months
ncl.*:A:1:84:168
# Housekeeping stuff
control:A:1:3:3
control.*:A:1:3:3
control.rmgroup:A:1:28:28
control.newgroup:A:1:28:28
#
# The following groups are explicitly controlled although current
# default is also 3 days. The latter may be increased however.
#
cern.*:A:3:3:3
chinese.*:A:3:3:3
de.*:A:3:3:3
england.*:A:3:3:3
fido.*:A:3:3:3
fj.*:A:3:3:3
gnu.*:A:3:3:3
gov.*:A:3:3:3
han.*:A:3:3:3
net.*:A:3:3:3
#
# The dross
#
01alt.*:A:1:1:1
1a.*:A:1:1:1
23hoursupport.*:A:1:1:1
24hoursupport.*:A:1:1:1
3b.*:A:1:1:1
3com.*:A:1:1:1
........[but no "alt.*" groups appear in the rest of this list]
The output from the "news.daily" run says:
------------------------
Expire messages:
expireover start Thu Oct 2 07:39:15 BST 2003: ( -z/var/log/news/expire.rm
-Z/var/log/news/expire.lowmark)
Article lines processed 2952558
Articles dropped 285782
Overview index dropped 305401
expireover end Thu Oct 2 10:00:11 BST 2003
lowmarkrenumber begin Thu Oct 2 10:00:11 BST 2003: (/var/log/news/expire.lowmark)
lowmarkrenumber end Thu Oct 2 10:00:36 BST 2003
expirerm start Thu Oct 2 10:00:58 BST 2003
expirerm end Thu Oct 2 10:12:54 BST 2003
expire begin Thu Oct 2 10:13:24 BST 2003: (-v2)
Article lines processed 5271355
Articles retained 5013594
Entries expired 257761
Old entries dropped 70486
Old entries retained 1199816
expire end Thu Oct 2 12:05:47 BST 2003
all done Thu Oct 2 12:05:47 BST 2003
---------
Post expiration status:
Server status:
Server running
Allowing remote connections
Parameters c 200 i 50 (2) l 1000000 o 1011 t 300 H 2 T 60 X 0 normal
specified
Not reserved
Readers separate enabled
Perl filtering enabled
------------------------
QUESTIONS:
1. What else do I need to do to expire the articles of the removed groups?
2. What is a foolproof procedure to quickly remove groups and expire
their articles when you need to free up spool space in an emergency?
3. Why doesn't the -vN [N = 1-5] option of expire work? I was trying to
debug expire. See "news.daily" output above which used "expire -v2".
Thanks in advance for any help/suggestions.
Quentin Campbell (Q.G.Campbell AT ncl DOT ac DOT uk)
--
PHONE: +44 191 222 8209 Computing Service, University of Newcastle
FAX: +44 191 222 8765 Newcastle upon Tyne, United Kingdom, NE1 7RU.
-------------------------------------------------------------------------
"Any opinions expressed above are mine. The University can get its own."
Re: Unable to expire removed groups
Author: Russ Allbery
Date: Thu, 02 Oct 2003 17:42
Date: Thu, 02 Oct 2003 17:42
21 lines
2091 bytes
2091 bytes
Quentin Campbell <nqgc@burnmoor.ncl.ac.uk> writes:
> Am running inn-2.3.2-12 on a RedHat 7.3 box.
> System is expiring articles of groups in the "active" file OK but is NOT
> expiring removed groups; that is, News groups that have been removed
> with "ctlinnd rmgroup <group>" and are not in "active" file.
> We use "tradspool" storage and the Overview method is "tradindexed".
Yup. Known problem with tradspool. It's unfortunately difficult, due to
the structure of the storage API, to get this right. I'm hoping to have
it fixed in INN 2.5; in the meantime, you have to do mildly annoying
things like looking for directories under ~news/spool/articles that don't
correspond to newsgroups in the active file and deleting them.
--
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: Unable to expire removed groups
Author: Bill
Date: Thu, 02 Oct 2003 21:04
Date: Thu, 02 Oct 2003 21:04
25 lines
1940 bytes
1940 bytes
Russ Allbery wrote: > > Yup. Known problem with tradspool. It's unfortunately difficult, due to > the structure of the storage API, to get this right. I'm hoping to have > it fixed in INN 2.5; in the meantime, you have to do mildly annoying > things like looking for directories under ~news/spool/articles that don't > correspond to newsgroups in the active file and deleting them. > One possible solution is to make a copy of the active file and retain an older one and use diff to find the ones that were deleted. Then its a simple matter to remove the old directories. Something like this should work: cd $pathdb cp active.1 active.2 cp active active.1 diff -c active.1 active.2 > active..tmp grep '^- ' active.tmp
Re: Unable to expire removed groups
Author: Quentin Campbell
Date: Mon, 06 Oct 2003 14:12
Date: Mon, 06 Oct 2003 14:12
60 lines
3859 bytes
3859 bytes
On Thu, 2 Oct 2003, Russ Allbery wrote: > Date: Thu, 02 Oct 2003 10:42:59 -0700 > From: Russ Allbery <rra@stanford.edu> > Newsgroups: news.software.nntp > Subject: Re: Unable to expire removed groups > > Quentin Campbell <nqgc@burnmoor.ncl.ac.uk> writes: > > > Am running inn-2.3.2-12 on a RedHat 7.3 box. > > > System is expiring articles of groups in the "active" file OK but is NOT > > expiring removed groups; that is, News groups that have been removed > > with "ctlinnd rmgroup <group>" and are not in "active" file. > > > We use "tradspool" storage and the Overview method is "tradindexed". > > Yup. Known problem with tradspool. It's unfortunately difficult, due to > the structure of the storage API, to get this right. I'm hoping to have > it fixed in INN 2.5; in the meantime, you have to do mildly annoying > things like looking for directories under ~news/spool/articles that don't > correspond to newsgroups in the active file and deleting them. > > -- > 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. > Russ Thanks for the reply. I first do a "ctlinnd rmgroup <news group>" to stop new articles being added to each group I want to remove. I have then been using "find" and a script that it execs to clear out article files it finds within the <news group> hierarchies I am removing. The script that is exec'd by "find" does a "ctlinnd cancel" on the Message-ID of each article file. I did this because I assumed that "ctlinnd cancel" would also remove the entry from the history file and the overview database. However it does not remove the history file entry I discovered. If I now do instead rm -r /var/spool/news/articles/<sub-dir-to-remove>. what happens to the history file entries and the overview db entries for the articles that are removed? Are these cleaned up by "expireover" and "expire" in the nightly "news.daily" runs that are done? Quentin -- PHONE: +44 191 222 8209 Computing Service, University of Newcastle FAX: +44 191 222 8765 Newcastle upon Tyne, United Kingdom, NE1 7RU. ------------------------------------------------------------------------- "Any opinions expressed above are mine. The University can get its own."
Re: Unable to expire removed groups
Author: Quentin Campbell
Date: Mon, 06 Oct 2003 14:48
Date: Mon, 06 Oct 2003 14:48
23 lines
2262 bytes
2262 bytes
On Mon, 6 Oct 2003, Quentin Campbell wrote: [snip] > If I now do instead > > rm -r /var/spool/news/articles/<sub-dir-to-remove>. > > what happens to the history file entries and the overview db entries for > the articles that are removed? Are these cleaned up by "expireover" and > "expire" in the nightly "news.daily" runs that are done? I guess one first does a "ctlinnd rmgroup <news group>" to remove the group from both the "active" file and also to remove the corresponding IDX & DAT files for the group in the "overview" hierarchy. Quentin -- PHONE: +44 191 222 8209 Computing Service, University of Newcastle FAX: +44 191 222 8765 Newcastle upon Tyne, United Kingdom, NE1 7RU. ------------------------------------------------------------------------- "Any opinions expressed above are mine. The University can get its own."
Re: Unable to expire removed groups
Author: Russ Allbery
Date: Mon, 06 Oct 2003 16:55
Date: Mon, 06 Oct 2003 16:55
23 lines
2191 bytes
2191 bytes
Quentin Campbell <nqgc@burnmoor.ncl.ac.uk> writes:
> On Mon, 6 Oct 2003, Quentin Campbell wrote:
>> If I now do instead
>>
>> rm -r /var/spool/news/articles/<sub-dir-to-remove>.
>>
>> what happens to the history file entries and the overview db entries for
>> the articles that are removed? Are these cleaned up by "expireover" and
>> "expire" in the nightly "news.daily" runs that are done?
> I guess one first does a "ctlinnd rmgroup <news group>" to remove the
> group from both the "active" file and also to remove the corresponding
> IDX & DAT files for the group in the "overview" hierarchy.
Right. The history entries will then be removed during the next nightly
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.
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