nfs(5) man page: Add new EXAMPLES section
Subsystems (2)
PATCH 8/15 nfs(5) man page: Add new EXAMPLES section
Add a section to nfs(5) that provides examples demonstrating how to specify NFS mount options in /etc/fstab.
Signed-off-by Chuck Lever <[email protected]>
---
utils/mount/nfs.man | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 54 insertions(+), 0 deletions(-)
utils/mount/nfs.man +54 -0
@@ -629,6 +629,60 @@ In the presence of multiple client network interfaces, special routing policies, or atypical network topologies, the exact address to use for callbacks may be nontrivial to determine. +.SH EXAMPLES +To mount a remote share using NFS version 2, +use the +.B nfs +file system type and specify the +.B nfsvers=2 +mount option. +To mount using NFS version 3, +use the +.B nfs +file system type and specify the +.B nfsvers=3 +mount option. +To mount using NFS version 4, +use the +.B nfs4 +file system type. +The +.B nfsvers +mount option is not supported for the +.B nfs4 +file system type. +.P +The following example from an +.I /etc/fstab +file causes the mount command to negotiate +reasonable defaults for NFS behavior. +.P +.NF +.TA 2.5i +0.7i +0.7i +.7i + server:/export/share /mnt nfs defaults 0 0 +.FI +.P +Here is an example from an /etc/fstab file for an NFS version 2 mount over UDP. +.P +.NF +.TA 2.5i +0.7i +0.7i +.7i + server:/export/share /mnt nfs nfsvers=2,proto=udp 0 0 +.FI +.P +Try this example to mount using NFS version 4 over TCP +with Kerberos 5 mutual authentication. +.P +.NF +.TA 2.5i +0.7i +0.7i +.7i + server:/export/share /mnt nfs4 sec=krb5 0 0 +.FI +.P +This example can be used to mount /usr over NFS. +.P +.NF +.TA 2.5i +0.7i +0.7i +.7i + server:/export/share /usr nfs ro,nolock,nocto,actimeo=3600 0 0 +.FI .SH FILES .I /etc/fstab .SH "SEE ALSO"
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs