🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #17281

Re: Upgrade to 1.5.1/Overview issue

#17281
From: USENET news
Date: Thu, 24 Apr 1997 00:00
55 lines
3576 bytes
In article <335EF9BD.6988@monumental.com>,
Todd Romero  <todd@monumental.com> wrote:
>We are running 1.4 on our "reader" machine, which has overviews. In
>1.5.1 the overviews are confined to their own directory in the spool.
>What is the best way of doing the upgrade if there is a weeks worth of
>existing news and overviews in all rhe individual directories? Wont
>things get messy if there is a seperate overview directory AND existing
>overviews in the existing spool directories?

It's only a default; indeed I just noticed the 1.5.1 Install.ms.* documents
haven't caught up with the change and still claim the overview files go in 
the spool by default. So you could just change the definition of 
_PATH_OVERVIEWDIR to use the spool directories and instead of putting the 
overview files in a set of directories paralleling the spool, they'd just be 
put in the spool as at present.

Having separate overview directories is likely to be best, though, 
as it avoids lookups having to scan through an entire directory (maybe with 
thousands of files) to locate the directory entry for a group's overview 
file every time it is needed. Putting the overview directories on a separate
disk (not just partition) could also reduce competing disk activity. [The 
history database and log files are other "hot spots", where updates 
are liable to happen simultaneously, as articles arrive, so that 
separating them from the spool and each other to reduce competition may be
beneficial.]

If you just install the new INN (and ensure the top-level overview directory
gets created in its new location with appropriate ownership), the old 
overview files will simply be ignored, and new ones created. Those will not 
include information from older articles, so you'd need to run
"expireover -a" to scan the spool and re-create the overview files. 

Until that had completed, things should work normally but slower - as nnrpd
would have to open article files and read headers in order to respond to
xhdr and xover commands. The old overview files should just be located and
deleted.

Alternatively (but fiddlier to do...) you could (while INN is not running 
and updating the overview files) locate the existing files (e.g. using find) 
and edit the output to create a shell script which will create the new, 
parallel directory hierarchy and mv the overview files there, so INN could 
just carry on as before. [Though if you had to back off to the old version 
due to problems, *that* would then find itself running without overview data
and have to retrieve the information the slow way...]

If you do move the overview data and have any local maintenance scripts 
which look at those directories, don't forgot to update those as well!

                                John Line
--
Cambridge University Computing Service - USENET news manager. Usually John Line
newsmaster@ucs.cam.ac.uk    (alias {newsmaster,news,usenet}@news.cam.ac.uk)

Technical Details
Message-ID: <5jn8hh$pgt@lyra.csx.cam.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
References: <335EF9BD.6988@monumental.com>

Show Full Headers
Complete Article Headers
Message-ID: <5jn8hh$pgt@lyra.csx.cam.ac.uk>
Subject: Re: Upgrade to 1.5.1/Overview issue
Date: Thu, 24 Apr 1997 00:00:00 +0000
From: news@news.cam.ac.uk (USENET news)
References: <335EF9BD.6988@monumental.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-mail
X-Deja-AN: 237004045
Distribution: inet
Organization: Computing Service, Cambridge University, England
Newsgroups: news.software.nntp