home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 13100 < prev    next >
Encoding:
Text File  |  1992-08-31  |  2.5 KB  |  66 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!sgi!rhyolite!vjs
  3. From: vjs@rhyolite.wpd.sgi.com (Vernon Schryver)
  4. Subject: Re: NFS Question...
  5. Message-ID: <p97tva0@rhyolite.wpd.sgi.com>
  6. Organization: Silicon Graphics, Inc.  Mountain View, CA
  7. References: <1992Aug31.165654.24006@news.iastate.edu>
  8. Date: Mon, 31 Aug 1992 19:54:37 GMT
  9. Lines: 55
  10.  
  11. In article <1992Aug31.165654.24006@news.iastate.edu>, bryan@pi.eai.iastate.edu (Bryan Manske) writes:
  12. > If a line in my fstab looks like:
  13. > [machinename]:/usr/mp1 /usr/mp1 nfs bg,soft,timeo=28,retrans=16 0 0
  14. >                                     ^^^^^^^
  15. > should the 'bg' and 'soft' options prevent network lockups when one
  16. > machine (nfs server) goes down?  We have several sgi machines cross
  17. > mounted and it seems that whenever one goes down the hard way (and
  18. > sometimes even when its brought down nicely) the rest of the machines
  19. > lock up.  That is to say, you can log in, but get no prompt in any 
  20. > of the shells.
  21. > Man pages lead me to believe that I might need different values for
  22. > timeout and retransmission.
  23.  
  24.  
  25. Read `man fstab`.
  26.  
  27. You have told your client to start with a time-out of 2.8 seconds, and
  28. exponentially back off 16 times.  That is a not much different from
  29. a hard mount.
  30.  
  31. Almost everyone who changes timeo and retrans gets them wrong.
  32. Almost everyone who changes them would be better served by the
  33. default values.
  34.  
  35.  
  36. The problem you are having with not getting prompts from shells
  37. is because you are mounting in /usr.  Many commands in the system,
  38. and especially shells, do a lot of the equivalent of the /bin/pwd.
  39. That involves the algorithm:
  40.     0.  start with the directories x=.. and y=.
  41.     1.  lstat(2) each file in x, looking for the major, minor and
  42.         inumber of y, when found, go to step 3.
  43.     2. note the name corresponding to the file in x found in step 1,
  44.         adding it to the growing path.
  45.     3. if the name saved in 2 was "/", exit
  46.     4. set x=the new .. and y=the old x
  47.     5. go to step 1
  48.     
  49. Notice that step #2 involves stat'ing every file in a directory until
  50. the target is found.  If one of those files is a dead NFS mount,
  51. the algorithm will stick, and if you are using a hard mount or
  52. your time-out parameters, it will stick approximately forever.
  53.  
  54. The solution is either to use the automounter and replace /usr/mp1
  55. with a symbolic link /usr/mp1->/hosts/machinename/usr/mp1, 
  56.  
  57. or to put all of your symbolic links into some other directory by changing
  58. your fstab, say /net, and replace /usr/mp1 with a symbolic link to /net.
  59.  
  60.  
  61. Vernon Schryver,  vjs@sgi.com
  62.