home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / docs / faqs / nfs-faq / text0000.txt < prev   
Encoding:
Text File  |  1995-09-10  |  3.1 KB  |  93 lines

  1.  
  2. Sounds like we need an NFS FAQ
  3.  
  4. Lets try a first draft - maybe this can be hacked onto a net howto or something
  5.  
  6. Q1.     Files get corrupted when using NFS over wider area networks or SLIP
  7.  
  8. Certain vendors (Sun primarily) shipped many machines running NFS without
  9. UDP checksums. Great on ethernet, suicide otherwise. UDP checksums can be
  10. enabled on most file servers. Linux has it enabled by default from pl13
  11. onwards - but both ends need to have it enabled...
  12.  
  13. Q2.    My NFS files are all read only
  14.  
  15. The Linux NFS server defaults to read only. RTFM the 'exports' and nfsd
  16. manual pages. With non Linux servers you may also need to alter /etc/exports
  17.  
  18. Q3.    I mount from a linux nfs server and while ls works I can't read or
  19. write files.
  20.  
  21. You must mount a Linux filestore with rsize=1024,wsize=1024 (or 2048 if
  22. you really want - 1024 is a better choice).
  23.  
  24. Q4.    I mount from a linux nfs server with a blocksize of between 3500-4000
  25. and it crashes the Linux box regularly
  26.  
  27. I know good isn't it [NOT]. Basically don't do it then. (see Q3).
  28.  
  29. Q5.    Can Linux do NFS over TCP
  30.  
  31. No. If someone wanted to spend the time and update the rpc code to add rpc
  32. stream record marking it should work then.
  33.  
  34. Q6.    I get loads of strange errors trying to mount a machine from a Linux
  35. box. 
  36.  
  37. Make sure your users are in 8 groups or less. Older servers require this.
  38.  
  39. Q7.    Linux NFS clients are very slow when writing to Sun & BSD systems
  40.  
  41. NFS writes are normally synchronous (you can disable this if you don't
  42. mind risking losing data). Worse still BSD derived kernels tend to be
  43. unable to work in small blocks. Thus when you write 4K of data from a Linux
  44. box in the 1K packets it uses BSD does this
  45.  
  46.     read 4K page
  47.     alter 1K
  48.     write 4K back to physical disk
  49.     read 4K page
  50.     alter 1K
  51.     write 4K page back to physical disk
  52.     
  53.     etc..
  54.     
  55. Better systems don't have this problem. The Linux client is however
  56. quite slow anyway.
  57.  
  58.  
  59. Q8.    I've heard NFS is not secure is this true
  60.  
  61. Yes, totally. Running NFS in an uncontrolled environment is rather like
  62. leaving your front door open, painting 'On holiday' on your house and posting
  63. maps to every known criminal...
  64. In a fairly secure environment or when you can recover data from stupid
  65. misuse its pretty much OK. The worst someone can easily do is alter all the
  66. files on an NFS mounted disk and/or crash the machine. So long as you don't
  67. mount your system files writable you should be vaguely safe
  68.  
  69. Q9.    I occasionally mount from lots of different places do I have to set
  70. the all mounted each boot.
  71.  
  72. No you can use the automounter to mount disks as you access them.
  73.  
  74. Q10.    How do I stop things hanging when a server goes down
  75.  
  76. There are three main NFS behaviours
  77.  
  78. soft:    Your NFS client will report an error to the process concerned if an
  79.     NFS server doesn't answer after a few retries. Most software handles
  80.     this well - but not all.
  81.     
  82. hard:    Your NFS client will try forever unless killed off. Operations will be
  83.     restarted when the NFS server recovers or reboots.
  84.     
  85. hard,intr:
  86.     As hard but ^C will also stop the NFS retrying. In a few cases - notably
  87.     nfs mounted /usr/spool/mail disks this doesn't help as the shell will
  88.     be ignoring ^C when it checks you have mail...
  89.     
  90.  
  91.  
  92.  
  93.