🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Dan Goodenberger Thu, 25 Jan 1996 00:00
Mismatch between history and active/.overview files
#4304
Author: Dan Goodenberger
Date: Thu, 25 Jan 1996 00:00
26 lines
1613 bytes
While correcting some recent disk space problems, I discovered that there
were articles in some groups that should have been expired many days ago.
Further investigation revealed that these same articles were not in the 
history file, although they were in the .overview and history files. This
brings up serveral questions:

1. What causes this to happen?

Close to the date of the oldest articles, I did a "makehistory -buv". Would
not re-numbering the active list immediately afterwards have caused the
articles to be left out of the history? Also, my newsspool is spread across
several disks (using symlinks, not striped) but I tried to follow all the
warnings about deleting links before the makehistory, etc.

2. What is the best way to get rid of the old articles not in the history?

I have both findmissing.pl and checklinks.pl, or should I perform another
makehistory followed immediately by a ctlinnd renumber? 

3. How can I prevent the same thing from happening again?

Any help is greatly appreciated.



Re: Mismatch between history and active/.overview files
#4310
Author: Steven Jones
Date: Fri, 26 Jan 1996 00:00
117 lines
5341 bytes
In article <4e8fpc$dmj@news2.aero.org>,
Dan Goodenberger <dan@speedy.aero.org> wrote:
>While correcting some recent disk space problems, I discovered that there
>were articles in some groups that should have been expired many days ago.
>Further investigation revealed that these same articles were not in the 
>history file, although they were in the .overview and history files. This
>brings up serveral questions:
>
>1. What causes this to happen?

If you are using the 'delayrm' option on your news.daily job then
the following could apply:

  The list of messages to be removed is processed by the 'expirerm' 
  script, which in turn uses the 'fastrm' program to do the file 
  removal.  When starting up your news software after an interruption,
  the 'rc.news' will ordinarily check for whether the expirerm script 
  has completed, and rerun it if it hasn't.  The expire program will 
  append to the files list leftover from a previously failed 
  expiration and so catch unremoved files on the next day.  

  Disk problems can cause even such well crafted procedures to fail.

  One thing that can be tried:

  . Take a look at the expired articles list(s) you may find 
    on your system to see if feeding them to 'fastrm' won't remove
    some of those articles.
 
      source innshellvars
      cd $MOST_LOGS
      tail expire.rm      # List generated by expire
      tail expire.lis     # List processed by expirerm

     If the listed files remain on your $SPOOL, you can remove
     them with the fastrm program:

      fastrm -s $SPOOL < expire.lis  &
      fastrm -s $SPOOL < expire.rm   &
 
  This is also a patch you may want to apply to 'fastrm' for 
  it's handling of symbolic links for crossposted articles:

*** fastrm.c.dist       Thu Mar 18 13:03:52 1993
--- fastrm.c    Thu Dec 14 09:29:54 1995
***************
*** 266,272 ****
      }
  
      if (AmRoot) {
!       if (stat(p, &sb) < 0) {
            if (errno != ENOENT) {
                oerrno = errno;
                (void)fprintf(stderr, "%s: stat ", MyName);
--- 266,272 ----
      }
  
      if (AmRoot) {
!       if (lstat(p, &sb) < 0) {
            if (errno != ENOENT) {
                oerrno = errno;
                (void)fprintf(stderr, "%s: stat ", MyName);


  Another thing you can do is get this script and use it to 
  generate a list of files for fastrm to delete from your spool:

    http://weber.u.washington.edu/~noyd/public/reclean.perl

  It uses the previous days expiration list, and assumes articles 
  with lower article numbers in the same newsgroups should be 
  deleted.  This may be a bad choice for local newsgroups with
  postings with "Expires:" headers.  It is reasonably fast however,
  and an examination of the files it identifies for removal may give
  other clues about why they were not removed when they should have been.
 
>Close to the date of the oldest articles, I did a "makehistory -buv". Would
>not re-numbering the active list immediately afterwards have caused the
>articles to be left out of the history? Also, my newsspool is spread across
>several disks (using symlinks, not striped) but I tried to follow all the
>warnings about deleting links before the makehistory, etc.

The active list is ordinarily renumbered during the INN startup if there
was an unclean shutdown.  It is also done by the news.daily script
after expiration processing, so that oversight would have been corrected
soon enough by the automated processing.

To trick rc.news into renumbering when starting the inn server:
   source innshellvars
   touch $SERVERPID    # simulate unclean shutdown
   rc.news             # start the server

>2. What is the best way to get rid of the old articles not in the history?

Well, the 'fastrm' program does an excellent job of removing files.
Using 'xargs' with rm also works well.   In both cases you'll need
to identify which files are to be removed.  That is ordinarily
done by the expiration process, but a find command may be used to 
identify the files if your expiration policy is sufficiently simple.

More tools you mention....

>I have both findmissing.pl and checklinks.pl, or should I perform another
>makehistory followed immediately by a ctlinnd renumber? 

If you go with makehistory,
you might also want to follow that with 'news.daily' to expire the 
old articles.  Some newsreaders are not nimble when they encounter
large holes in the article numbering sequence or missing overview data.

-- 
--
  Steven Jones
  Computing & Communications JE-30,  University of Washington
  E-mail:  noyd@u.washington.edu    Phone:  (206) 543-5852

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