xref: /freebsd/sbin/mount_nfs/mount_nfs.8 (revision 5e70ce7a7c81dc3677efe6c3d958d2d1b346aea9)
14a4c5285SPeter Wemm.\" Copyright (c) 1992, 1993, 1994, 1995
28fae3551SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
38fae3551SRodney W. Grimes.\"
48fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
58fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions
68fae3551SRodney W. Grimes.\" are met:
78fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
88fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
98fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
108fae3551SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
118fae3551SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
128fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors
138fae3551SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
148fae3551SRodney W. Grimes.\"    without specific prior written permission.
158fae3551SRodney W. Grimes.\"
168fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
178fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
188fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
198fae3551SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
208fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
218fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
228fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
238fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
248fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
258fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
268fae3551SRodney W. Grimes.\" SUCH DAMAGE.
278fae3551SRodney W. Grimes.\"
284a4c5285SPeter Wemm.\"	@(#)mount_nfs.8	8.3 (Berkeley) 3/29/95
297f3dea24SPeter Wemm.\" $FreeBSD$
30a7475cf4SRuslan Ermilov.\"
31*5e70ce7aSRick Macklem.Dd December 9, 2012
328fae3551SRodney W. Grimes.Dt MOUNT_NFS 8
339fe48c6eSRuslan Ermilov.Os
348fae3551SRodney W. Grimes.Sh NAME
358fae3551SRodney W. Grimes.Nm mount_nfs
36a7475cf4SRuslan Ermilov.Nd mount NFS file systems
378fae3551SRodney W. Grimes.Sh SYNOPSIS
387c7fb079SRuslan Ermilov.Nm
3986ce6a83SRobert Watson.Op Fl 23bcdiLlNPsTU
408fae3551SRodney W. Grimes.Op Fl a Ar maxreadahead
418d646af5SRuslan Ermilov.Op Fl D Ar deadthresh
428fae3551SRodney W. Grimes.Op Fl g Ar maxgroups
438d646af5SRuslan Ermilov.Op Fl I Ar readdirsize
448fae3551SRodney W. Grimes.Op Fl o Ar options
458d646af5SRuslan Ermilov.Op Fl R Ar retrycnt
468fae3551SRodney W. Grimes.Op Fl r Ar readsize
478fae3551SRodney W. Grimes.Op Fl t Ar timeout
488fae3551SRodney W. Grimes.Op Fl w Ar writesize
498fae3551SRodney W. Grimes.Op Fl x Ar retrans
50d0353b83SRuslan Ermilov.Ar rhost : Ns Ar path node
518fae3551SRodney W. Grimes.Sh DESCRIPTION
528fae3551SRodney W. GrimesThe
5346fc8f78SPhilippe Charnier.Nm
54e1205e80SPhilippe Charnierutility calls the
550c269d1fSCraig Rodrigues.Xr nmount 2
56a7475cf4SRuslan Ermilovsystem call to prepare and graft a remote NFS file system
57d0353b83SRuslan Ermilov.Pq Ar rhost : Ns Ar path
588fae3551SRodney W. Grimeson to the file system tree at the point
598fae3551SRodney W. Grimes.Ar node .
608fae3551SRodney W. GrimesThis command is normally executed by
618fae3551SRodney W. Grimes.Xr mount 8 .
62a62dc406SDoug RabsonIt implements the mount protocol as described in RFC 1094, Appendix A and
63a62dc406SDoug Rabson.%T "NFS: Network File System Version 3 Protocol Specification" ,
64a62dc406SDoug RabsonAppendix I.
658fae3551SRodney W. Grimes.Pp
6625135859SRick MacklemIf the file system type is specified as ``oldnfs'', which implies this
6725135859SRick Macklemcommand is run as ``mount_oldnfs'', then it forces use of the old NFS
6825135859SRick Macklemclient, which does not support the
6925135859SRick Macklem.Cm nfsv4
7025135859SRick Macklemoption.
7125135859SRick Macklem.Pp
722bc53e11SIan DowseBy default,
732bc53e11SIan Dowse.Nm
742bc53e11SIan Dowsekeeps retrying until the mount succeeds.
752bc53e11SIan DowseThis behaviour is intended for file systems listed in
762bc53e11SIan Dowse.Xr fstab 5
772bc53e11SIan Dowsethat are critical to the boot process.
782bc53e11SIan DowseFor non-critical file systems, the
794b5bc283SCraig Rodrigues.Cm bg
802bc53e11SIan Dowseand
814b5bc283SCraig Rodrigues.Cm retrycnt
824b5bc283SCraig Rodriguesoptions provide mechanisms to prevent the boot process from hanging
832bc53e11SIan Dowseif the server is unavailable.
842bc53e11SIan Dowse.Pp
852bc53e11SIan DowseIf the server becomes unresponsive while an NFS file system is
862bc53e11SIan Dowsemounted, any new or outstanding file operations on that file system
872bc53e11SIan Dowsewill hang uninterruptibly until the server comes back.
882bc53e11SIan DowseTo modify this default behaviour, see the
894b5bc283SCraig Rodrigues.Cm intr
902bc53e11SIan Dowseand
914b5bc283SCraig Rodrigues.Cm soft
924b5bc283SCraig Rodriguesoptions.
932bc53e11SIan Dowse.Pp
948fae3551SRodney W. GrimesThe options are:
958fae3551SRodney W. Grimes.Bl -tag -width indent
964b5bc283SCraig Rodrigues.It Fl o
974b5bc283SCraig RodriguesOptions are specified with a
984b5bc283SCraig Rodrigues.Fl o
994b5bc283SCraig Rodriguesflag followed by a comma separated string of options.
1004b5bc283SCraig RodriguesSee the
1014b5bc283SCraig Rodrigues.Xr mount 8
1024b5bc283SCraig Rodriguesman page for possible options and their meanings.
1034b5bc283SCraig RodriguesThe following NFS specific options are also available:
1044b5bc283SCraig Rodrigues.Bl -tag -width indent
1054b5bc283SCraig Rodrigues.It Cm acregmin Ns = Ns Aq Ar seconds
1064b5bc283SCraig Rodrigues.It Cm acregmax Ns = Ns Aq Ar seconds
1074b5bc283SCraig Rodrigues.It Cm acdirmin Ns = Ns Aq Ar seconds
1084b5bc283SCraig Rodrigues.It Cm acdirmax Ns = Ns Aq Ar seconds
1094b5bc283SCraig RodriguesWhen attributes of files are cached, a timeout calculated to determine
1104b5bc283SCraig Rodrigueswhether a given cache entry has expired.
1114b5bc283SCraig RodriguesThese four values determine the upper and lower bounds of the timeouts for
1124b5bc283SCraig Rodrigues.Dq directory
1134b5bc283SCraig Rodriguesattributes and
1144b5bc283SCraig Rodrigues.Dq regular
1154b5bc283SCraig Rodrigues(ie: everything else).
1164b5bc283SCraig RodriguesThe default values are 3 -> 60 seconds
1174b5bc283SCraig Rodriguesfor regular files, and 30 -> 60 seconds for directories.
1184b5bc283SCraig RodriguesThe algorithm to calculate the timeout is based on the age of the file.
1194b5bc283SCraig RodriguesThe older the file,
1204b5bc283SCraig Rodriguesthe longer the cache is considered valid, subject to the limits above.
1214b5bc283SCraig Rodrigues.It Cm bg
1224b5bc283SCraig RodriguesIf an initial attempt to contact the server fails, fork off a child to keep
1234b5bc283SCraig Rodriguestrying the mount in the background.
1244b5bc283SCraig RodriguesUseful for
1254b5bc283SCraig Rodrigues.Xr fstab 5 ,
1264b5bc283SCraig Rodrigueswhere the file system mount is not critical to multiuser operation.
1274b5bc283SCraig Rodrigues.It Cm deadthresh Ns = Ns Aq Ar value
12891196234SPeter WemmSet the
1298fae3551SRodney W. Grimes.Dq "dead server threshold"
13091196234SPeter Wemmto the specified number of round trip timeout intervals before a
13191196234SPeter Wemm.Dq "server not responding"
13291196234SPeter Wemmmessage is displayed.
1334b5bc283SCraig Rodrigues.It Cm dumbtimer
1344b5bc283SCraig RodriguesTurn off the dynamic retransmit timeout estimator.
1354b5bc283SCraig RodriguesThis may be useful for UDP mounts that exhibit high retry rates,
1364b5bc283SCraig Rodriguessince it is possible that the dynamically estimated timeout interval is too
1374b5bc283SCraig Rodriguesshort.
1384b5bc283SCraig Rodrigues.It Cm fg
1394b5bc283SCraig RodriguesSame as not specifying
1404b5bc283SCraig Rodrigues.Cm bg .
1414b5bc283SCraig Rodrigues.It Cm hard
1424b5bc283SCraig RodriguesSame as not specifying
1434b5bc283SCraig Rodrigues.Cm soft .
1444b5bc283SCraig Rodrigues.It Cm intr
1454b5bc283SCraig RodriguesMake the mount interruptible, which implies that file system calls that
1464b5bc283SCraig Rodriguesare delayed due to an unresponsive server will fail with EINTR when a
1474b5bc283SCraig Rodriguestermination signal is posted for the process.
1484b5bc283SCraig Rodrigues.It Cm maxgroups Ns = Ns Aq Ar value
1494b5bc283SCraig RodriguesSet the maximum size of the group list for the credentials to the
1504b5bc283SCraig Rodriguesspecified value.
1514b5bc283SCraig RodriguesThis should be used for mounts on old servers that cannot handle a
1524b5bc283SCraig Rodriguesgroup list size of 16, as specified in RFC 1057.
1534b5bc283SCraig RodriguesTry 8, if users in a lot of groups cannot get response from the mount
1544b5bc283SCraig Rodriguespoint.
1554b5bc283SCraig Rodrigues.It Cm mntudp
1564b5bc283SCraig RodriguesForce the mount protocol to use UDP transport, even for TCP NFS mounts.
1574b5bc283SCraig Rodrigues(Necessary for some old
1584b5bc283SCraig Rodrigues.Bx
1594b5bc283SCraig Rodriguesservers.)
1600b17c7beSJohn Baldwin.It Cm nametimeo Ns = Ns Aq Ar value
1610b17c7beSJohn BaldwinOverride the default of NFS_DEFAULT_NAMETIMEO for the timeout (in seconds)
1620b17c7beSJohn Baldwinfor positive name cache entries.
1630b17c7beSJohn BaldwinIf this is set to 0 it disables positive name caching for the mount point.
16430607997SRick Macklem.It Cm negnametimeo Ns = Ns Aq Ar value
16530607997SRick MacklemOverride the default of NFS_DEFAULT_NEGNAMETIMEO for the timeout (in seconds)
16630607997SRick Macklemfor negative name cache entries. If this is set to 0 it disables negative
16730607997SRick Macklemname caching for the mount point.
1684b5bc283SCraig Rodrigues.It Cm nfsv2
1694b5bc283SCraig RodriguesUse the NFS Version 2 protocol (the default is to try version 3 first
1704b5bc283SCraig Rodriguesthen version 2).
1714b5bc283SCraig RodriguesNote that NFS version 2 has a file size limit of 2 gigabytes.
1724b5bc283SCraig Rodrigues.It Cm nfsv3
1734b5bc283SCraig RodriguesUse the NFS Version 3 protocol.
174011981fdSRick Macklem.It Cm nfsv4
175011981fdSRick MacklemUse the NFS Version 4 protocol.
17625135859SRick MacklemThis option will force the mount to use
177011981fdSRick MacklemTCP transport.
178*5e70ce7aSRick Macklem.It Cm minorversion Ns = Ns Aq Ar value
179*5e70ce7aSRick MacklemOverride the default of 0 for the minor version of the NFS Version 4 protocol.
180*5e70ce7aSRick MacklemThe only minor version currently supported is 1.
181*5e70ce7aSRick MacklemThis option is only meaningful when used with the
182*5e70ce7aSRick Macklem.Cm nfsv4
183*5e70ce7aSRick Macklemoption.
184*5e70ce7aSRick Macklem.It Cm pnfs
185*5e70ce7aSRick MacklemEnable support for parallel NFS (pNFS) for minor version 1 of the
186*5e70ce7aSRick MacklemNFS Version 4 protocol.
187*5e70ce7aSRick MacklemThis option is only meaningful when used with the
188*5e70ce7aSRick Macklem.Cm minorversion
189*5e70ce7aSRick Macklemoption.
1904b5bc283SCraig Rodrigues.It Cm noconn
1914b5bc283SCraig RodriguesFor UDP mount points, do not do a
1924b5bc283SCraig Rodrigues.Xr connect 2 .
1934b5bc283SCraig RodriguesThis must be used if the server does not reply to requests from the standard
1944b5bc283SCraig RodriguesNFS port number 2049 or replies to requests using a different IP address
1954b5bc283SCraig Rodrigues(which can occur if the server is multi-homed).
1964b5bc283SCraig RodriguesSetting the
1974b5bc283SCraig Rodrigues.Va vfs.nfs.nfs_ip_paranoia
1984b5bc283SCraig Rodriguessysctl to 0 will make this option the default.
199e2f2b370SRuslan Ermilov.It Cm nocto
200e2f2b370SRuslan ErmilovNormally, NFS clients maintain the close-to-open cache coherency.
201e2f2b370SRuslan ErmilovThis works by flushing at close time and checking at open time.
202e2f2b370SRuslan ErmilovChecking at open time is implemented by getting attributes from
203e2f2b370SRuslan Ermilovthe server and purging the data cache if they do not match
204e2f2b370SRuslan Ermilovattributes cached by the client.
205e2f2b370SRuslan Ermilov.Pp
206e2f2b370SRuslan ErmilovThis option disables checking at open time.
207e2f2b370SRuslan ErmilovIt may improve performance for read-only mounts,
208e2f2b370SRuslan Ermilovbut should only be used if the data on the server changes rarely.
209e2f2b370SRuslan ErmilovBe sure to understand the consequences before enabling this option.
2104b5bc283SCraig Rodrigues.It Cm noinet4 , noinet6
2114b5bc283SCraig RodriguesDisables
2124b5bc283SCraig Rodrigues.Dv AF_INET
2134b5bc283SCraig Rodriguesor
2144b5bc283SCraig Rodrigues.Dv AF_INET6
2154b5bc283SCraig Rodriguesconnections.
2164b5bc283SCraig RodriguesUseful for hosts that have
2174b5bc283SCraig Rodriguesboth an A record and an AAAA record for the same name.
2184b5bc283SCraig Rodrigues.It Cm nolockd
21913190d87SAlfred PerlsteinDo
22013190d87SAlfred Perlstein.Em not
22113190d87SAlfred Perlsteinforward
22213190d87SAlfred Perlstein.Xr fcntl 2
22313190d87SAlfred Perlsteinlocks over the wire.
22413190d87SAlfred PerlsteinAll locks will be local and not seen by the server
225a7475cf4SRuslan Ermilovand likewise not seen by other NFS clients.
226a7475cf4SRuslan ErmilovThis removes the need to run the
22713190d87SAlfred Perlstein.Xr rpcbind 8
22813190d87SAlfred Perlsteinservice and the
22913190d87SAlfred Perlstein.Xr rpc.statd 8
23013190d87SAlfred Perlsteinand
23113190d87SAlfred Perlstein.Xr rpc.lockd 8
23213190d87SAlfred Perlsteinservers on the client.
2333fd0605eSAlfred PerlsteinNote that this option will only be honored when performing the
2343fd0605eSAlfred Perlsteininitial mount, it will be silently ignored if used while updating
2353fd0605eSAlfred Perlsteinthe mount options.
236011981fdSRick Macklem.It Cm principal
237011981fdSRick MacklemFor the RPCSEC_GSS security flavors, such as krb5, krb5i and krb5p,
238011981fdSRick Macklemthis option sets the name of the host based principal name expected
239011981fdSRick Macklemby the server. This option overrides the default, which will be
240011981fdSRick Macklem``nfs@<server-fqdn>'' and should normally be sufficient.
2414b5bc283SCraig Rodrigues.It Cm noresvport
242cc75b131SJoerg WunschDo
243cc75b131SJoerg Wunsch.Em not
244cc75b131SJoerg Wunschuse a reserved socket port number (see below).
2454b5bc283SCraig Rodrigues.It Cm port Ns = Ns Aq Ar port_number
2464b5bc283SCraig RodriguesUse specified port number for NFS requests.
2474b5bc283SCraig RodriguesThe default is to query the portmapper for the NFS port.
2484b5bc283SCraig Rodrigues.It Cm rdirplus
249011981fdSRick MacklemUsed with NFSV3 to specify that the \fBReaddirPlus\fR RPC should
2508fae3551SRodney W. Grimesbe used.
251011981fdSRick MacklemFor NFSV4, setting this option has a similar effect, in that it will make
252011981fdSRick Macklemthe Readdir Operation get more attributes.
2538fae3551SRodney W. GrimesThis option reduces RPC traffic for cases such as
2548fae3551SRodney W. Grimes.Dq "ls -l" ,
255a62dc406SDoug Rabsonbut tends to flood the attribute and name caches with prefetched entries.
256ef8f7ac9SSheldon HearnTry this option and see whether performance improves or degrades.
257ef8f7ac9SSheldon HearnProbably
258a62dc406SDoug Rabsonmost useful for client to server network interconnects with a large bandwidth
259a62dc406SDoug Rabsontimes delay product.
2604b5bc283SCraig Rodrigues.It Cm readahead Ns = Ns Aq Ar value
2614b5bc283SCraig RodriguesSet the read-ahead count to the specified value.
2624b5bc283SCraig RodriguesThis may be in the range of 0 - 4, and determines how many blocks
2634b5bc283SCraig Rodrigueswill be read ahead when a large file is being read sequentially.
2644b5bc283SCraig RodriguesTrying a value greater than 1 for this is suggested for
2654b5bc283SCraig Rodriguesmounts with a large bandwidth * delay product.
2664b5bc283SCraig Rodrigues.It Cm readdirsize Ns = Ns Aq Ar value
2674b5bc283SCraig RodriguesSet the readdir read size to the specified value.
2684b5bc283SCraig RodriguesThe value should normally
2694b5bc283SCraig Rodriguesbe a multiple of
2704b5bc283SCraig Rodrigues.Dv DIRBLKSIZ
2714b5bc283SCraig Rodriguesthat is <= the read size for the mount.
272a7475cf4SRuslan Ermilov.It Cm resvport
2734b5bc283SCraig RodriguesUse a reserved socket port number.
2744b5bc283SCraig RodriguesThis flag is obsolete, and only retained for compatibility reasons.
2754b5bc283SCraig RodriguesReserved port numbers are used by default now.
2764b5bc283SCraig Rodrigues(For the rare case where the client has a trusted root account
2774b5bc283SCraig Rodriguesbut untrustworthy users and the network cables are in secure areas this does
2784b5bc283SCraig Rodrigueshelp, but for normal desktop clients this does not apply.)
2794b5bc283SCraig Rodrigues.It Cm retrans Ns = Ns Aq Ar value
2804b5bc283SCraig RodriguesSet the retransmit timeout count for soft mounts to the specified value.
2814b5bc283SCraig Rodrigues.It Cm retrycnt Ns = Ns Aq Ar count
2824b5bc283SCraig RodriguesSet the mount retry count to the specified value.
2834b5bc283SCraig RodriguesThe default is a retry count of zero, which means to keep retrying
2844b5bc283SCraig Rodriguesforever.
2854b5bc283SCraig RodriguesThere is a 60 second delay between each attempt.
2864b5bc283SCraig Rodrigues.It Cm rsize Ns = Ns Aq Ar value
2878fae3551SRodney W. GrimesSet the read data size to the specified value.
288a62dc406SDoug RabsonIt should normally be a power of 2 greater than or equal to 1024.
2898fae3551SRodney W. GrimesThis should be used for UDP mounts when the
2908fae3551SRodney W. Grimes.Dq "fragments dropped due to timeout"
2918fae3551SRodney W. Grimesvalue is getting large while actively using a mount point.
2928fae3551SRodney W. Grimes(Use
2938fae3551SRodney W. Grimes.Xr netstat 1
2948fae3551SRodney W. Grimeswith the
2958fae3551SRodney W. Grimes.Fl s
2968fae3551SRodney W. Grimesoption to see what the
2978fae3551SRodney W. Grimes.Dq "fragments dropped due to timeout"
2988fae3551SRodney W. Grimesvalue is.)
299011981fdSRick Macklem.It Cm sec Ns = Ns Aq Ar flavor
300011981fdSRick MacklemThis option specifies what security flavor should be used for the mount.
301011981fdSRick MacklemCurrently, they are:
302011981fdSRick Macklem.Bd -literal
303011981fdSRick Macklemkrb5 -  Use KerberosV authentication
304011981fdSRick Macklemkrb5i - Use KerberosV authentication and
305011981fdSRick Macklem        apply integrity checksums to RPCs
306011981fdSRick Macklemkrb5p - Use KerberosV authentication and
307011981fdSRick Macklem        encrypt the RPC data
308011981fdSRick Macklemsys -   The default AUTH_SYS, which uses a
309011981fdSRick Macklem        uid + gid list authenticator
310011981fdSRick Macklem.Ed
3114b5bc283SCraig Rodrigues.It Cm soft
3128fae3551SRodney W. GrimesA soft mount, which implies that file system calls will fail
313a7475cf4SRuslan Ermilovafter
314a7475cf4SRuslan Ermilov.Ar retrycnt
315a7475cf4SRuslan Ermilovround trip timeout intervals.
3164b5bc283SCraig Rodrigues.It Cm tcp
3174b5bc283SCraig RodriguesUse TCP transport.
3184b5bc283SCraig RodriguesThis is the default option, as it provides for increased reliability on both
3194b5bc283SCraig RodriguesLAN and WAN configurations compared to UDP.
3204b5bc283SCraig RodriguesSome old NFS servers do not support this method; UDP mounts may be required
3214b5bc283SCraig Rodriguesfor interoperability.
3224b5bc283SCraig Rodrigues.It Cm timeout Ns = Ns Aq Ar value
3238fae3551SRodney W. GrimesSet the initial retransmit timeout to the specified value.
3248fae3551SRodney W. GrimesMay be useful for fine tuning UDP mounts over internetworks
3258fae3551SRodney W. Grimeswith high packet loss rates or an overloaded server.
3268fae3551SRodney W. GrimesTry increasing the interval if
3278fae3551SRodney W. Grimes.Xr nfsstat 1
3288fae3551SRodney W. Grimesshows high retransmit rates while the file system is active or reducing the
3298fae3551SRodney W. Grimesvalue if there is a low retransmit rate but long response delay observed.
330a7475cf4SRuslan Ermilov(Normally, the
3314b5bc283SCraig Rodrigues.Cm dumbtimer
332a7475cf4SRuslan Ermilovoption should be specified when using this option to manually
333a62dc406SDoug Rabsontune the timeout
334a62dc406SDoug Rabsoninterval.)
3354b5bc283SCraig Rodrigues.It Cm udp
3364b5bc283SCraig RodriguesUse UDP transport.
337840fb1c0SJohn Baldwin.It Cm wcommitsize Ns = Ns Aq Ar value
338840fb1c0SJohn BaldwinSet the maximum pending write commit size to the specified value.
339840fb1c0SJohn BaldwinThis determines the maximum amount of pending write data that the NFS
340840fb1c0SJohn Baldwinclient is willing to cache for each file.
3414b5bc283SCraig Rodrigues.It Cm wsize Ns = Ns Aq Ar value
3428fae3551SRodney W. GrimesSet the write data size to the specified value.
3439806e231SRuslan ErmilovDitto the comments w.r.t.\& the
3444b5bc283SCraig Rodrigues.Cm rsize
3458fae3551SRodney W. Grimesoption, but using the
3468fae3551SRodney W. Grimes.Dq "fragments dropped due to timeout"
3478fae3551SRodney W. Grimesvalue on the server instead of the client.
3488fae3551SRodney W. GrimesNote that both the
3494b5bc283SCraig Rodrigues.Cm rsize
3508fae3551SRodney W. Grimesand
3514b5bc283SCraig Rodrigues.Cm wsize
3528fae3551SRodney W. Grimesoptions should only be used as a last ditch effort at improving performance
3538fae3551SRodney W. Grimeswhen mounting servers that do not support TCP mounts.
3544b5bc283SCraig Rodrigues.El
3554b5bc283SCraig Rodrigues.El
3564b5bc283SCraig Rodrigues.Sh COMPATIBILITY
3574b5bc283SCraig RodriguesThe following command line flags are equivalent to
3584b5bc283SCraig Rodrigues.Fl o
3594b5bc283SCraig Rodriguesnamed options and are supported for compatibility with older
3604b5bc283SCraig Rodriguesinstallations.
3614b5bc283SCraig Rodrigues.Bl -tag -width indent
3624b5bc283SCraig Rodrigues.It Fl 2
3634b5bc283SCraig RodriguesSame as
3644b5bc283SCraig Rodrigues.Fl o Cm nfsv2
3654b5bc283SCraig Rodrigues.It Fl 3
3664b5bc283SCraig RodriguesSame as
3674b5bc283SCraig Rodrigues.Fl o Cm nfsv3
3684b5bc283SCraig Rodrigues.It Fl D
3694b5bc283SCraig RodriguesSame as
3704b5bc283SCraig Rodrigues.Fl o Cm deadthresh
3714b5bc283SCraig Rodrigues.It Fl I
3724b5bc283SCraig RodriguesSame as
3734b5bc283SCraig Rodrigues.Fl o Cm readdirsize Ns = Ns Aq Ar value
3744b5bc283SCraig Rodrigues.It Fl L
3754b5bc283SCraig RodriguesSame as
3764b5bc283SCraig Rodrigues.Fl o Cm nolockd
3774b5bc283SCraig Rodrigues.It Fl N
3784b5bc283SCraig RodriguesSame as
3794b5bc283SCraig Rodrigues.Fl o Cm noresvport
3804b5bc283SCraig Rodrigues.It Fl P
3814b5bc283SCraig RodriguesUse a reserved socket port number.
3824b5bc283SCraig RodriguesThis flag is obsolete, and only retained for compatibility reasons.
3834b5bc283SCraig Rodrigues(For the rare case where the client has a trusted root account
3844b5bc283SCraig Rodriguesbut untrustworthy users and the network cables are in secure areas this does
3854b5bc283SCraig Rodrigueshelp, but for normal desktop clients this does not apply.)
3864b5bc283SCraig Rodrigues.It Fl R
3874b5bc283SCraig RodriguesSame as
3884b5bc283SCraig Rodrigues.Fl o Cm retrycnt Ns = Ns Aq Ar value
3894b5bc283SCraig Rodrigues.It Fl T
3904b5bc283SCraig RodriguesSame as
3914b5bc283SCraig Rodrigues.Fl o Cm tcp
3924b5bc283SCraig Rodrigues.It Fl U
3934b5bc283SCraig RodriguesSame as
3944b5bc283SCraig Rodrigues.Fl o Cm mntudp
3954b5bc283SCraig Rodrigues.It Fl a
3964b5bc283SCraig RodriguesSame as
3974b5bc283SCraig Rodrigues.Fl o Cm readahead Ns = Ns Aq Ar value
3984b5bc283SCraig Rodrigues.It Fl b
3994b5bc283SCraig RodriguesSame as
4004b5bc283SCraig Rodrigues.Fl o Cm bg
4014b5bc283SCraig Rodrigues.It Fl c
4024b5bc283SCraig RodriguesSame as
4034b5bc283SCraig Rodrigues.Fl o Cm noconn
4044b5bc283SCraig Rodrigues.It Fl d
4054b5bc283SCraig RodriguesSame as
4064b5bc283SCraig Rodrigues.Fl o Cm dumbtimer
4074b5bc283SCraig Rodrigues.It Fl g
4084b5bc283SCraig RodriguesSame as
4094b5bc283SCraig Rodrigues.Fl o Cm maxgroups
4104b5bc283SCraig Rodrigues.It Fl i
4114b5bc283SCraig RodriguesSame as
4124b5bc283SCraig Rodrigues.Fl o Cm intr
4134b5bc283SCraig Rodrigues.It Fl l
4144b5bc283SCraig RodriguesSame as
4154b5bc283SCraig Rodrigues.Fl o Cm rdirplus
4164b5bc283SCraig Rodrigues.It Fl r
4174b5bc283SCraig RodriguesSame as
4184b5bc283SCraig Rodrigues.Fl o Cm rsize Ns = Ns Aq Ar value
4194b5bc283SCraig Rodrigues.It Fl s
4204b5bc283SCraig RodriguesSame as
4214b5bc283SCraig Rodrigues.Fl o Cm soft
4224b5bc283SCraig Rodrigues.It Fl t
4234b5bc283SCraig RodriguesSame as
4244b5bc283SCraig Rodrigues.Fl o Cm retransmit Ns = Ns Aq Ar value
4254b5bc283SCraig Rodrigues.It Fl w
4264b5bc283SCraig RodriguesSame as
4274b5bc283SCraig Rodrigues.Fl o Cm wsize Ns = Ns Aq Ar value
4288fae3551SRodney W. Grimes.It Fl x
4294b5bc283SCraig RodriguesSame as
4304b5bc283SCraig Rodrigues.Fl o Cm retrans Ns = Ns Aq Ar value
4318fae3551SRodney W. Grimes.El
4328fae3551SRodney W. Grimes.Sh SEE ALSO
4330c269d1fSCraig Rodrigues.Xr nmount 2 ,
4348fae3551SRodney W. Grimes.Xr unmount 2 ,
435011981fdSRick Macklem.Xr nfsv4 4 ,
4368fae3551SRodney W. Grimes.Xr fstab 5 ,
437011981fdSRick Macklem.Xr gssd 8 ,
4382a2d4405SMatthew Dillon.Xr mount 8 ,
439ffc717e2SSheldon Hearn.Xr nfsd 8 ,
440893d2b85SSheldon Hearn.Xr nfsiod 8 ,
441893d2b85SSheldon Hearn.Xr showmount 8
442011981fdSRick Macklem.Sh BUGS
443011981fdSRick MacklemSince nfsv4 performs open/lock operations that have their ordering strictly
444011981fdSRick Macklemenforced by the server, the options
445011981fdSRick Macklem.Cm intr
446011981fdSRick Macklemand
447011981fdSRick Macklem.Cm soft
448011981fdSRick Macklemcannot be safely used.
449011981fdSRick Macklem.Cm hard
450011981fdSRick Macklemnfsv4 mounts are strongly recommended.
451