🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #1176

Re: rn 4.4 locks active file (?)

#1176
From: System Admin (Mike Peterson)
Date: Wed, 12 Feb 1992 17:35
32 lines
2244 bytes
In article <1992Feb10.154056.27424@aw2.fsl.ca.boeing.com> vds7789@aw2.fsl.ca.boeing.com (Vincent D. Skahan) writes:
>I'm running the current C-news on a ring of Apollo
>workstations, with the current nn and pl2 of rn as
>newsreaders.
>
>I've noticed that when anybody is merely reading in
>'rn', that nobody can post articles from 'nn', or
>even B-news postnews.  The message received says that
>the active file is locked and indeed it is, by the 
>'rn' user(s)..

That is because the Apollo locks files across nodes, unlike NFS, and your
news posting stuff can't get a "write" lock on the file when a "read" lock
exists from another node (it can do it for a local lock, I think).

>Is there a compilation option for 'rn' that will
>reverse this ?  How 'bout the latest patch for 'rn' ?

Some patches were posted a while ago for this; our solution requires
no patching: we have the readers using a copy of the active
file (via a link from each node), and the active.copy file is replaced
every so often by a copy of the real active file.
I can supply a script I run from cron on the news master node,
bit it's pretty simple. You could also just copy the active file
to each node, but this can get brutal for lots of nodes (or slow
nodes). The penalty to my scheme is that once you are in 'rn', you
don't see newer news until you exit and start again.

Mike.
-- 
What are the chances that any computer system will ever "work" properly?
.. and Slim just left town. -*- Mike Peterson, SysAdmin, U/Toronto Chemistry
Technical Details
Message-ID: <1992Feb12.173519.24542@alchemy.chem.utoronto.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!news-server.csri.toronto.edu!helios.physics.utoronto.ca!alchemy.chem.utoronto.ca!system
References: <1992Feb10.154056.27424@aw2.fsl.ca.boeing.com>

Show Full Headers
Complete Article Headers
Message-ID: <1992Feb12.173519.24542@alchemy.chem.utoronto.ca>
Subject: Re: rn 4.4 locks active file (?)
Date: Wed, 12 Feb 1992 17:35:19 GMT
From: system@alchemy.chem.utoronto.ca (System Admin (Mike Peterson))
References: <1992Feb10.154056.27424@aw2.fsl.ca.boeing.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!news-server.csri.toronto.edu!helios.physics.utoronto.ca!alchemy.chem.utoronto.ca!system
Newsgroups: news.software.readers
Organization: University of Toronto Chemistry Department