]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/mount/nfs.man
text-based mount: Retry when server can't be reached
[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 The Linux client supports version 2 and version 3 of the NFS protocol
627 when using the file system type
628 .BR nfs .
629 If the server does not support the requested version,
630 the mount request fails.
631 If this option is not specified, the client attempts to use version 3,
632 but negotiates the NFS version with the server if version 3 support
633 is not available.
634 .TP 1.5i
635 .BI vers= n
636 This option is an alternative to the
637 .B nfsvers
638 option.
639 It is included for compatibility with other operating systems.
640 .TP 1.5i
641 .BR lock " / " nolock
642 Selects whether to use the NLM sideband protocol to lock files on the server.
643 If neither option is specified (or if
644 .B lock
645 is specified), NLM locking is used for this mount point.
646 When using the
647 .B nolock
648 option, applications can lock files,
649 but such locks provide exclusion only against other applications
650 running on the same client.
651 Remote applications are not affected by these locks.
652 .IP
653 NLM locking must be disabled with the
654 .B nolock
655 option when using NFS to mount
656 .I /var
657 because
658 .I /var
659 contains files used by the NLM implementation on Linux.
660 Using the
661 .B nolock
662 option is also required when mounting exports on NFS servers
663 that do not support the NLM protocol.
664 .TP 1.5i
665 .BR intr " / " nointr
666 Selects whether to allow signals to interrupt file operations
667 on this mount point. If neither option
668 is specified (or if
669 .B nointr
670 is specified),
671 signals do not interrupt NFS file operations. If
672 .B intr
673 is specified, system calls return EINTR if an in-progress NFS operation is interrupted by
674 a signal.
675 .IP
676 Using the
677 .B intr
678 option is preferred to using the
679 .B soft
680 option because it is significantly less likely to result in data corruption.
681 .IP
682 The
683 .BR intr " / " nointr
684 mount option is deprecated after kernel 2.6.25.
685 Only SIGKILL can interrupt a pending NFS operation on these kernels,
686 and if specified, this mount option is ignored to provide backwards
687 compatibility with older kernels.
688 .TP 1.5i
689 .BR cto " / " nocto
690 Selects whether to use close-to-open cache coherence semantics.
691 If neither option is specified (or if
692 .B cto
693 is specified), the client uses close-to-open
694 cache coherence semantics. If the
695 .B nocto
696 option is specified, the client uses a non-standard heuristic to determine when
697 files on the server have changed.
698 .IP
699 Using the
700 .B nocto
701 option may improve performance for read-only mounts,
702 but should be used only if the data on the server changes only occasionally.
703 The DATA AND METADATA COHERENCE section discusses the behavior
704 of this option in more detail.
705 .TP 1.5i
706 .BR acl " / " noacl
707 Selects whether to use the NFSACL sideband protocol on this mount point.
708 The NFSACL sideband protocol is a proprietary protocol
709 implemented in Solaris that manages Access Control Lists. NFSACL was never
710 made a standard part of the NFS protocol specification.
711 .IP
712 If neither
713 .B acl
714 nor
715 .B noacl
716 option is specified,
717 the NFS client negotiates with the server
718 to see if the NFSACL protocol is supported,
719 and uses it if the server supports it.
720 Disabling the NFSACL sideband protocol may be necessary
721 if the negotiation causes problems on the client or server.
722 Refer to the SECURITY CONSIDERATIONS section for more details.
723 .TP 1.5i
724 .BR rdirplus " / " nordirplus
725 Selects whether to use NFS version 3 READDIRPLUS requests.
726 If this option is not specified, the NFS client uses READDIRPLUS requests
727 on NFS version 3 mounts to read small directories.
728 Some applications perform better if the client uses only READDIR requests
729 for all directories.
730 .SS "Valid options for the nfs4 file system type"
731 Use these options, along with the options in the first subsection above,
732 for mounting the
733 .B nfs4
734 file system type.
735 .TP 1.5i
736 .BI proto= netid
737 The transport protocol name and protocol family the NFS client uses
738 to transmit requests to the NFS server for this mount point.
739 If an NFS server has both an IPv4 and an IPv6 address, using a specific
740 netid will force the use of IPv4 or IPv6 networking to communicate
741 with that server.
742 .IP
743 If support for TI-RPC is built into the
744 .B mount.nfs
745 command,
746 .I netid
747 is a valid netid listed in
748 .IR /etc/netconfig .
749 Otherwise,
750 .I netid
751 is one of "tcp" or "udp," and only IPv4 may be used.
752 .IP
753 All NFS version 4 servers are required to support TCP,
754 so if this mount option is not specified, the NFS version 4 client
755 uses the TCP protocol.
756 Refer to the TRANSPORT METHODS section for more details.
757 .TP 1.5i
758 .BI port= n
759 The numeric value of the server's NFS service port.
760 If the server's NFS service is not available on the specified port,
761 the mount request fails.
762 .IP
763 If this mount option is not specified,
764 the NFS client uses the standard NFS port number of 2049
765 without first checking the server's rpcbind service.
766 This allows an NFS version 4 client to contact an NFS version 4
767 server through a firewall that may block rpcbind requests.
768 .IP
769 If the specified port value is 0,
770 then the NFS client uses the NFS service port number
771 advertised by the server's rpcbind service.
772 The mount request fails if the server's rpcbind service is not available,
773 the server's NFS service is not registered with its rpcbind service,
774 or the server's NFS service is not available on the advertised port.
775 .TP 1.5i
776 .BR intr " / " nointr
777 Selects whether to allow signals to interrupt file operations
778 on this mount point. If neither option is specified (or if
779 .B intr
780 is specified), system calls return EINTR if an in-progress NFS operation
781 is interrupted by a signal.  If
782 .B nointr
783 is specified, signals do not
784 interrupt NFS operations.
785 .IP
786 Using the
787 .B intr
788 option is preferred to using the
789 .B soft
790 option because it is significantly less likely to result in data corruption.
791 .IP
792 The
793 .BR intr " / " nointr
794 mount option is deprecated after kernel 2.6.25.
795 Only SIGKILL can interrupt a pending NFS operation on these kernels,
796 and if specified, this mount option is ignored to provide backwards
797 compatibility with older kernels.
798 .TP 1.5i
799 .BR cto " / " nocto
800 Selects whether to use close-to-open cache coherence semantics
801 for NFS directories on this mount point.
802 If neither
803 .B cto
804 nor
805 .B nocto
806 is specified,
807 the default is to use close-to-open cache coherence
808 semantics for directories.
809 .IP
810 File data caching behavior is not affected by this option.
811 The DATA AND METADATA COHERENCE section discusses
812 the behavior of this option in more detail.
813 .TP 1.5i
814 .BI clientaddr= n.n.n.n
815 Specifies a single IPv4 address (in dotted-quad form),
816 or a non-link-local IPv6 address,
817 that the NFS client advertises to allow servers
818 to perform NFS version 4 callback requests against
819 files on this mount point. If  the  server is unable to
820 establish callback connections to clients, performance
821 may degrade, or accesses to files may temporarily hang.
822 .IP
823 If this option is not specified, the
824 .BR mount (8)
825 command attempts to discover an appropriate callback address automatically.
826 The automatic discovery process is not perfect, however.
827 In the presence of multiple client network interfaces,
828 special routing policies,
829 or atypical network topologies,
830 the exact address to use for callbacks may be nontrivial to determine.
831 .SH MOUNT CONFIGURATION FILE
832 If the mount command is configured to do so, all of the mount options 
833 described in the previous section can also be configured in the 
834 .I /etc/nfsmount.conf 
835 file. See 
836 .BR nfsmount.conf(5)
837 for details.
838 .SH EXAMPLES
839 To mount an export using NFS version 2,
840 use the
841 .B nfs
842 file system type and specify the
843 .B nfsvers=2
844 mount option.
845 To mount using NFS version 3,
846 use the
847 .B nfs
848 file system type and specify the
849 .B nfsvers=3
850 mount option.
851 To mount using NFS version 4,
852 use the
853 .B nfs4
854 file system type.
855 The
856 .B nfsvers
857 mount option is not supported for the
858 .B nfs4
859 file system type.
860 .P
861 The following example from an
862 .I /etc/fstab
863 file causes the mount command to negotiate
864 reasonable defaults for NFS behavior.
865 .P
866 .NF
867 .TA 2.5i +0.7i +0.7i +.7i
868         server:/export  /mnt    nfs     defaults        0 0
869 .FI
870 .P
871 Here is an example from an /etc/fstab file for an NFS version 2 mount over UDP.
872 .P
873 .NF
874 .TA 2.5i +0.7i +0.7i +.7i
875         server:/export  /mnt    nfs     nfsvers=2,proto=udp     0 0
876 .FI
877 .P
878 Try this example to mount using NFS version 4 over TCP
879 with Kerberos 5 mutual authentication.
880 .P
881 .NF
882 .TA 2.5i +0.7i +0.7i +.7i
883         server:/export  /mnt    nfs4    sec=krb5        0 0
884 .FI
885 .P
886 This example can be used to mount /usr over NFS.
887 .P
888 .NF
889 .TA 2.5i +0.7i +0.7i +.7i
890         server:/export  /usr    nfs     ro,nolock,nocto,actimeo=3600    0 0
891 .FI
892 .P
893 This example shows how to mount an NFS server
894 using a raw IPv6 link-local address.
895 .P
896 .NF
897 .TA 2.5i +0.7i +0.7i +.7i
898         [fe80::215:c5ff:fb3e:e2b1%eth0]:/export /mnt    nfs     defaults        0 0
899 .FI
900 .SH "TRANSPORT METHODS"
901 NFS clients send requests to NFS servers via
902 Remote Procedure Calls, or
903 .IR RPCs .
904 The RPC client discovers remote service endpoints automatically,
905 handles per-request authentication,
906 adjusts request parameters for different byte endianness on client and server,
907 and retransmits requests that may have been lost by the network or server.
908 RPC requests and replies flow over a network transport.
909 .P
910 In most cases, the
911 .BR mount (8)
912 command, NFS client, and NFS server
913 can automatically negotiate proper transport
914 and data transfer size settings for a mount point.
915 In some cases, however, it pays to specify
916 these settings explicitly using mount options.
917 .P
918 Traditionally, NFS clients used the UDP transport exclusively for
919 transmitting requests to servers.  Though its implementation is
920 simple, NFS over UDP has many limitations that prevent smooth
921 operation and good performance in some common deployment
922 environments.  Even an insignificant packet loss rate results in the
923 loss of whole NFS requests; as such, retransmit timeouts are usually
924 in the subsecond range to allow clients to recover quickly from
925 dropped requests, but this can result in extraneous network traffic
926 and server load.
927 .P
928 However, UDP can be quite effective in specialized settings where
929 the networks MTU is large relative to NFSs data transfer size (such
930 as network environments that enable jumbo Ethernet frames).  In such
931 environments, trimming the
932 .B rsize
933 and
934 .B wsize
935 settings so that each
936 NFS read or write request fits in just a few network frames (or even
937 in  a single  frame) is advised.  This reduces the probability that
938 the loss of a single MTU-sized network frame results in the loss of
939 an entire large read or write request.
940 .P
941 TCP is the default transport protocol used for all modern NFS
942 implementations.  It performs well in almost every conceivable
943 network environment and provides excellent guarantees against data
944 corruption caused by network unreliability.  TCP is often a
945 requirement for mounting a server through a network firewall.
946 .P
947 Under normal circumstances, networks drop packets much more
948 frequently than NFS servers drop requests.  As such, an aggressive
949 retransmit timeout  setting for NFS over TCP is unnecessary. Typical
950 timeout settings for NFS over TCP are between one and ten minutes.
951 After  the client exhausts its retransmits (the value of the
952 .B retrans
953 mount option), it assumes a network partition has occurred,
954 and attempts to reconnect to the server on a fresh socket. Since
955 TCP itself makes network data transfer reliable,
956 .B rsize
957 and
958 .B wsize
959 can safely be allowed to default to the largest values supported by
960 both client and server, independent of the network's MTU size.
961 .SS "Using the mountproto mount option"
962 This section applies only to NFS version 2 and version 3 mounts
963 since NFS version 4 does not use a separate protocol for mount
964 requests.
965 .P
966 The Linux NFS client can use a different transport for
967 contacting an NFS server's rpcbind service, its mountd service,
968 its Network Lock Manager (NLM) service, and its NFS service.
969 The exact transports employed by the Linux NFS client for
970 each mount point depends on the settings of the transport
971 mount options, which include
972 .BR proto ,
973 .BR mountproto ,
974 .BR udp ", and " tcp .
975 .P
976 The client sends Network Status Manager (NSM) notifications
977 via UDP no matter what transport options are specified, but
978 listens for server NSM notifications on both UDP and TCP.
979 The NFS Access Control List (NFSACL) protocol shares the same
980 transport as the main NFS service.
981 .P
982 If no transport options are specified, the Linux NFS client
983 uses UDP to contact the server's mountd service, and TCP to
984 contact its NLM and NFS services by default.
985 .P
986 If the server does not support these transports for these services, the
987 .BR mount (8)
988 command attempts to discover what the server supports, and then retries
989 the mount request once using the discovered transports.
990 If the server does not advertise any transport supported by the client
991 or is misconfigured, the mount request fails.
992 If the
993 .B bg
994 option is in effect, the mount command backgrounds itself and continues
995 to attempt the specified mount request.
996 .P
997 When the
998 .B proto
999 option, the
1000 .B udp
1001 option, or the
1002 .B tcp
1003 option is specified but the
1004 .B mountproto
1005 option is not, the specified transport is used to contact
1006 both the server's mountd service and for the NLM and NFS services.
1007 .P
1008 If the
1009 .B mountproto
1010 option is specified but none of the
1011 .BR proto ", " udp " or " tcp
1012 options are specified, then the specified transport is used for the
1013 initial mountd request, but the mount command attempts to discover
1014 what the server supports for the NFS protocol, preferring TCP if
1015 both transports are supported.
1016 .P
1017 If both the
1018 .BR mountproto " and " proto
1019 (or
1020 .BR udp " or " tcp )
1021 options are specified, then the transport specified by the
1022 .B mountproto
1023 option is used for the initial mountd request, and the transport
1024 specified by the
1025 .B proto
1026 option (or the
1027 .BR udp " or " tcp " options)"
1028 is used for NFS, no matter what order these options appear.
1029 No automatic service discovery is performed if these options are
1030 specified.
1031 .P
1032 If any of the
1033 .BR proto ", " udp ", " tcp ", "
1034 or
1035 .B mountproto
1036 options are specified more than once on the same mount command line,
1037 then the value of the rightmost instance of each of these options
1038 takes effect.
1039 .SH "DATA AND METADATA COHERENCE"
1040 Some modern cluster file systems provide
1041 perfect cache coherence among their clients.
1042 Perfect cache coherence among disparate NFS clients
1043 is expensive to achieve, especially on wide area networks.
1044 As such, NFS settles for weaker cache coherence that
1045 satisfies the requirements of most file sharing types. Normally,
1046 file sharing is completely sequential:
1047 first client A opens a file, writes something to it, then closes it;
1048 then client B opens the same file, and reads the changes.
1049 .DT
1050 .SS "Close-to-open cache consistency"
1051 When an application opens a file stored on an NFS server,
1052 the NFS client checks that it still exists on the server
1053 and is permitted to the opener by sending a GETATTR or ACCESS request.
1054 When the application closes the file,
1055 the NFS client writes back any pending changes
1056 to the file so that the next opener can view the changes.
1057 This also gives the NFS client an opportunity to report
1058 any server write errors to the application
1059 via the return code from
1060 .BR close (2).
1061 The behavior of checking at open time and flushing at close time
1062 is referred to as close-to-open cache consistency.
1063 .SS "Weak cache consistency"
1064 There are still opportunities for a client's data cache
1065 to contain stale data.
1066 The NFS version 3 protocol introduced "weak cache consistency"
1067 (also known as WCC) which provides a way of efficiently checking
1068 a file's attributes before and after a single request.
1069 This allows a client to help identify changes
1070 that could have been made by other clients.
1071 .P
1072 When a client is using many concurrent operations
1073 that update the same file at the same time
1074 (for example, during asynchronous write behind),
1075 it is still difficult to tell whether it was
1076 that client's updates or some other client's updates
1077 that altered the file.
1078 .SS "Attribute caching"
1079 Use the
1080 .B noac
1081 mount option to achieve attribute cache coherence
1082 among multiple clients.
1083 Almost every file system operation checks
1084 file attribute information.
1085 The client keeps this information cached
1086 for a period of time to reduce network and server load.
1087 When
1088 .B noac
1089 is in effect, a client's file attribute cache is disabled,
1090 so each operation that needs to check a file's attributes
1091 is forced to go back to the server.
1092 This permits a client to see changes to a file very quickly,
1093 at the cost of many extra network operations.
1094 .P
1095 Be careful not to confuse the
1096 .B noac
1097 option with "no data caching."
1098 The
1099 .B noac
1100 mount option prevents the client from caching file metadata,
1101 but there are still races that may result in data cache incoherence
1102 between client and server.
1103 .P
1104 The NFS protocol is not designed to support
1105 true cluster file system cache coherence
1106 without some type of application serialization.
1107 If absolute cache coherence among clients is required,
1108 applications should use file locking. Alternatively, applications
1109 can also open their files with the O_DIRECT flag
1110 to disable data caching entirely.
1111 .SS "Directory entry caching"
1112 The Linux NFS client caches the result of all NFS LOOKUP requests.
1113 If the requested directory entry exists on the server,
1114 the result is referred to as a
1115 .IR positive " lookup result.
1116 If the requested directory entry does not exist on the server
1117 (that is, the server returned ENOENT),
1118 the result is referred to as
1119 .IR negative " lookup result.
1120 .P
1121 To detect when directory entries have been added or removed
1122 on the server,
1123 the Linux NFS client watches a directory's mtime.
1124 If the client detects a change in a directory's mtime,
1125 the client drops all cached LOOKUP results for that directory.
1126 Since the directory's mtime is a cached attribute, it may
1127 take some time before a client notices it has changed.
1128 See the descriptions of the
1129 .BR acdirmin ", " acdirmax ", and " noac
1130 mount options for more information about
1131 how long a directory's mtime is cached.
1132 .P
1133 Caching directory entries improves the performance of applications that
1134 do not share files with applications on other clients.
1135 Using cached information about directories can interfere
1136 with applications that run concurrently on multiple clients and
1137 need to detect the creation or removal of files quickly, however.
1138 The
1139 .B lookupcache
1140 mount option allows some tuning of directory entry caching behavior.
1141 .P
1142 Before kernel release 2.6.28,
1143 the Linux NFS client tracked only positive lookup results.
1144 This permitted applications to detect new directory entries
1145 created by other clients quickly while still providing some of the
1146 performance benefits of caching.
1147 If an application depends on the previous lookup caching behavior
1148 of the Linux NFS client, you can use
1149 .BR lookupcache=positive .
1150 .P
1151 If the client ignores its cache and validates every application
1152 lookup request with the server,
1153 that client can immediately detect when a new directory
1154 entry has been either created or removed by another client.
1155 You can specify this behavior using
1156 .BR lookupcache=none .
1157 The extra NFS requests needed if the client does not
1158 cache directory entries can exact a performance penalty.
1159 Disabling lookup caching
1160 should result in less of a performance penalty than using
1161 .BR noac ,
1162 and has no effect on how the NFS client caches the attributes of files.
1163 .P
1164 .SS "The sync mount option"
1165 The NFS client treats the
1166 .B sync
1167 mount option differently than some other file systems
1168 (refer to
1169 .BR mount (8)
1170 for a description of the generic
1171 .B sync
1172 and
1173 .B async
1174 mount options).
1175 If neither
1176 .B sync
1177 nor
1178 .B async
1179 is specified (or if the
1180 .B async
1181 option is specified),
1182 the NFS client delays sending application
1183 writes to the server
1184 until any of these events occur:
1185 .IP
1186 Memory pressure forces reclamation of system memory resources.
1187 .IP
1188 An application flushes file data explicitly with
1189 .BR sync (2),
1190 .BR msync (2),
1191 or
1192 .BR fsync (3).
1193 .IP
1194 An application closes a file with
1195 .BR close (2).
1196 .IP
1197 The file is locked/unlocked via
1198 .BR fcntl (2).
1199 .P
1200 In other words, under normal circumstances,
1201 data written by an application may not immediately appear
1202 on the server that hosts the file.
1203 .P
1204 If the
1205 .B sync
1206 option is specified on a mount point,
1207 any system call that writes data to files on that mount point
1208 causes that data to be flushed to the server
1209 before the system call returns control to user space.
1210 This provides greater data cache coherence among clients,
1211 but at a significant performance cost.
1212 .P
1213 Applications can use the O_SYNC open flag to force application
1214 writes to individual files to go to the server immediately without
1215 the use of the
1216 .B sync
1217 mount option.
1218 .SS "Using file locks with NFS"
1219 The Network Lock Manager protocol is a separate sideband protocol
1220 used to manage file locks in NFS version 2 and version 3.
1221 To support lock recovery after a client or server reboot,
1222 a second sideband protocol --
1223 known as the Network Status Manager protocol --
1224 is also required.
1225 In NFS version 4,
1226 file locking is supported directly in the main NFS protocol,
1227 and the NLM and NSM sideband protocols are not used.
1228 .P
1229 In most cases, NLM and NSM services are started automatically,
1230 and no extra configuration is required.
1231 Configure all NFS clients with fully-qualified domain names
1232 to ensure that NFS servers can find clients to notify them of server reboots.
1233 .P
1234 NLM supports advisory file locks only.
1235 To lock NFS files, use
1236 .BR fcntl (2)
1237 with the F_GETLK and F_SETLK commands.
1238 The NFS client converts file locks obtained via
1239 .BR flock (2)
1240 to advisory locks.
1241 .P
1242 When mounting servers that do not support the NLM protocol,
1243 or when mounting an NFS server through a firewall
1244 that blocks the NLM service port,
1245 specify the
1246 .B nolock
1247 mount option. NLM locking must be disabled with the
1248 .B nolock
1249 option when using NFS to mount
1250 .I /var
1251 because
1252 .I /var
1253 contains files used by the NLM implementation on Linux.
1254 .P
1255 Specifying the
1256 .B nolock
1257 option may also be advised to improve the performance
1258 of a proprietary application which runs on a single client
1259 and uses file locks extensively.
1260 .SS "NFS version 4 caching features"
1261 The data and metadata caching behavior of NFS version 4
1262 clients is similar to that of earlier versions.
1263 However, NFS version 4 adds two features that improve
1264 cache behavior:
1265 .I change attributes
1266 and
1267 .IR "file delegation" .
1268 .P
1269 The
1270 .I change attribute
1271 is a new part of NFS file and directory metadata
1272 which tracks data changes.
1273 It replaces the use of a file's modification
1274 and change time stamps
1275 as a way for clients to validate the content
1276 of their caches.
1277 Change attributes are independent of the time stamp
1278 resolution on either the server or client, however.
1279 .P
1280 A
1281 .I file delegation
1282 is a contract between an NFS version 4 client
1283 and server that allows the client to treat a file temporarily
1284 as if no other client is accessing it.
1285 The server promises to notify the client (via a callback request) if another client
1286 attempts to access that file.
1287 Once a file has been delegated to a client, the client can
1288 cache that file's data and metadata aggressively without
1289 contacting the server.
1290 .P
1291 File delegations come in two flavors:
1292 .I read
1293 and
1294 .IR write .
1295 A
1296 .I read
1297 delegation means that the server notifies the client
1298 about any other clients that want to write to the file.
1299 A
1300 .I write
1301 delegation means that the client gets notified about
1302 either read or write accessors.
1303 .P
1304 Servers grant file delegations when a file is opened,
1305 and can recall delegations at any time when another
1306 client wants access to the file that conflicts with
1307 any delegations already granted.
1308 Delegations on directories are not supported.
1309 .P
1310 In order to support delegation callback, the server
1311 checks the network return path to the client during
1312 the client's initial contact with the server.
1313 If contact with the client cannot be established,
1314 the server simply does not grant any delegations to
1315 that client.
1316 .SH "SECURITY CONSIDERATIONS"
1317 NFS servers control access to file data,
1318 but they depend on their RPC implementation
1319 to provide authentication of NFS requests.
1320 Traditional NFS access control mimics
1321 the standard mode bit access control provided in local file systems.
1322 Traditional RPC authentication uses a number
1323 to represent each user
1324 (usually the user's own uid),
1325 a number to represent the user's group (the user's gid),
1326 and a set of up to 16 auxiliary group numbers
1327 to represent other groups of which the user may be a member.
1328 .P
1329 Typically, file data and user ID values appear unencrypted
1330 (i.e. "in the clear") on the network.
1331 Moreover, NFS versions 2 and 3 use
1332 separate sideband protocols for mounting,
1333 locking and unlocking files,
1334 and reporting system status of clients and servers.
1335 These auxiliary protocols use no authentication.
1336 .P
1337 In addition to combining these sideband protocols with the main NFS protocol,
1338 NFS version 4 introduces more advanced forms of access control,
1339 authentication, and in-transit data protection.
1340 The NFS version 4 specification mandates NFSv4 ACLs,
1341 RPCGSS authentication, and RPCGSS security flavors
1342 that provide per-RPC integrity checking and encryption.
1343 Because NFS version 4 combines the
1344 function of the sideband protocols into the main NFS protocol,
1345 the new security features apply to all NFS version 4 operations
1346 including mounting, file locking, and so on.
1347 RPCGSS authentication can also be used with NFS versions 2 and 3,
1348 but does not protect their sideband protocols.
1349 .P
1350 The
1351 .B sec
1352 mount option specifies the RPCGSS security mode
1353 that is in effect on a given NFS mount point.
1354 Specifying
1355 .B sec=krb5
1356 provides cryptographic proof of a user's identity in each RPC request.
1357 This provides strong verification of the identity of users
1358 accessing data on the server.
1359 Note that additional configuration besides adding this mount option
1360 is required in order to enable Kerberos security.
1361 Refer to the
1362 .BR rpc.gssd (8)
1363 man page for details.
1364 .P
1365 Two additional flavors of Kerberos security are supported:
1366 .B krb5i
1367 and
1368 .BR krb5p .
1369 The
1370 .B krb5i
1371 security flavor provides a cryptographically strong guarantee
1372 that the data in each RPC request has not been tampered with.
1373 The
1374 .B krb5p
1375 security flavor encrypts every RPC request
1376 to prevent data exposure during network transit; however,
1377 expect some performance impact
1378 when using integrity checking or encryption.
1379 Similar support for other forms of cryptographic security (such as lipkey and SPKM3)
1380 is also available.
1381 .P
1382 The NFS version 4 protocol allows
1383 clients and servers to negotiate among multiple security flavors
1384 during mount processing.
1385 However, Linux does not yet implement such negotiation.
1386 The Linux client specifies a single security flavor at mount time
1387 which remains in effect for the lifetime of the mount.
1388 If the server does not support this flavor,
1389 the initial mount request is rejected by the server.
1390 .SS "Using non-privileged source ports"
1391 NFS clients usually communicate with NFS servers via network sockets.
1392 Each end of a socket is assigned a port value, which is simply a number
1393 between 1 and 65535 that distinguishes socket endpoints at the same
1394 IP address.
1395 A socket is uniquely defined by a tuple that includes the transport
1396 protocol (TCP or UDP) and the port values and IP addresses of both
1397 endpoints.
1398 .P
1399 The NFS client can choose any source port value for its sockets,
1400 but usually chooses a
1401 .I privileged
1402 port.
1403 A privileged port is a port value less than 1024.
1404 Only a process with root privileges may create a socket
1405 with a privileged source port.
1406 .P
1407 The exact range of privileged source ports that can be chosen is
1408 set by a pair of sysctls to avoid choosing a well-known port, such as
1409 the port used by ssh.
1410 This means the number of source ports available for the NFS client,
1411 and therefore the number of socket connections that can be used
1412 at the same time,
1413 is practically limited to only a few hundred.
1414 .P
1415 As described above, the traditional default NFS authentication scheme,
1416 known as AUTH_SYS, relies on sending local UID and GID numbers to identify
1417 users making NFS requests.
1418 An NFS server assumes that if a connection comes from a privileged port,
1419 the UID and GID numbers in the NFS requests on this connection have been
1420 verified by the client's kernel or some other local authority.
1421 This is an easy system to spoof, but on a trusted physical network between
1422 trusted hosts, it is entirely adequate.
1423 .P
1424 Roughly speaking, one socket is used for each NFS mount point.
1425 If a client could use non-privileged source ports as well,
1426 the number of sockets allowed,
1427 and thus the maximum number of concurrent mount points,
1428 would be much larger.
1429 .P
1430 Using non-privileged source ports may compromise server security somewhat,
1431 since any user on AUTH_SYS mount points can now pretend to be any other
1432 when making NFS requests.
1433 Thus NFS servers do not support this by default.
1434 They explicitly allow it usually via an export option.
1435 .P
1436 To retain good security while allowing as many mount points as possible,
1437 it is best to allow non-privileged client connections only if the server
1438 and client both require strong authentication, such as Kerberos.
1439 .SS "Mounting through a firewall"
1440 A firewall may reside between an NFS client and server,
1441 or the client or server may block some of its own ports via IP
1442 filter rules.
1443 It is still possible to mount an NFS server through a firewall,
1444 though some of the
1445 .BR mount (8)
1446 command's automatic service endpoint discovery mechanisms may not work; this
1447 requires you to provide specific endpoint details via NFS mount options.
1448 .P
1449 NFS servers normally run a portmapper or rpcbind daemon to advertise
1450 their service endpoints to clients. Clients use the rpcbind daemon to determine:
1451 .IP
1452 What network port each RPC-based service is using
1453 .IP
1454 What transport protocols each RPC-based service supports
1455 .P
1456 The rpcbind daemon uses a well-known port number (111) to help clients find a service endpoint.
1457 Although NFS often uses a standard port number (2049),
1458 auxiliary services such as the NLM service can choose
1459 any unused port number at random.
1460 .P
1461 Common firewall configurations block the well-known rpcbind port.
1462 In the absense of an rpcbind service,
1463 the server administrator fixes the port number
1464 of NFS-related services so that the firewall
1465 can allow access to specific NFS service ports.
1466 Client administrators then specify the port number
1467 for the mountd service via the
1468 .BR mount (8)
1469 command's
1470 .B mountport
1471 option.
1472 It may also be necessary to enforce the use of TCP or UDP
1473 if the firewall blocks one of those transports.
1474 .SS "NFS Access Control Lists"
1475 Solaris allows NFS version 3 clients direct access
1476 to POSIX Access Control Lists stored in its local file systems.
1477 This proprietary sideband protocol, known as NFSACL,
1478 provides richer access control than mode bits.
1479 Linux implements this protocol
1480 for compatibility with the Solaris NFS implementation.
1481 The NFSACL protocol never became a standard part
1482 of the NFS version 3 specification, however.
1483 .P
1484 The NFS version 4 specification mandates a new version
1485 of Access Control Lists that are semantically richer than POSIX ACLs.
1486 NFS version 4 ACLs are not fully compatible with POSIX ACLs; as such,
1487 some translation between the two is required
1488 in an environment that mixes POSIX ACLs and NFS version 4.
1489 .SH FILES
1490 .TP 1.5i
1491 .I /etc/fstab
1492 file system table
1493 .SH BUGS
1494 The generic
1495 .B remount
1496 option is not fully supported.
1497 Generic options, such as
1498 .BR rw " and " ro
1499 can be modified using the
1500 .B remount
1501 option,
1502 but NFS-specific options are not all supported.
1503 The underlying transport or NFS version
1504 cannot be changed by a remount, for example.
1505 Performing a remount on an NFS file system mounted with the
1506 .B noac
1507 option may have unintended consequences.
1508 The
1509 .B noac
1510 option is a mixture of a generic option,
1511 .BR sync ,
1512 and an NFS-specific option
1513 .BR actimeo=0 .
1514 .P
1515 Before 2.4.7, the Linux NFS client did not support NFS over TCP.
1516 .P
1517 Before 2.4.20, the Linux NFS client used a heuristic
1518 to determine whether cached file data was still valid
1519 rather than using the standard close-to-open cache coherency method
1520 described above.
1521 .P
1522 Starting with 2.4.22, the Linux NFS client employs
1523 a Van Jacobsen-based RTT estimator to determine retransmit
1524 timeout values when using NFS over UDP.
1525 .P
1526 Before 2.6.0, the Linux NFS client did not support NFS version 4.
1527 .P
1528 Before 2.6.8, the Linux NFS client used only synchronous reads and writes
1529 when the
1530 .BR rsize " and " wsize
1531 settings were smaller than the system's page size.
1532 .P
1533 The Linux NFS client does not yet support
1534 certain optional features of the NFS version 4 protocol,
1535 such as security negotiation, server referrals, and named attributes.
1536 .SH "SEE ALSO"
1537 .BR fstab (5),
1538 .BR mount (8),
1539 .BR umount (8),
1540 .BR mount.nfs (5),
1541 .BR umount.nfs (5),
1542 .BR exports (5),
1543 .BR netconfig (5),
1544 .BR ipv6 (7),
1545 .BR nfsd (8),
1546 .BR sm-notify (8),
1547 .BR rpc.statd (8),
1548 .BR rpc.idmapd (8),
1549 .BR rpc.gssd (8),
1550 .BR rpc.svcgssd (8),
1551 .BR kerberos (1)
1552 .sp
1553 RFC 768 for the UDP specification.
1554 .br
1555 RFC 793 for the TCP specification.
1556 .br
1557 RFC 1094 for the NFS version 2 specification.
1558 .br
1559 RFC 1813 for the NFS version 3 specification.
1560 .br
1561 RFC 1832 for the XDR specification.
1562 .br
1563 RFC 1833 for the RPC bind specification.
1564 .br
1565 RFC 2203 for the RPCSEC GSS API protocol specification.
1566 .br
1567 RFC 3530 for the NFS version 4 specification.