🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10028

Alleviating NFS-related hanging

#10028
From: Jean-Francois Lamy
Date: Tue, 03 Jan 1989 19:42
34 lines
2504 bytes
The problem of totally unrelated processes hanging on disk wait when a
server about which they could not care less goes down is a well-known NFS
curse.  Under 3.x one should make sure that no directory ever contains
mount points from two different machines.  Under 4.0, getwd sometimes
feels the urge to scan /etc/mtab and perform lstats on whatever mount
points are specified there.  If the remote server is down, presto, one
hung process.  So under 4.0 one should consider using symbolic links to
refer to the actual mount points.  Consider the following line from
/etc/fstab,

	neat.ai:/ai/cdr /ai/cdr nfs rw,hard,intr 0 0

If /ai/cdr on the local machine is a symlink to /nfs/neat.ai/ai/cdr, mount
will follow the symlink when mounting the file system, getwd won't try to
follow the link and won't access the dead machine.  Tada!  Things like
"df" still hang under this set-up, no hope for a quick fix there.

[[ This also happens under 3.x, due to getwd, but not because it scans
mtab.  Basically it gets stuck while stat-ing files in a directory where
NFS mount points occur, such as the root ('/').  For a complete
description of the problem where non-responsive NFS partitions hang getwd
calls, see my article in v6n143 (and watch out for the typo).  I *think*
that one can prevent an NFS server from hanging a client if the client
mounts the partition soft,noquota.  --wnl ]]

[enter soapbox mode] Sometimes one wonders if people at Sun ever mount
file systems from many servers or if their servers ever drop dead...  The
automounter is of little use if the remote server dies while the partition
is mounted.  The only thing the automounter does for this problem is
decrease the window where a file system is mounted.  We have seen
automounter daemons get stuck on their own and have stopped using it.

Jean-Francois Lamy               lamy@ai.utoronto.ca, uunet!ai.utoronto.ca!lamy
AI Group, Department of Computer Science, University of Toronto, Canada M5S 1A4
Technical Details
Message-ID: <88Dec22.000435est.38019@neat.ai.toronto.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: lamy@ai.utoronto.ca (Jean-Francois Lamy)
Newsgroups: comp.sys.sun
Subject: Alleviating NFS-related hanging
Message-ID: <88Dec22.000435est.38019@neat.ai.toronto.edu>
Date: 3 Jan 89 19:42:27 GMT
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 34
Approved: Sun-Spots@rice.edu
Original-Date:  Thu, 22 Dec 88 00:04:34 EST
X-Sun-Spots-Digest: Volume 7, Issue 85, message 8 of 14