Robust Mounts
urlichs at smurf.ira.uka.de
urlichs at smurf.ira.uka.de
Wed Jan 17 08:35:18 AEST 1990
In comp.unix.questions deke at ee.rochester.edu (Dikran Kassabian) writes:
< In article <1376 at smurf.ira.uka.de> urlichs at smurf.ira.uka.de writes:
< > In article <10284 at zodiac.ADS.COM> mliverig at spark.uucp writes:
< > >
< > >1) Soft mounts of read-write file systems would increase the risk of
< > >corrupting the file systems.
< >
< >How?
<
< In the same way a system crash can result in corruption of local disks.
< Summary information can be inaccurate depending on exactly when the crash
< takes place, as it relates to pending disk writes.
<
< An NFS rw,hard mount is a win in this case... the process on the NFS client
< hangs until the NFS mount becomes available again, and so gets to continue.
< Not that this guarentees you a clean file-system, but I believe that your
< chances are lots better.
<
Well, I fail to see why, given the following sequence of events
- client sends NFS request
- server (partially or completely) processes the request
- server crashes
either one of the following events
- client times out, user program gets error
or
- client hangs until server is back, user program continues
or
- client gets disconnected by automount until server is back, user program
gets error
could possibly have any impact on the probability that
- server disk needs to be fsck'd, probably dropping some files
or that
- buffer was not written on server, causing inconsistent database although the
client got an OK return from NFS.
A hard NFS mount obviously improves your chances if
- server crashes but managed to write its buffers, but
- client was doing things which left the database inconsistent.
In this case, obviously, a hard mount is helpful here and either a soft mount
or a client disconnected by an automount daemon would cause problems because
the client has no way to get the database back into a consistent state.
I hope I'm not missing anything here.
<
< BUT:
<
< My preferred solution would be to use SunOS automount(8) or Jan-Simon Pendry's
< 'amd'. I'm still hoping someone will comment on my question, which
< asked about automounter, and why it might be considered 'not yet safe'.
<
My understanding of an automount daemon is:
- It periodically tests if the server is still there.
- If not for N seconds, the server is unmounted. This has the same effect as a
soft mount in that the client, trying to read or write a file, gets an error.
- Any request to the server returns an error immediately until the server is
back online, in which case
- the automounter reconnects the client to the server.
Anyone more knowledgeable enlighten me in case I'm wrong, please.
--
Matthias Urlichs
More information about the Comp.unix.questions
mailing list