From: Craig_Everhart@transarc.com
Subject: Re: DFS / cache manager- Questions
Date: Fri, 20 May 1994 12:25:03 -0400 [thread overview]
Message-ID: <QhrCFTCSMUQd8PmrhZ@transarc.com> (raw)
In-Reply-To: <lisianne-190594113723@mac188.acns.nwu.edu>
Excerpts from netnews.comp.unix.osf.misc: 19-May-94 DFS / cache manager-
Questions Lisianne MARZANI@merle.a (1042)
> 1. How is the cache manager supposed to behave when the server goes down?
> How long does it keep data locally and allow cached files to be read by an
> application on the client?
It's a conservative cache manager implementation; it doesn't want to
violate Posix semantics. After the DFS CM has understood that the
server has gone down (a matter of a couple of minutes) but before the
server has returned to service, new filesystem calls will return error
codes, probably ETIMEDOUT. Open file descriptors that receive no new
calls won't be destroyed; instead, the CM attempts to regain its Posix
single-site synchronization state. If this is successful, the CM will
allow re-use of these file descriptors. If not, uses of those file
descriptors will fail with ESTALE.
> 2. What should happen if a user (on the client ) wants to WRITE out a file
> after the server has gone down ? The commands 'cm lsstores/cm resetstores'
> make me think that the cache manager keeps the modified data in the cache
> and attempt to contact the server, I suppose during a limited period of
> time. Is it the same time-out as in question 1) ?
The application is told via the ETIMEDOUT or ESTALE error code. It's an
independent timeout, set to 20 minutes.
> 3. Also in that case, I assume that the user application is informed that
> the data cannot be written to the Server. But is the application informed
> of the *final* result of the operation ( I mean : whether the cache
> manager has or not finally managed to reach the server ) ?
The application is informed at close() or fsync() time. If there's no
error from these calls, all data has been stored back.
Craig
next prev parent reply other threads:[~1994-05-20 16:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-05-19 17:37 DFS / cache manager- Questions Lisianne MARZANI
1994-05-20 16:25 ` Craig_Everhart [this message]
1994-05-23 0:05 ` Lisianne MARZANI
1994-05-23 21:23 ` Bruce_Leverett
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox