Article View: news.software.nntp
Article #41777Re: Problem with NFS shared spool
From: Kjetil Torgrim Homme
Date: Thu, 25 Nov 1999 00:00
Date: Thu, 25 Nov 1999 00:00
36 lines
2228 bytes
2228 bytes
[nick@nospam.it]
> I have a problem with my news system. I have 3 server. Server B
> (slave running innd, nnrpd with trad. spool, and nfs server) that
> receive feeds from server A (master running innd, nnrpd with
> CNFS). Server C runs only nnrpd and see active, history and spool
> of server B via NFS. The problem is that server C see an old
> version of active file and see the correct version only if server
> B is stopped. Any suggestion?
What OS?
The man page for mmap() on Solaris says:
The st_ctime and st_mtime fields of a file that is mapped
with MAP_SHARED and PROT_WRITE, will be marked for update at
some point in the interval between a write reference to the
mapped region and the next call to msync(3C) with MS_ASYNC
or MS_SYNC for that portion of the file by any process.
Since the mtime hasn't changed, the NFS client on server C thinks that
its cached version of the active file is valid. You need to add
msync() calls to the INN on server B after every change to active and
maybe history. This will be some work to do right, and it may incur
quite a performance hit.
You should look into using nntpcache or a Diablo reader instead. The
Diablo would run on both server B and C. This requires local disk for
cache and overview on B and C. I don't think you _really_ need two
servers for the readers, though. How many (simultaneous) users do you
have?
Kjetil T.
Technical Details
Message-ID:
<1rd7szweq5.fsf@ganglot.ifi.uio.no>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:
<81h007$b6k$1@aquila.tiscalinet.it>Show Full Headers
Complete Article Headers
Message-ID: <1rd7szweq5.fsf@ganglot.ifi.uio.no> Subject: Re: Problem with NFS shared spool Date: Thu, 25 Nov 1999 00:00:00 +0000 From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> References: <81h007$b6k$1@aquila.tiscalinet.it> 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: 552750448 X-Complaints-To: abuse@ifi.uio.no X-Trace: maud.ifi.uio.no 943492722 15292 129.240.66.26 (25 Nov 1999 01:18:42 GMT) Organization: Dept. of Informatics, University of Oslo, Norway NNTP-Posting-Date: 25 Nov 1999 01:18:42 GMT Newsgroups: news.software.nntp