Article View: news.software.nntp
Article #27445Re: Cleaning up INN's .overview hierarchy
From: Jerry Aguirre
Date: Fri, 03 Apr 1998 00:00
Date: Fri, 03 Apr 1998 00:00
47 lines
2897 bytes
2897 bytes
In article <pmb1-3103981720210001@pippin.york.ac.uk>, Mike Brudenell <pmb1@york.ac.uk> wrote: >Can I assume that (after a period of time when a group's articles have all >expired and been deleted) that its .overview file will *definitely* be >empty? No. Even if you regularly run expireover -s this is not guaranteed. For one thing expireover -s uses your active file as input. If a group is not in the active file then expireover will not even look for an overview file much less clean out old entries. So, for any group you deleted there is the posibility that there is an old .overview file hanging around. The directory and possibly articles may also hang around. Expire should clean out the articles and expireover from the expire output "should" clean out the overview file but nothing is guaranteed. >Or should I also try and match up the structure of the over.view tree >against that of the articles tree, and forcibly delete any over.view >directories which don't have a corresponding entry in the articles tree >(even if a non-empty .overview file or sub-directories remain)? No, you do NOT want to match overview to article spool. What you DO want to do is match overview to the active file. The active file is the definitive list of groups as far as INN is concerned. Any overview file that does not match an entry in the active file is bogus and useless. So your script should find each overview file and then match to see if "....news/over.view/GROUP/NAME/.overview " corresponds to GROUP.NAME in the active file. After than do the depth first directory deletion. Remember just because a/b/.overvie is invalid does not mean that a/b/c/.overview is not. In many group splits the top group is deleted and replaced by the "misc" group. Whether to delete valid but zero length .overview files is a separate issue. It only wastes an inode. Might save a small amount of time when the first overview entry is added. But a simpler solution to the entire problem might be to just run find on over.view and blow away any files older than N days. Most sites run with a maximum "keep" time anyway so any overview file that is older than that must have bogus information. This will not immediately reclaim every byte but it is a lot simpler to set up.
Technical Details
Message-ID:
<6g3f80$mnc$1@pluto.whowhere.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<pmb1-3103981720210001@pippin.york.ac.uk>Show Full Headers
Complete Article Headers
Message-ID: <6g3f80$mnc$1@pluto.whowhere.com> Subject: Re: Cleaning up INN's .overview hierarchy Date: Fri, 03 Apr 1998 00:00:00 +0000 From: jerry@taurus.whowhere.com (Jerry Aguirre) References: <pmb1-3103981720210001@pippin.york.ac.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 340607903 Organization: WhoWhere?; Mt. View, CA USA Newsgroups: news.software.nntp