Penguin
Annotated edit history of NFSNotes version 17, including all changes. View license author blame.
Rev Author # Line
4 SamJansen 1 !!!Useful NFS goodness
17 AlastairPorter 2
3 !! Helpful commands
4 <tt>showmount -e IP</tt> show the exports that exist on machine 'IP'
4 SamJansen 5
6 !!NFS Hangs when the server goes away
7 By default NFS will hang until the server responds, ignoring signals. If the server comes back everything should resume and pick up where it left off. If you want to change this behaviour we recommend using 'hard,intr' in fstab(5), eg:
17 AlastairPorter 8 <pre>
4 SamJansen 9 server:/mount /mountpoint nfs intr,hard 0 0
17 AlastairPorter 10 </pre>
4 SamJansen 11
12 the 'hard' means 'never give up' (you can use 'soft' here, but it's not a good idea, the server tends to time it out too quickly. you might want to look at timeo= to set this timeout up, but hard is probably wiser)
13
14 the 'intr' means 'allow signals to interrupt this process'. ie: if the process has 'hung' waiting on the nfs server, you can still kill it (if for instance you wanted to umount(8) the now broken nfs mount)
12 PerryLorier 15
16 !!NFS Hangs when the servers still there
17 I was having issues with NFS locking up or producing IO errors when transfering large(ish) ammounts of data (10Meg or more) via NFS using pretty much defult options, changing the options to mount as follows cleared these problems up.
17 AlastairPorter 18 <pre>
12 PerryLorier 19 __-o rw,hard,intr,rsize=2048,wsize=2048,nfsvers=3,bg__
17 AlastairPorter 20 </pre>
4 SamJansen 21
22 !!I exported stuff and NFS isn't allowing it to mount!
23 You probably forgot to run exportfs(8) after updating exports(5). Silly you.
24
25 !!I can't mount stuff!
26 Did you remove rpc.statd(8), portmap(8) or other critical SUN RPC stuff? :)
27
16 MattBrown 28 "When setting up iptables(8) firewalling for Linux systems running the NFS service (network file system), you hit the problem that some of the TCP/IP and UDP ports used by components of the service are randomly generated as part of the SunRPC mechanism. This HOWTO document is part of the !LinWiz tool kit, and describes how to set up NFS on your server in such a way that meaningful IPTABLES firewall rules can be applied to the system."
4 SamJansen 29
30 !!Where did portmap go?
31
32 If you are setting up nfs on FreeBSD 5.0 or later and wonder where the portmap utility went, it has been renamed rpcbind.
5 GreigMcGill 33
34 !!I'm mounting an export, and files are created as "nobody"
35
36 Try adding the no_all_squash option to the export in question in /etc/exports. Note, your uid/gids should be the same on the two boxes.
7 MichaelJager 37
38 !!Performance sucks!
39
9 PerryLorier 40 Try adding the 'async' option to the export in /etc/exports. Also check your rsize/wsize, larger tends to be better (but does lead to fragmentation) If you have a gig clean path between two hosts, make sure they have 9k byte MTU's and that the r/w size is 8k.
16 MattBrown 41
42 !! "nfssvc: Function not implemented" error message
43
44 This error message when trying to start nfsd indicates that your kernel lacks NFS Server Support (CONFIG_NFSD)
45
46 !! "Root-NFS: Unable to get nfsd port number from server, using default" error message
47
48 This error message which may appear while using an NfsRoot setup indicates that nfsd is not running, which may in turn be caused by the previous error message.
13 StevePhillips 49
50 !!Solaris
51
52 Under solaris the mount options were slightly different.
53
54 mount -o rw,rsize=8192,wsize=8192,bg,hard,intr,vers=3 10.1.1.1:/nfsexport /mnt/nfs
55
56 note: nfsvers becomes vers under solaris (tested on solaris 8)
10 StevePhillips 57
58 !!Useful sites
15 PerryLorier 59 * [NFS Mini Howto|http://www.vanemery.com/Linux/NFS-Van.html]
60 * [Optimising NFS Preformance|http://www.linuxforum.com/linux-nfs/performance.html]
61 * NFSv4
17 AlastairPorter 62 * [NFS v4 features and interoperability questions with previous v2 and v3 of NFS protocol.|http://www.hummingbird.com/support/nc/nfs/nfs9002945.html?cks=y]
63 * [Learning NFSv4 with Fedora Core 2 (Linux 2.6.5 kernel)|http://www.vanemery.com/Linux/NFSv4/NFSv4-no-rpcsec.html]
15 PerryLorier 64
11 StevePhillips 65 ----
8 PerryLorier 66 CategoryNotes

PHP Warning

lib/blame.php:177: Warning: Invalid argument supplied for foreach()