]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/mount/nfs.man
Fix the description of nfsversion mount option in the man nfs page
[nfs-utils.git] / utils / mount / nfs.man
1 .\"@(#)nfs.5"
2 .TH NFS 5 "2 November 2007"
3 .SH NAME
4 nfs \- fstab format and options for the
5 .B nfs
6 and
7 .B nfs4
8 file systems
9 .SH SYNOPSIS
10 .I /etc/fstab
11 .SH DESCRIPTION
12 NFS is an Internet Standard protocol
13 created by Sun Microsystems in 1984. NFS was developed
14 to allow file sharing between systems residing
15 on a local area network.
16 The Linux NFS client supports three versions
17 of the NFS protocol:
18 NFS version 2 [RFC1094],
19 NFS version 3 [RFC1813],
20 and NFS version 4 [RFC3530].
21 .P
22 The
23 .BR mount (8)
24 command attaches a file system to the system's
25 name space hierarchy at a given mount point.
26 The
27 .I /etc/fstab
28 file describes how
29 .BR mount (8)
30 should assemble a system's file name hierarchy
31 from various independent file systems
32 (including file systems exported by NFS servers).
33 Each line in the
34 .I /etc/fstab
35 file describes a single file system, its mount point,
36 and a set of default mount options for that mount point.
37 .P
38 For NFS file system mounts, a line in the
39 .I /etc/fstab
40 file specifies the server name,
41 the path name of the exported server directory to mount,
42 the local directory that is the mount point,
43 the type of file system that is being mounted,
44 and a list of mount options that control
45 the way the filesystem is mounted and
46 how the NFS client behaves when accessing
47 files on this mount point.
48 The fifth and sixth fields on each line are not used
49 by NFS, thus conventionally each contain the digit zero. For example:
50 .P
51 .SP
52 .NF
53 .TA 2.5i +0.75i +0.75i +1.0i
54         server:path     /mountpoint     fstype  option,option,...       0 0
55 .FI
56 .P
57 The server's hostname and export pathname
58 are separated by a colon, while
59 the mount options are separated by commas. The remaining fields
60 are separated by blanks or tabs.
61 .P
62 The server's hostname can be an unqualified hostname,
63 a fully qualified domain name,
64 a dotted quad IPv4 address, or
65 an IPv6 address enclosed in square brackets.
66 Link-local and site-local IPv6 addresses must be accompanied by an
67 interface identifier.
68 See
69 .BR ipv6 (7)
70 for details on specifying raw IPv6 addresses.
71 .P
72 The
73 .I fstype
74 field contains either "nfs" (for version 2 or version 3 NFS mounts)
75 or "nfs4" (for NFS version 4 mounts).
76 The
77 .B nfs
78 and
79 .B nfs4
80 file system types share similar mount options,
81 which are described below.
82 .SH "MOUNT OPTIONS"
83 Refer to
84 .BR mount (8)
85 for a description of generic mount options
86 available for all file systems. If you do not need to
87 specify any mount options, use the generic option
88 .B defaults
89 in
90 .IR /etc/fstab .
91 .DT
92 .SS "Valid options for either the nfs or nfs4 file system type"
93 These options are valid to use when mounting either
94 .B nfs
95 or
96 .B nfs4
97 file system types.
98 They imply the same behavior
99 and have the same default for both file system types.
100 .TP 1.5i
101 .BR soft " / " hard
102 Determines the recovery behavior of the NFS client
103 after an NFS request times out.
104 If neither option is specified (or if the
105 .B hard
106 option is specified), NFS requests are retried indefinitely.
107 If the
108 .B soft
109 option is specified, then the NFS client fails an NFS request
110 after
111 .B retrans
112 retransmissions have been sent,
113 causing the NFS client to return an error
114 to the calling application.
115 .IP
116 .I NB:
117 A so-called "soft" timeout can cause
118 silent data corruption in certain cases. As such, use the
119 .B soft
120 option only when client responsiveness
121 is more important than data integrity.
122 Using NFS over TCP or increasing the value of the
123 .B retrans
124 option may mitigate some of the risks of using the
125 .B soft
126 option.
127 .TP 1.5i
128 .BI timeo= n
129 The time (in tenths of a second) the NFS client waits for a
130 response before it retries an NFS request. If this
131 option is not specified, requests are retried every
132 60 seconds for NFS over TCP.
133 The NFS client does not perform any kind of timeout backoff
134 for NFS over TCP.
135 .IP
136 However, for NFS over UDP, the client uses an adaptive
137 algorithm to estimate an appropriate timeout value for frequently used
138 request types (such as READ and WRITE requests), but uses the
139 .B timeo
140 setting for infrequently used request types (such as FSINFO requests).
141 If the
142 .B timeo
143 option is not specified,
144 infrequently used request types are retried after 1.1 seconds.
145 After each retransmission, the NFS client doubles the timeout for
146 that request,
147 up to a maximum timeout length of 60 seconds.
148 .TP 1.5i
149 .BI retrans= n
150 The number of times the NFS client retries a request before
151 it attempts further recovery action. If the
152 .B retrans
153 option is not specified, the NFS client tries each request
154 three times.
155 .IP
156 The NFS client generates a "server not responding" message
157 after
158 .B retrans
159 retries, then attempts further recovery (depending on whether the
160 .B hard
161 mount option is in effect).
162 .TP 1.5i
163 .BI rsize= n
164 The maximum number of bytes in each network READ request
165 that the NFS client can receive when reading data from a file
166 on an NFS server.
167 The actual data payload size of each NFS READ request is equal to
168 or smaller than the
169 .B rsize
170 setting. The largest read payload supported by the Linux NFS client
171 is 1,048,576 bytes (one megabyte).
172 .IP
173 The
174 .B rsize
175 value is a positive integral multiple of 1024.
176 Specified
177 .B rsize
178 values lower than 1024 are replaced with 4096; values larger than
179 1048576 are replaced with 1048576. If a specified value is within the supported
180 range but not a multiple of 1024, it is rounded down to the nearest
181 multiple of 1024.
182 .IP
183 If an
184 .B rsize
185 value is not specified, or if the specified
186 .B rsize
187 value is larger than the maximum that either client or server can support,
188 the client and server negotiate the largest
189 .B rsize
190 value that they can both support.
191 .IP
192 The
193 .B rsize
194 mount option as specified on the
195 .BR mount (8)
196 command line appears in the
197 .I /etc/mtab
198 file. However, the effective
199 .B rsize
200 value negotiated by the client and server is reported in the
201 .I /proc/mounts
202 file.
203 .TP 1.5i
204 .BI wsize= n
205 The maximum number of bytes per network WRITE request
206 that the NFS client can send when writing data to a file
207 on an NFS server. The actual data payload size of each
208 NFS WRITE request is equal to
209 or smaller than the
210 .B wsize
211 setting. The largest write payload supported by the Linux NFS client
212 is 1,048,576 bytes (one megabyte).
213 .IP
214 Similar to
215 .B rsize
216 , the
217 .B wsize
218 value is a positive integral multiple of 1024.
219 Specified
220 .B wsize
221 values lower than 1024 are replaced with 4096; values larger than
222 1048576 are replaced with 1048576. If a specified value is within the supported
223 range but not a multiple of 1024, it is rounded down to the nearest
224 multiple of 1024.
225 .IP
226 If a
227 .B wsize
228 value is not specified, or if the specified
229 .B wsize
230 value is larger than the maximum that either client or server can support,
231 the client and server negotiate the largest
232 .B wsize
233 value that they can both support.
234 .IP
235 The
236 .B wsize
237 mount option as specified on the
238 .BR mount (8)
239 command line appears in the
240 .I /etc/mtab
241 file. However, the effective
242 .B wsize
243 value negotiated by the client and server is reported in the
244 .I /proc/mounts
245 file.
246 .TP 1.5i
247 .BR ac " / " noac
248 Selects whether the client may cache file attributes. If neither
249 option is specified (or if
250 .B ac
251 is specified), the client caches file
252 attributes.
253 .IP
254 To improve performance, NFS clients cache file
255 attributes. Every few seconds, an NFS client checks the server's version of each
256 file's attributes for updates.  Changes that occur on the server in
257 those small intervals remain undetected until the client checks the
258 server again. The
259 .B noac
260 option prevents clients from caching file
261 attributes so that applications can more quickly detect file changes
262 on the server.
263 .IP
264 In addition to preventing the client from caching file attributes,
265 the
266 .B noac
267 option forces application writes to become synchronous so
268 that local changes to a file become visible on the server
269 immediately.  That way, other clients can quickly detect recent
270 writes when they check the file's attributes.
271 .IP
272 Using the
273 .B noac
274 option provides greater cache coherence among NFS clients
275 accessing the same files,
276 but it extracts a significant performance penalty.
277 As such, judicious use of file locking is encouraged instead.
278 The DATA AND METADATA COHERENCE section contains a detailed discussion
279 of these trade-offs.
280 .TP 1.5i
281 .BI acregmin= n
282 The minimum time (in seconds) that the NFS client caches
283 attributes of a regular file before it requests
284 fresh attribute information from a server.
285 If this option is not specified, the NFS client uses
286 a 3-second minimum.
287 .TP 1.5i
288 .BI acregmax= n
289 The maximum time (in seconds) that the NFS client caches
290 attributes of a regular file before it requests
291 fresh attribute information from a server.
292 If this option is not specified, the NFS client uses
293 a 60-second maximum.
294 .TP 1.5i
295 .BI acdirmin= n
296 The minimum time (in seconds) that the NFS client caches
297 attributes of a directory before it requests
298 fresh attribute information from a server.
299 If this option is not specified, the NFS client uses
300 a 30-second minimum.
301 .TP 1.5i
302 .BI acdirmax= n
303 The maximum time (in seconds) that the NFS client caches
304 attributes of a directory before it requests
305 fresh attribute information from a server.
306 If this option is not specified, the NFS client uses
307 a 60-second maximum.
308 .TP 1.5i
309 .BI actimeo= n
310 Using
311 .B actimeo
312 sets all of
313 .BR acregmin ,
314 .BR acregmax ,
315 .BR acdirmin ,
316 and
317 .B acdirmax
318 to the same value.
319 If this option is not specified, the NFS client uses
320 the defaults for each of these options listed above.
321 .TP 1.5i
322 .BR bg " / " fg
323 Determines how the
324 .BR mount (8)
325 command behaves if an attempt to mount an export fails.
326 The
327 .B fg
328 option causes
329 .BR mount (8)
330 to exit with an error status if any part of the mount request
331 times out or fails outright.
332 This is called a "foreground" mount,
333 and is the default behavior if neither the
334 .B fg
335 nor
336 .B bg
337 mount option is specified.
338 .IP
339 If the
340 .B bg
341 option is specified, a timeout or failure causes the
342 .BR mount (8)
343 command to fork a child which continues to attempt
344 to mount the export.
345 The parent immediately returns with a zero exit code.
346 This is known as a "background" mount.
347 .IP
348 If the local mount point directory is missing, the
349 .BR mount (8)
350 command acts as if the mount request timed out.
351 This permits nested NFS mounts specified in
352 .I /etc/fstab
353 to proceed in any order during system initialization,
354 even if some NFS servers are not yet available.
355 Alternatively these issues can be addressed
356 using an automounter (refer to
357 .BR automount (8)
358 for details).
359 .TP 1.5i
360 .BI retry= n
361 The number of minutes that the
362 .BR mount (8)
363 command retries an NFS mount operation
364 in the foreground or background before giving up.
365 If this option is not specified, the default value for foreground mounts
366 is 2 minutes, and the default value for background mounts is 10000 minutes
367 (80 minutes shy of one week).
368 If a value of zero is specified, the
369 .BR mount (8)
370 command exits immediately after the first failure.
371 .TP 1.5i
372 .BI sec= mode
373 The RPCGSS security flavor to use for accessing files on this mount point.
374 If the
375 .B sec
376 option is not specified, or if
377 .B sec=sys
378 is specified, the NFS client uses the AUTH_SYS security flavor
379 for all NFS requests on this mount point.
380 Valid security flavors are
381 .BR none ,
382 .BR sys ,
383 .BR krb5 ,
384 .BR krb5i ,
385 .BR krb5p ,
386 .BR lkey ,
387 .BR lkeyi ,
388 .BR lkeyp ,
389 .BR spkm ,
390 .BR spkmi ,
391 and
392 .BR spkmp .
393 Refer to the SECURITY CONSIDERATIONS section for details.
394 .TP 1.5i
395 .BR sharecache " / " nosharecache
396 Determines how the client's data cache and attribute cache are shared
397 when mounting the same export more than once concurrently.  Using the
398 same cache reduces memory requirements on the client and presents
399 identical file contents to applications when the same remote file is
400 accessed via different mount points.
401 .IP
402 If neither option is specified, or if the
403 .B sharecache
404 option is
405 specified, then a single cache is used for all mount points that
406 access the same export.  If the
407 .B nosharecache
408 option is specified,
409 then that mount point gets a unique cache.  Note that when data and
410 attribute caches are shared, the mount options from the first mount
411 point take effect for subsequent concurrent mounts of the same export.
412 .IP
413 As of kernel 2.6.18, the behavior specified by
414 .B nosharecache
415 is legacy caching behavior. This
416 is considered a data risk since multiple cached copies
417 of the same file on the same client can become out of sync
418 following a local update of one of the copies.
419 .TP 1.5i
420 .BR resvport " / " noresvport
421 Specifies whether the NFS client should use a privileged source port
422 when communicating with an NFS server for this mount point.
423 If this option is not specified, or the
424 .B resvport
425 option is specified, the NFS client uses a privileged source port.
426 If the
427 .B noresvport
428 option is specified, the NFS client uses a non-privileged source port.
429 This option is supported in kernels 2.6.28 and later.
430 .IP
431 Using non-privileged source ports helps increase the maximum number of
432 NFS mount points allowed on a client, but NFS servers must be configured
433 to allow clients to connect via non-privileged source ports.
434 .IP
435 Refer to the SECURITY CONSIDERATIONS section for important details.
436 .TP 1.5i
437 .BI lookupcache= mode
438 Specifies how the kernel manages its cache of directory entries
439 for a given mount point.
440 .I mode
441 can be one of
442 .BR all ,
443 .BR none ,
444 .BR pos ,
445 or
446 .BR positive .
447 This option is supported in kernels 2.6.28 and later.
448 .IP
449 The Linux NFS client caches the result of all NFS LOOKUP requests.
450 If the requested directory entry exists on the server,
451 the result is referred to as
452 .IR positive .
453 If the requested directory entry does not exist on the server,
454 the result is referred to as
455 .IR negative .
456 .IP
457 If this option is not specified, or if
458 .B all
459 is specified, the client assumes both types of directory cache entries
460 are valid until their parent directory's cached attributes expire.
461 .IP
462 If
463 .BR pos " or " positive
464 is specified, the client assumes positive entries are valid
465 until their parent directory's cached attributes expire, but
466 always revalidates negative entires before an application
467 can use them.
468 .IP
469 If
470 .B none
471 is specified,
472 the client revalidates both types of directory cache entries
473 before an application can use them.
474 This permits quick detection of files that were created or removed
475 by other clients, but can impact application and server performance.
476 .IP
477 The DATA AND METADATA COHERENCE section contains a
478 detailed discussion of these trade-offs.
479 .SS "Valid options for the nfs file system type"
480 Use these options, along with the options in the above subsection,
481 for mounting the
482 .B nfs
483 file system type.
484 .TP 1.5i
485 .BI proto= netid
486 The transport protocol name and protocol family the NFS client uses
487 to transmit requests to the NFS server for this mount point.
488 If an NFS server has both an IPv4 and an IPv6 address, using a specific
489 netid will force the use of IPv4 or IPv6 networking to communicate
490 with that server.
491 .IP
492 If support for TI-RPC is built into the
493 .B mount.nfs
494 command,
495 .I netid
496 is a valid netid listed in
497 .IR /etc/netconfig .
498 Otherwise,
499 .I netid
500 is one of "tcp," "udp," or "rdma," and only IPv4 may be used.
501 .IP
502 Each transport protocol uses different default
503 .B retrans
504 and
505 .B timeo
506 settings.
507 Refer to the description of these two mount options for details.
508 .IP
509 In addition to controlling how the NFS client transmits requests to
510 the server, this mount option also controls how the
511 .BR mount (8)
512 command communicates with the server's rpcbind and mountd services.
513 Specifying a netid that uses TCP forces all traffic from the
514 .BR mount (8)
515 command and the NFS client to use TCP.
516 Specifying a netid that uses UDP forces all traffic types to use UDP.
517 .IP
518 If the
519 .B proto
520 mount option is not specified, the
521 .BR mount (8)
522 command discovers which protocols the server supports
523 and chooses an appropriate transport for each service.
524 Refer to the TRANSPORT METHODS section for more details.
525 .TP 1.5i
526 .B udp
527 The
528 .B udp
529 option is an alternative to specifying
530 .BR proto=udp.
531 It is included for compatibility with other operating systems.
532 .TP 1.5i
533 .B tcp
534 The
535 .B tcp
536 option is an alternative to specifying
537 .BR proto=tcp.
538 It is included for compatibility with other operating systems.
539 .TP 1.5i
540 .BI port= n
541 The numeric value of the server's NFS service port.
542 If the server's NFS service is not available on the specified port,
543 the mount request fails.
544 .IP
545 If this option is not specified, or if the specified port value is 0,
546 then the NFS client uses the NFS service port number
547 advertised by the server's rpcbind service.
548 The mount request fails if the server's rpcbind service is not available,
549 the server's NFS service is not registered with its rpcbind service,
550 or the server's NFS service is not available on the advertised port.
551 .TP 1.5i
552 .BI mountport= n
553 The numeric value of the server's mountd port.
554 If the server's mountd service is not available on the specified port,
555 the mount request fails.
556 .IP
557 If this option is not specified,
558 or if the specified port value is 0, then the
559 .BR mount (8)
560 command uses the mountd service port number
561 advertised by the server's rpcbind service.
562 The mount request fails if the server's rpcbind service is not available,
563 the server's mountd service is not registered with its rpcbind service,
564 or the server's mountd service is not available on the advertised port.
565 .IP
566 This option can be used when mounting an NFS server
567 through a firewall that blocks the rpcbind protocol.
568 .TP 1.5i
569 .BI mountproto= netid
570 The transport protocol name and protocol family the NFS client uses
571 to transmit requests to the NFS server's mountd service when performing
572 this mount request, and when later unmounting this mount point.
573 .IP
574 If support for TI-RPC is built into the
575 .B mount.nfs
576 command,
577 .I netid
578 is a valid netid listed in
579 .IR /etc/netconfig .
580 Otherwise,
581 .I netid
582 is one of "tcp" or "udp," and only IPv4 may be used.
583 .IP
584 This option can be used when mounting an NFS server
585 through a firewall that blocks a particular transport.
586 When used in combination with the
587 .B proto
588 option, different transports for mountd requests and NFS requests
589 can be specified.
590 If the server's mountd service is not available via the specified
591 transport, the mount request fails.
592 .IP
593 Refer to the TRANSPORT METHODS section for more on how the
594 .B mountproto
595 mount option interacts with the
596 .B proto
597 mount option.
598 .TP 1.5i
599 .BI mounthost= name
600 The hostname of the host running mountd.
601 If this option is not specified, the
602 .BR mount (8)
603 command assumes that the mountd service runs
604 on the same host as the NFS service.
605 .TP 1.5i
606 .BI mountvers= n
607 The RPC version number used to contact the server's mountd.
608 If this option is not specified, the client uses a version number
609 appropriate to the requested NFS version.
610 This option is useful when multiple NFS services
611 are running on the same remote server host.
612 .TP 1.5i
613 .BI namlen= n
614 The maximum length of a pathname component on this mount.
615 If this option is not specified, the maximum length is negotiated
616 with the server. In most cases, this maximum length is 255 characters.
617 .IP
618 Some early versions of NFS did not support this negotiation.
619 Using this option ensures that
620 .BR pathconf (3)
621 reports the proper maximum component length to applications
622 in such cases.
623 .TP 1.5i
624 .BI nfsvers= n
625 The NFS protocol version number used to contact the server's NFS service.
626 If the server does not support the requested version, the mount request fails.
627 If this option is not specified, the client negociate a suitable version with
628 the server, trying version 4 first, version 3 second, and version 2 last.
629 .TP 1.5i
630 .BI vers= n
631 This option is an alternative to the
632 .B nfsvers
633 option.
634 It is included for compatibility with other operating systems.
635 .TP 1.5i
636 .BR lock " / " nolock
637 Selects whether to use the NLM sideband protocol to lock files on the server.
638 If neither option is specified (or if
639 .B lock
640 is specified), NLM locking is used for this mount point.
641 When using the
642 .B nolock
643 option, applications can lock files,
644 but such locks provide exclusion only against other applications
645 running on the same client.
646 Remote applications are not affected by these locks.
647 .IP
648 NLM locking must be disabled with the
649 .B nolock
650 option when using NFS to mount
651 .I /var
652 because
653 .I /var
654 contains files used by the NLM implementation on Linux.
655 Using the
656 .B nolock
657 option is also required when mounting exports on NFS servers
658 that do not support the NLM protocol.
659 .TP 1.5i
660 .BR intr " / " nointr
661 Selects whether to allow signals to interrupt file operations
662 on this mount point. If neither option
663 is specified (or if
664 .B nointr
665 is specified),
666 signals do not interrupt NFS file operations. If
667 .B intr
668 is specified, system calls return EINTR if an in-progress NFS operation is interrupted by
669 a signal.
670 .IP
671 Using the
672 .B intr
673 option is preferred to using the
674 .B soft
675 option because it is significantly less likely to result in data corruption.
676 .IP
677 The
678 .BR intr " / " nointr
679 mount option is deprecated after kernel 2.6.25.
680 Only SIGKILL can interrupt a pending NFS operation on these kernels,
681 and if specified, this mount option is ignored to provide backwards
682 compatibility with older kernels.
683 .TP 1.5i
684 .BR cto " / " nocto
685 Selects whether to use close-to-open cache coherence semantics.
686 If neither option is specified (or if
687 .B cto
688 is specified), the client uses close-to-open
689 cache coherence semantics. If the
690 .B nocto
691 option is specified, the client uses a non-standard heuristic to determine when
692 files on the server have changed.
693 .IP
694 Using the
695 .B nocto
696 option may improve performance for read-only mounts,
697 but should be used only if the data on the server changes only occasionally.
698 The DATA AND METADATA COHERENCE section discusses the behavior
699 of this option in more detail.
700 .TP 1.5i
701 .BR acl " / " noacl
702 Selects whether to use the NFSACL sideband protocol on this mount point.
703 The NFSACL sideband protocol is a proprietary protocol
704 implemented in Solaris that manages Access Control Lists. NFSACL was never
705 made a standard part of the NFS protocol specification.
706 .IP
707 If neither
708 .B acl
709 nor
710 .B noacl
711 option is specified,
712 the NFS client negotiates with the server
713 to see if the NFSACL protocol is supported,
714 and uses it if the server supports it.
715 Disabling the NFSACL sideband protocol may be necessary
716 if the negotiation causes problems on the client or server.
717 Refer to the SECURITY CONSIDERATIONS section for more details.
718 .TP 1.5i
719 .BR rdirplus " / " nordirplus
720 Selects whether to use NFS version 3 READDIRPLUS requests.
721 If this option is not specified, the NFS client uses READDIRPLUS requests
722 on NFS version 3 mounts to read small directories.
723 Some applications perform better if the client uses only READDIR requests
724 for all directories.
725 .SS "Valid options for the nfs4 file system type"
726 Use these options, along with the options in the first subsection above,
727 for mounting the
728 .B nfs4
729 file system type.
730 .TP 1.5i
731 .BI proto= netid
732 The transport protocol name and protocol family the NFS client uses
733 to transmit requests to the NFS server for this mount point.
734 If an NFS server has both an IPv4 and an IPv6 address, using a specific
735 netid will force the use of IPv4 or IPv6 networking to communicate
736 with that server.
737 .IP
738 If support for TI-RPC is built into the
739 .B mount.nfs
740 command,
741 .I netid
742 is a valid netid listed in
743 .IR /etc/netconfig .
744 Otherwise,
745 .I netid
746 is one of "tcp" or "udp," and only IPv4 may be used.
747 .IP
748 All NFS version 4 servers are required to support TCP,
749 so if this mount option is not specified, the NFS version 4 client
750 uses the TCP protocol.
751 Refer to the TRANSPORT METHODS section for more details.
752 .TP 1.5i
753 .BI port= n
754 The numeric value of the server's NFS service port.
755 If the server's NFS service is not available on the specified port,
756 the mount request fails.
757 .IP
758 If this mount option is not specified,
759 the NFS client uses the standard NFS port number of 2049
760 without first checking the server's rpcbind service.
761 This allows an NFS version 4 client to contact an NFS version 4
762 server through a firewall that may block rpcbind requests.
763 .IP
764 If the specified port value is 0,
765 then the NFS client uses the NFS service port number
766 advertised by the server's rpcbind service.
767 The mount request fails if the server's rpcbind service is not available,
768 the server's NFS service is not registered with its rpcbind service,
769 or the server's NFS service is not available on the advertised port.
770 .TP 1.5i
771 .BR intr " / " nointr
772 Selects whether to allow signals to interrupt file operations
773 on this mount point. If neither option is specified (or if
774 .B intr
775 is specified), system calls return EINTR if an in-progress NFS operation
776 is interrupted by a signal.  If
777 .B nointr
778 is specified, signals do not
779 interrupt NFS operations.
780 .IP
781 Using the
782 .B intr
783 option is preferred to using the
784 .B soft
785 option because it is significantly less likely to result in data corruption.
786 .IP
787 The
788 .BR intr " / " nointr
789 mount option is deprecated after kernel 2.6.25.
790 Only SIGKILL can interrupt a pending NFS operation on these kernels,
791 and if specified, this mount option is ignored to provide backwards
792 compatibility with older kernels.
793 .TP 1.5i
794 .BR cto " / " nocto
795 Selects whether to use close-to-open cache coherence semantics
796 for NFS directories on this mount point.
797 If neither
798 .B cto
799 nor
800 .B nocto
801 is specified,
802 the default is to use close-to-open cache coherence
803 semantics for directories.
804 .IP
805 File data caching behavior is not affected by this option.
806 The DATA AND METADATA COHERENCE section discusses
807 the behavior of this option in more detail.
808 .TP 1.5i
809 .BI clientaddr= n.n.n.n
810 Specifies a single IPv4 address (in dotted-quad form),
811 or a non-link-local IPv6 address,
812 that the NFS client advertises to allow servers
813 to perform NFS version 4 callback requests against
814 files on this mount point. If  the  server is unable to
815 establish callback connections to clients, performance
816 may degrade, or accesses to files may temporarily hang.
817 .IP
818 If this option is not specified, the
819 .BR mount (8)
820 command attempts to discover an appropriate callback address automatically.
821 The automatic discovery process is not perfect, however.
822 In the presence of multiple client network interfaces,
823 special routing policies,
824 or atypical network topologies,
825 the exact address to use for callbacks may be nontrivial to determine.
826 .SH MOUNT CONFIGURATION FILE
827 If the mount command is configured to do so, all of the mount options 
828 described in the previous section can also be configured in the 
829 .I /etc/nfsmount.conf 
830 file. See 
831 .BR nfsmount.conf(5)
832 for details.
833 .SH EXAMPLES
834 To mount an export using NFS version 2,
835 use the
836 .B nfs
837 file system type and specify the
838 .B nfsvers=2
839 mount option.
840 To mount using NFS version 3,
841 use the
842 .B nfs
843 file system type and specify the
844 .B nfsvers=3
845 mount option.
846 To mount using NFS version 4,
847 use the
848 .B nfs4
849 file system type.
850 The
851 .B nfsvers
852 mount option is not supported for the
853 .B nfs4
854 file system type.
855 .P
856 The following example from an
857 .I /etc/fstab
858 file causes the mount command to negotiate
859 reasonable defaults for NFS behavior.
860 .P
861 .NF
862 .TA 2.5i +0.7i +0.7i +.7i
863         server:/export  /mnt    nfs     defaults        0 0
864 .FI
865 .P
866 Here is an example from an /etc/fstab file for an NFS version 2 mount over UDP.
867 .P
868 .NF
869 .TA 2.5i +0.7i +0.7i +.7i
870         server:/export  /mnt    nfs     nfsvers=2,proto=udp     0 0
871 .FI
872 .P
873 Try this example to mount using NFS version 4 over TCP
874 with Kerberos 5 mutual authentication.
875 .P
876 .NF
877 .TA 2.5i +0.7i +0.7i +.7i
878         server:/export  /mnt    nfs4    sec=krb5        0 0
879 .FI
880 .P
881 This example can be used to mount /usr over NFS.
882 .P
883 .NF
884 .TA 2.5i +0.7i +0.7i +.7i
885         server:/export  /usr    nfs     ro,nolock,nocto,actimeo=3600    0 0
886 .FI
887 .P
888 This example shows how to mount an NFS server
889 using a raw IPv6 link-local address.
890 .P
891 .NF
892 .TA 2.5i +0.7i +0.7i +.7i
893         [fe80::215:c5ff:fb3e:e2b1%eth0]:/export /mnt    nfs     defaults        0 0
894 .FI
895 .SH "TRANSPORT METHODS"
896 NFS clients send requests to NFS servers via
897 Remote Procedure Calls, or
898 .IR RPCs .
899 The RPC client discovers remote service endpoints automatically,
900 handles per-request authentication,
901 adjusts request parameters for different byte endianness on client and server,
902 and retransmits requests that may have been lost by the network or server.
903 RPC requests and replies flow over a network transport.
904 .P
905 In most cases, the
906 .BR mount (8)
907 command, NFS client, and NFS server
908 can automatically negotiate proper transport
909 and data transfer size settings for a mount point.
910 In some cases, however, it pays to specify
911 these settings explicitly using mount options.
912 .P
913 Traditionally, NFS clients used the UDP transport exclusively for
914 transmitting requests to servers.  Though its implementation is
915 simple, NFS over UDP has many limitations that prevent smooth
916 operation and good performance in some common deployment
917 environments.  Even an insignificant packet loss rate results in the
918 loss of whole NFS requests; as such, retransmit timeouts are usually
919 in the subsecond range to allow clients to recover quickly from
920 dropped requests, but this can result in extraneous network traffic
921 and server load.
922 .P
923 However, UDP can be quite effective in specialized settings where
924 the networks MTU is large relative to NFSs data transfer size (such
925 as network environments that enable jumbo Ethernet frames).  In such
926 environments, trimming the
927 .B rsize
928 and
929 .B wsize
930 settings so that each
931 NFS read or write request fits in just a few network frames (or even
932 in  a single  frame) is advised.  This reduces the probability that
933 the loss of a single MTU-sized network frame results in the loss of
934 an entire large read or write request.
935 .P
936 TCP is the default transport protocol used for all modern NFS
937 implementations.  It performs well in almost every conceivable
938 network environment and provides excellent guarantees against data
939 corruption caused by network unreliability.  TCP is often a
940 requirement for mounting a server through a network firewall.
941 .P
942 Under normal circumstances, networks drop packets much more
943 frequently than NFS servers drop requests.  As such, an aggressive
944 retransmit timeout  setting for NFS over TCP is unnecessary. Typical
945 timeout settings for NFS over TCP are between one and ten minutes.
946 After  the client exhausts its retransmits (the value of the
947 .B retrans
948 mount option), it assumes a network partition has occurred,
949 and attempts to reconnect to the server on a fresh socket. Since
950 TCP itself makes network data transfer reliable,
951 .B rsize
952 and
953 .B wsize
954 can safely be allowed to default to the largest values supported by
955 both client and server, independent of the network's MTU size.
956 .SS "Using the mountproto mount option"
957 This section applies only to NFS version 2 and version 3 mounts
958 since NFS version 4 does not use a separate protocol for mount
959 requests.
960 .P
961 The Linux NFS client can use a different transport for
962 contacting an NFS server's rpcbind service, its mountd service,
963 its Network Lock Manager (NLM) service, and its NFS service.
964 The exact transports employed by the Linux NFS client for
965 each mount point depends on the settings of the transport
966 mount options, which include
967 .BR proto ,
968 .BR mountproto ,
969 .BR udp ", and " tcp .
970 .P
971 The client sends Network Status Manager (NSM) notifications
972 via UDP no matter what transport options are specified, but
973 listens for server NSM notifications on both UDP and TCP.
974 The NFS Access Control List (NFSACL) protocol shares the same
975 transport as the main NFS service.
976 .P
977 If no transport options are specified, the Linux NFS client
978 uses UDP to contact the server's mountd service, and TCP to
979 contact its NLM and NFS services by default.
980 .P
981 If the server does not support these transports for these services, the
982 .BR mount (8)
983 command attempts to discover what the server supports, and then retries
984 the mount request once using the discovered transports.
985 If the server does not advertise any transport supported by the client
986 or is misconfigured, the mount request fails.
987 If the
988 .B bg
989 option is in effect, the mount command backgrounds itself and continues
990 to attempt the specified mount request.
991 .P
992 When the
993 .B proto
994 option, the
995 .B udp
996 option, or the
997 .B tcp
998 option is specified but the
999 .B mountproto
1000 option is not, the specified transport is used to contact
1001 both the server's mountd service and for the NLM and NFS services.
1002 .P
1003 If the
1004 .B mountproto
1005 option is specified but none of the
1006 .BR proto ", " udp " or " tcp
1007 options are specified, then the specified transport is used for the
1008 initial mountd request, but the mount command attempts to discover
1009 what the server supports for the NFS protocol, preferring TCP if
1010 both transports are supported.
1011 .P
1012 If both the
1013 .BR mountproto " and " proto
1014 (or
1015 .BR udp " or " tcp )
1016 options are specified, then the transport specified by the
1017 .B mountproto
1018 option is used for the initial mountd request, and the transport
1019 specified by the
1020 .B proto
1021 option (or the
1022 .BR udp " or " tcp " options)"
1023 is used for NFS, no matter what order these options appear.
1024 No automatic service discovery is performed if these options are
1025 specified.
1026 .P
1027 If any of the
1028 .BR proto ", " udp ", " tcp ", "
1029 or
1030 .B mountproto
1031 options are specified more than once on the same mount command line,
1032 then the value of the rightmost instance of each of these options
1033 takes effect.
1034 .SH "DATA AND METADATA COHERENCE"
1035 Some modern cluster file systems provide
1036 perfect cache coherence among their clients.
1037 Perfect cache coherence among disparate NFS clients
1038 is expensive to achieve, especially on wide area networks.
1039 As such, NFS settles for weaker cache coherence that
1040 satisfies the requirements of most file sharing types. Normally,
1041 file sharing is completely sequential:
1042 first client A opens a file, writes something to it, then closes it;
1043 then client B opens the same file, and reads the changes.
1044 .DT
1045 .SS "Close-to-open cache consistency"
1046 When an application opens a file stored on an NFS server,
1047 the NFS client checks that it still exists on the server
1048 and is permitted to the opener by sending a GETATTR or ACCESS request.
1049 When the application closes the file,
1050 the NFS client writes back any pending changes
1051 to the file so that the next opener can view the changes.
1052 This also gives the NFS client an opportunity to report
1053 any server write errors to the application
1054 via the return code from
1055 .BR close (2).
1056 The behavior of checking at open time and flushing at close time
1057 is referred to as close-to-open cache consistency.
1058 .SS "Weak cache consistency"
1059 There are still opportunities for a client's data cache
1060 to contain stale data.
1061 The NFS version 3 protocol introduced "weak cache consistency"
1062 (also known as WCC) which provides a way of efficiently checking
1063 a file's attributes before and after a single request.
1064 This allows a client to help identify changes
1065 that could have been made by other clients.
1066 .P
1067 When a client is using many concurrent operations
1068 that update the same file at the same time
1069 (for example, during asynchronous write behind),
1070 it is still difficult to tell whether it was
1071 that client's updates or some other client's updates
1072 that altered the file.
1073 .SS "Attribute caching"
1074 Use the
1075 .B noac
1076 mount option to achieve attribute cache coherence
1077 among multiple clients.
1078 Almost every file system operation checks
1079 file attribute information.
1080 The client keeps this information cached
1081 for a period of time to reduce network and server load.
1082 When
1083 .B noac
1084 is in effect, a client's file attribute cache is disabled,
1085 so each operation that needs to check a file's attributes
1086 is forced to go back to the server.
1087 This permits a client to see changes to a file very quickly,
1088 at the cost of many extra network operations.
1089 .P
1090 Be careful not to confuse the
1091 .B noac
1092 option with "no data caching."
1093 The
1094 .B noac
1095 mount option prevents the client from caching file metadata,
1096 but there are still races that may result in data cache incoherence
1097 between client and server.
1098 .P
1099 The NFS protocol is not designed to support
1100 true cluster file system cache coherence
1101 without some type of application serialization.
1102 If absolute cache coherence among clients is required,
1103 applications should use file locking. Alternatively, applications
1104 can also open their files with the O_DIRECT flag
1105 to disable data caching entirely.
1106 .SS "Directory entry caching"
1107 The Linux NFS client caches the result of all NFS LOOKUP requests.
1108 If the requested directory entry exists on the server,
1109 the result is referred to as a
1110 .IR positive " lookup result.
1111 If the requested directory entry does not exist on the server
1112 (that is, the server returned ENOENT),
1113 the result is referred to as
1114 .IR negative " lookup result.
1115 .P
1116 To detect when directory entries have been added or removed
1117 on the server,
1118 the Linux NFS client watches a directory's mtime.
1119 If the client detects a change in a directory's mtime,
1120 the client drops all cached LOOKUP results for that directory.
1121 Since the directory's mtime is a cached attribute, it may
1122 take some time before a client notices it has changed.
1123 See the descriptions of the
1124 .BR acdirmin ", " acdirmax ", and " noac
1125 mount options for more information about
1126 how long a directory's mtime is cached.
1127 .P
1128 Caching directory entries improves the performance of applications that
1129 do not share files with applications on other clients.
1130 Using cached information about directories can interfere
1131 with applications that run concurrently on multiple clients and
1132 need to detect the creation or removal of files quickly, however.
1133 The
1134 .B lookupcache
1135 mount option allows some tuning of directory entry caching behavior.
1136 .P
1137 Before kernel release 2.6.28,
1138 the Linux NFS client tracked only positive lookup results.
1139 This permitted applications to detect new directory entries
1140 created by other clients quickly while still providing some of the
1141 performance benefits of caching.
1142 If an application depends on the previous lookup caching behavior
1143 of the Linux NFS client, you can use
1144 .BR lookupcache=positive .
1145 .P
1146 If the client ignores its cache and validates every application
1147 lookup request with the server,
1148 that client can immediately detect when a new directory
1149 entry has been either created or removed by another client.
1150 You can specify this behavior using
1151 .BR lookupcache=none .
1152 The extra NFS requests needed if the client does not
1153 cache directory entries can exact a performance penalty.
1154 Disabling lookup caching
1155 should result in less of a performance penalty than using
1156 .BR noac ,
1157 and has no effect on how the NFS client caches the attributes of files.
1158 .P
1159 .SS "The sync mount option"
1160 The NFS client treats the
1161 .B sync
1162 mount option differently than some other file systems
1163 (refer to
1164 .BR mount (8)
1165 for a description of the generic
1166 .B sync
1167 and
1168 .B async
1169 mount options).
1170 If neither
1171 .B sync
1172 nor
1173 .B async
1174 is specified (or if the
1175 .B async
1176 option is specified),
1177 the NFS client delays sending application
1178 writes to the server
1179 until any of these events occur:
1180 .IP
1181 Memory pressure forces reclamation of system memory resources.
1182 .IP
1183 An application flushes file data explicitly with
1184 .BR sync (2),
1185 .BR msync (2),
1186 or
1187 .BR fsync (3).
1188 .IP
1189 An application closes a file with
1190 .BR close (2).
1191 .IP
1192 The file is locked/unlocked via
1193 .BR fcntl (2).
1194 .P
1195 In other words, under normal circumstances,
1196 data written by an application may not immediately appear
1197 on the server that hosts the file.
1198 .P
1199 If the
1200 .B sync
1201 option is specified on a mount point,
1202 any system call that writes data to files on that mount point
1203 causes that data to be flushed to the server
1204 before the system call returns control to user space.
1205 This provides greater data cache coherence among clients,
1206 but at a significant performance cost.
1207 .P
1208 Applications can use the O_SYNC open flag to force application
1209 writes to individual files to go to the server immediately without
1210 the use of the
1211 .B sync
1212 mount option.
1213 .SS "Using file locks with NFS"
1214 The Network Lock Manager protocol is a separate sideband protocol
1215 used to manage file locks in NFS version 2 and version 3.
1216 To support lock recovery after a client or server reboot,
1217 a second sideband protocol --
1218 known as the Network Status Manager protocol --
1219 is also required.
1220 In NFS version 4,
1221 file locking is supported directly in the main NFS protocol,
1222 and the NLM and NSM sideband protocols are not used.
1223 .P
1224 In most cases, NLM and NSM services are started automatically,
1225 and no extra configuration is required.
1226 Configure all NFS clients with fully-qualified domain names
1227 to ensure that NFS servers can find clients to notify them of server reboots.
1228 .P
1229 NLM supports advisory file locks only.
1230 To lock NFS files, use
1231 .BR fcntl (2)
1232 with the F_GETLK and F_SETLK commands.
1233 The NFS client converts file locks obtained via
1234 .BR flock (2)
1235 to advisory locks.
1236 .P
1237 When mounting servers that do not support the NLM protocol,
1238 or when mounting an NFS server through a firewall
1239 that blocks the NLM service port,
1240 specify the
1241 .B nolock
1242 mount option. NLM locking must be disabled with the
1243 .B nolock
1244 option when using NFS to mount
1245 .I /var
1246 because
1247 .I /var
1248 contains files used by the NLM implementation on Linux.
1249 .P
1250 Specifying the
1251 .B nolock
1252 option may also be advised to improve the performance
1253 of a proprietary application which runs on a single client
1254 and uses file locks extensively.
1255 .SS "NFS version 4 caching features"
1256 The data and metadata caching behavior of NFS version 4
1257 clients is similar to that of earlier versions.
1258 However, NFS version 4 adds two features that improve
1259 cache behavior:
1260 .I change attributes
1261 and
1262 .IR "file delegation" .
1263 .P
1264 The
1265 .I change attribute
1266 is a new part of NFS file and directory metadata
1267 which tracks data changes.
1268 It replaces the use of a file's modification
1269 and change time stamps
1270 as a way for clients to validate the content
1271 of their caches.
1272 Change attributes are independent of the time stamp
1273 resolution on either the server or client, however.
1274 .P
1275 A
1276 .I file delegation
1277 is a contract between an NFS version 4 client
1278 and server that allows the client to treat a file temporarily
1279 as if no other client is accessing it.
1280 The server promises to notify the client (via a callback request) if another client
1281 attempts to access that file.
1282 Once a file has been delegated to a client, the client can
1283 cache that file's data and metadata aggressively without
1284 contacting the server.
1285 .P
1286 File delegations come in two flavors:
1287 .I read
1288 and
1289 .IR write .
1290 A
1291 .I read
1292 delegation means that the server notifies the client
1293 about any other clients that want to write to the file.
1294 A
1295 .I write
1296 delegation means that the client gets notified about
1297 either read or write accessors.
1298 .P
1299 Servers grant file delegations when a file is opened,
1300 and can recall delegations at any time when another
1301 client wants access to the file that conflicts with
1302 any delegations already granted.
1303 Delegations on directories are not supported.
1304 .P
1305 In order to support delegation callback, the server
1306 checks the network return path to the client during
1307 the client's initial contact with the server.
1308 If contact with the client cannot be established,
1309 the server simply does not grant any delegations to
1310 that client.
1311 .SH "SECURITY CONSIDERATIONS"
1312 NFS servers control access to file data,
1313 but they depend on their RPC implementation
1314 to provide authentication of NFS requests.
1315 Traditional NFS access control mimics
1316 the standard mode bit access control provided in local file systems.
1317 Traditional RPC authentication uses a number
1318 to represent each user
1319 (usually the user's own uid),
1320 a number to represent the user's group (the user's gid),
1321 and a set of up to 16 auxiliary group numbers
1322 to represent other groups of which the user may be a member.
1323 .P
1324 Typically, file data and user ID values appear unencrypted
1325 (i.e. "in the clear") on the network.
1326 Moreover, NFS versions 2 and 3 use
1327 separate sideband protocols for mounting,
1328 locking and unlocking files,
1329 and reporting system status of clients and servers.
1330 These auxiliary protocols use no authentication.
1331 .P
1332 In addition to combining these sideband protocols with the main NFS protocol,
1333 NFS version 4 introduces more advanced forms of access control,
1334 authentication, and in-transit data protection.
1335 The NFS version 4 specification mandates NFSv4 ACLs,
1336 RPCGSS authentication, and RPCGSS security flavors
1337 that provide per-RPC integrity checking and encryption.
1338 Because NFS version 4 combines the
1339 function of the sideband protocols into the main NFS protocol,
1340 the new security features apply to all NFS version 4 operations
1341 including mounting, file locking, and so on.
1342 RPCGSS authentication can also be used with NFS versions 2 and 3,
1343 but does not protect their sideband protocols.
1344 .P
1345 The
1346 .B sec
1347 mount option specifies the RPCGSS security mode
1348 that is in effect on a given NFS mount point.
1349 Specifying
1350 .B sec=krb5
1351 provides cryptographic proof of a user's identity in each RPC request.
1352 This provides strong verification of the identity of users
1353 accessing data on the server.
1354 Note that additional configuration besides adding this mount option
1355 is required in order to enable Kerberos security.
1356 Refer to the
1357 .BR rpc.gssd (8)
1358 man page for details.
1359 .P
1360 Two additional flavors of Kerberos security are supported:
1361 .B krb5i
1362 and
1363 .BR krb5p .
1364 The
1365 .B krb5i
1366 security flavor provides a cryptographically strong guarantee
1367 that the data in each RPC request has not been tampered with.
1368 The
1369 .B krb5p
1370 security flavor encrypts every RPC request
1371 to prevent data exposure during network transit; however,
1372 expect some performance impact
1373 when using integrity checking or encryption.
1374 Similar support for other forms of cryptographic security (such as lipkey and SPKM3)
1375 is also available.
1376 .P
1377 The NFS version 4 protocol allows
1378 clients and servers to negotiate among multiple security flavors
1379 during mount processing.
1380 However, Linux does not yet implement such negotiation.
1381 The Linux client specifies a single security flavor at mount time
1382 which remains in effect for the lifetime of the mount.
1383 If the server does not support this flavor,
1384 the initial mount request is rejected by the server.
1385 .SS "Using non-privileged source ports"
1386 NFS clients usually communicate with NFS servers via network sockets.
1387 Each end of a socket is assigned a port value, which is simply a number
1388 between 1 and 65535 that distinguishes socket endpoints at the same
1389 IP address.
1390 A socket is uniquely defined by a tuple that includes the transport
1391 protocol (TCP or UDP) and the port values and IP addresses of both
1392 endpoints.
1393 .P
1394 The NFS client can choose any source port value for its sockets,
1395 but usually chooses a
1396 .I privileged
1397 port.
1398 A privileged port is a port value less than 1024.
1399 Only a process with root privileges may create a socket
1400 with a privileged source port.
1401 .P
1402 The exact range of privileged source ports that can be chosen is
1403 set by a pair of sysctls to avoid choosing a well-known port, such as
1404 the port used by ssh.
1405 This means the number of source ports available for the NFS client,
1406 and therefore the number of socket connections that can be used
1407 at the same time,
1408 is practically limited to only a few hundred.
1409 .P
1410 As described above, the traditional default NFS authentication scheme,
1411 known as AUTH_SYS, relies on sending local UID and GID numbers to identify
1412 users making NFS requests.
1413 An NFS server assumes that if a connection comes from a privileged port,
1414 the UID and GID numbers in the NFS requests on this connection have been
1415 verified by the client's kernel or some other local authority.
1416 This is an easy system to spoof, but on a trusted physical network between
1417 trusted hosts, it is entirely adequate.
1418 .P
1419 Roughly speaking, one socket is used for each NFS mount point.
1420 If a client could use non-privileged source ports as well,
1421 the number of sockets allowed,
1422 and thus the maximum number of concurrent mount points,
1423 would be much larger.
1424 .P
1425 Using non-privileged source ports may compromise server security somewhat,
1426 since any user on AUTH_SYS mount points can now pretend to be any other
1427 when making NFS requests.
1428 Thus NFS servers do not support this by default.
1429 They explicitly allow it usually via an export option.
1430 .P
1431 To retain good security while allowing as many mount points as possible,
1432 it is best to allow non-privileged client connections only if the server
1433 and client both require strong authentication, such as Kerberos.
1434 .SS "Mounting through a firewall"
1435 A firewall may reside between an NFS client and server,
1436 or the client or server may block some of its own ports via IP
1437 filter rules.
1438 It is still possible to mount an NFS server through a firewall,
1439 though some of the
1440 .BR mount (8)
1441 command's automatic service endpoint discovery mechanisms may not work; this
1442 requires you to provide specific endpoint details via NFS mount options.
1443 .P
1444 NFS servers normally run a portmapper or rpcbind daemon to advertise
1445 their service endpoints to clients. Clients use the rpcbind daemon to determine:
1446 .IP
1447 What network port each RPC-based service is using
1448 .IP
1449 What transport protocols each RPC-based service supports
1450 .P
1451 The rpcbind daemon uses a well-known port number (111) to help clients find a service endpoint.
1452 Although NFS often uses a standard port number (2049),
1453 auxiliary services such as the NLM service can choose
1454 any unused port number at random.
1455 .P
1456 Common firewall configurations block the well-known rpcbind port.
1457 In the absense of an rpcbind service,
1458 the server administrator fixes the port number
1459 of NFS-related services so that the firewall
1460 can allow access to specific NFS service ports.
1461 Client administrators then specify the port number
1462 for the mountd service via the
1463 .BR mount (8)
1464 command's
1465 .B mountport
1466 option.
1467 It may also be necessary to enforce the use of TCP or UDP
1468 if the firewall blocks one of those transports.
1469 .SS "NFS Access Control Lists"
1470 Solaris allows NFS version 3 clients direct access
1471 to POSIX Access Control Lists stored in its local file systems.
1472 This proprietary sideband protocol, known as NFSACL,
1473 provides richer access control than mode bits.
1474 Linux implements this protocol
1475 for compatibility with the Solaris NFS implementation.
1476 The NFSACL protocol never became a standard part
1477 of the NFS version 3 specification, however.
1478 .P
1479 The NFS version 4 specification mandates a new version
1480 of Access Control Lists that are semantically richer than POSIX ACLs.
1481 NFS version 4 ACLs are not fully compatible with POSIX ACLs; as such,
1482 some translation between the two is required
1483 in an environment that mixes POSIX ACLs and NFS version 4.
1484 .SH FILES
1485 .TP 1.5i
1486 .I /etc/fstab
1487 file system table
1488 .SH BUGS
1489 The generic
1490 .B remount
1491 option is not fully supported.
1492 Generic options, such as
1493 .BR rw " and " ro
1494 can be modified using the
1495 .B remount
1496 option,
1497 but NFS-specific options are not all supported.
1498 The underlying transport or NFS version
1499 cannot be changed by a remount, for example.
1500 Performing a remount on an NFS file system mounted with the
1501 .B noac
1502 option may have unintended consequences.
1503 The
1504 .B noac
1505 option is a mixture of a generic option,
1506 .BR sync ,
1507 and an NFS-specific option
1508 .BR actimeo=0 .
1509 .P
1510 Before 2.4.7, the Linux NFS client did not support NFS over TCP.
1511 .P
1512 Before 2.4.20, the Linux NFS client used a heuristic
1513 to determine whether cached file data was still valid
1514 rather than using the standard close-to-open cache coherency method
1515 described above.
1516 .P
1517 Starting with 2.4.22, the Linux NFS client employs
1518 a Van Jacobsen-based RTT estimator to determine retransmit
1519 timeout values when using NFS over UDP.
1520 .P
1521 Before 2.6.0, the Linux NFS client did not support NFS version 4.
1522 .P
1523 Before 2.6.8, the Linux NFS client used only synchronous reads and writes
1524 when the
1525 .BR rsize " and " wsize
1526 settings were smaller than the system's page size.
1527 .P
1528 The Linux NFS client does not yet support
1529 certain optional features of the NFS version 4 protocol,
1530 such as security negotiation, server referrals, and named attributes.
1531 .SH "SEE ALSO"
1532 .BR fstab (5),
1533 .BR mount (8),
1534 .BR umount (8),
1535 .BR mount.nfs (5),
1536 .BR umount.nfs (5),
1537 .BR exports (5),
1538 .BR netconfig (5),
1539 .BR ipv6 (7),
1540 .BR nfsd (8),
1541 .BR sm-notify (8),
1542 .BR rpc.statd (8),
1543 .BR rpc.idmapd (8),
1544 .BR rpc.gssd (8),
1545 .BR rpc.svcgssd (8),
1546 .BR kerberos (1)
1547 .sp
1548 RFC 768 for the UDP specification.
1549 .br
1550 RFC 793 for the TCP specification.
1551 .br
1552 RFC 1094 for the NFS version 2 specification.
1553 .br
1554 RFC 1813 for the NFS version 3 specification.
1555 .br
1556 RFC 1832 for the XDR specification.
1557 .br
1558 RFC 1833 for the RPC bind specification.
1559 .br
1560 RFC 2203 for the RPCSEC GSS API protocol specification.
1561 .br
1562 RFC 3530 for the NFS version 4 specification.