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. 12fbbd9655SWarner Losh.\" 3. 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.\" 31547a4dbaSRick Macklem.Dd December 14, 2019 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 . 62547a4dbaSRick MacklemFor NFSv2 and NFSv3, 63547a4dbaSRick Macklemit implements the mount protocol as described in RFC 1094, Appendix A and 64547a4dbaSRick MacklemRFC 1813, Appendix I. 65547a4dbaSRick MacklemFor NFSv4, it uses the NFSv4 protocol as described in RFC 7530, RFC 5661 and 66547a4dbaSRick MacklemRFC 7862. 678fae3551SRodney W. Grimes.Pp 682bc53e11SIan DowseBy default, 692bc53e11SIan Dowse.Nm 702bc53e11SIan Dowsekeeps retrying until the mount succeeds. 712bc53e11SIan DowseThis behaviour is intended for file systems listed in 722bc53e11SIan Dowse.Xr fstab 5 732bc53e11SIan Dowsethat are critical to the boot process. 742bc53e11SIan DowseFor non-critical file systems, the 754b5bc283SCraig Rodrigues.Cm bg 762bc53e11SIan Dowseand 774b5bc283SCraig Rodrigues.Cm retrycnt 784b5bc283SCraig Rodriguesoptions provide mechanisms to prevent the boot process from hanging 792bc53e11SIan Dowseif the server is unavailable. 802bc53e11SIan Dowse.Pp 812bc53e11SIan DowseIf the server becomes unresponsive while an NFS file system is 822bc53e11SIan Dowsemounted, any new or outstanding file operations on that file system 832bc53e11SIan Dowsewill hang uninterruptibly until the server comes back. 842bc53e11SIan DowseTo modify this default behaviour, see the 854b5bc283SCraig Rodrigues.Cm intr 862bc53e11SIan Dowseand 874b5bc283SCraig Rodrigues.Cm soft 884b5bc283SCraig Rodriguesoptions. 892bc53e11SIan Dowse.Pp 908fae3551SRodney W. GrimesThe options are: 918fae3551SRodney W. Grimes.Bl -tag -width indent 924b5bc283SCraig Rodrigues.It Fl o 934b5bc283SCraig RodriguesOptions are specified with a 944b5bc283SCraig Rodrigues.Fl o 954b5bc283SCraig Rodriguesflag followed by a comma separated string of options. 964b5bc283SCraig RodriguesSee the 974b5bc283SCraig Rodrigues.Xr mount 8 984b5bc283SCraig Rodriguesman page for possible options and their meanings. 994b5bc283SCraig RodriguesThe following NFS specific options are also available: 1004b5bc283SCraig Rodrigues.Bl -tag -width indent 1014b5bc283SCraig Rodrigues.It Cm acregmin Ns = Ns Aq Ar seconds 1024b5bc283SCraig Rodrigues.It Cm acregmax Ns = Ns Aq Ar seconds 1034b5bc283SCraig Rodrigues.It Cm acdirmin Ns = Ns Aq Ar seconds 1044b5bc283SCraig Rodrigues.It Cm acdirmax Ns = Ns Aq Ar seconds 1054b5bc283SCraig RodriguesWhen attributes of files are cached, a timeout calculated to determine 1064b5bc283SCraig Rodrigueswhether a given cache entry has expired. 1074b5bc283SCraig RodriguesThese four values determine the upper and lower bounds of the timeouts for 1084b5bc283SCraig Rodrigues.Dq directory 1094b5bc283SCraig Rodriguesattributes and 1104b5bc283SCraig Rodrigues.Dq regular 1114b5bc283SCraig Rodrigues(ie: everything else). 1124b5bc283SCraig RodriguesThe default values are 3 -> 60 seconds 1134b5bc283SCraig Rodriguesfor regular files, and 30 -> 60 seconds for directories. 1144b5bc283SCraig RodriguesThe algorithm to calculate the timeout is based on the age of the file. 1154b5bc283SCraig RodriguesThe older the file, 1164b5bc283SCraig Rodriguesthe longer the cache is considered valid, subject to the limits above. 1175a06ac35SEdward Tomasz Napierala.It Cm actimeo Ns = Ns Aq Ar seconds 1185a06ac35SEdward Tomasz NapieralaSet four cache timeouts above to specified value. 119b54de212SRick Macklem.It Cm allgssname 120b54de212SRick MacklemThis option can be used along with 121b54de212SRick Macklem.Fl o Cm gssname 122b54de212SRick Macklemto specify that all operations should use the host-based initiator 123b54de212SRick Macklemcredential. 124b54de212SRick MacklemThis may be used for clients that run system daemons that need to 125b54de212SRick Macklemaccess files on the NFSv4 mounted volume. 1264b5bc283SCraig Rodrigues.It Cm bg 1274b5bc283SCraig RodriguesIf an initial attempt to contact the server fails, fork off a child to keep 1284b5bc283SCraig Rodriguestrying the mount in the background. 1294b5bc283SCraig RodriguesUseful for 1304b5bc283SCraig Rodrigues.Xr fstab 5 , 1314b5bc283SCraig Rodrigueswhere the file system mount is not critical to multiuser operation. 1324b5bc283SCraig Rodrigues.It Cm deadthresh Ns = Ns Aq Ar value 13391196234SPeter WemmSet the 1348fae3551SRodney W. Grimes.Dq "dead server threshold" 13591196234SPeter Wemmto the specified number of round trip timeout intervals before a 13691196234SPeter Wemm.Dq "server not responding" 13791196234SPeter Wemmmessage is displayed. 1384b5bc283SCraig Rodrigues.It Cm dumbtimer 1394b5bc283SCraig RodriguesTurn off the dynamic retransmit timeout estimator. 1404b5bc283SCraig RodriguesThis may be useful for UDP mounts that exhibit high retry rates, 1414b5bc283SCraig Rodriguessince it is possible that the dynamically estimated timeout interval is too 1424b5bc283SCraig Rodriguesshort. 1434b5bc283SCraig Rodrigues.It Cm fg 1444b5bc283SCraig RodriguesSame as not specifying 1454b5bc283SCraig Rodrigues.Cm bg . 146b54de212SRick Macklem.It Cm gssname Ns = Ns Aq Ar service-principal-name 147b54de212SRick MacklemThis option can be used with the KerberosV security flavors for NFSv4 mounts 148b54de212SRick Macklemto specify the 149b54de212SRick Macklem.Dq "service-principal-name" 150b54de212SRick Macklemof a host-based entry in the default 151b54de212SRick Macklemkeytab file that is used for system operations. 152b54de212SRick MacklemIt allows the mount to be performed by 153b54de212SRick Macklem.Dq "root" 154b54de212SRick Macklemand avoids problems with 155b54de212SRick Macklemcached credentials for the system operations expiring. 156b54de212SRick MacklemThe 157b54de212SRick Macklem.Dq "service-prinicpal-name" 158b54de212SRick Macklemshould be specified without instance or domain and is typically 159b54de212SRick Macklem.Dq "host" , 160b54de212SRick Macklem.Dq "nfs" 161b54de212SRick Macklemor 162*d511702bSGordon Bergling.Dq "root" , 163*d511702bSGordon Berglingalthough the form 164*d511702bSGordon Bergling.Sm off 165*d511702bSGordon Bergling.Aq Ar service 166*d511702bSGordon Bergling@ 167*d511702bSGordon Bergling.Aq Ar fqdn 168*d511702bSGordon Bergling.Sm on 169*d511702bSGordon Berglingcan also be used if the local system's 170*d511702bSGordon Bergling.Xr gethostname 3 171*d511702bSGordon Berglingvalue does not match the host-based principal in the keytab. 1724b5bc283SCraig Rodrigues.It Cm hard 1734b5bc283SCraig RodriguesSame as not specifying 1744b5bc283SCraig Rodrigues.Cm soft . 1754b5bc283SCraig Rodrigues.It Cm intr 1764b5bc283SCraig RodriguesMake the mount interruptible, which implies that file system calls that 1774b5bc283SCraig Rodriguesare delayed due to an unresponsive server will fail with EINTR when a 1784b5bc283SCraig Rodriguestermination signal is posted for the process. 1794b5bc283SCraig Rodrigues.It Cm maxgroups Ns = Ns Aq Ar value 1804b5bc283SCraig RodriguesSet the maximum size of the group list for the credentials to the 1814b5bc283SCraig Rodriguesspecified value. 1824b5bc283SCraig RodriguesThis should be used for mounts on old servers that cannot handle a 1834b5bc283SCraig Rodriguesgroup list size of 16, as specified in RFC 1057. 1844b5bc283SCraig RodriguesTry 8, if users in a lot of groups cannot get response from the mount 1854b5bc283SCraig Rodriguespoint. 1864b5bc283SCraig Rodrigues.It Cm mntudp 1874b5bc283SCraig RodriguesForce the mount protocol to use UDP transport, even for TCP NFS mounts. 1884b5bc283SCraig Rodrigues(Necessary for some old 1894b5bc283SCraig Rodrigues.Bx 1904b5bc283SCraig Rodriguesservers.) 1910b17c7beSJohn Baldwin.It Cm nametimeo Ns = Ns Aq Ar value 1920b17c7beSJohn BaldwinOverride the default of NFS_DEFAULT_NAMETIMEO for the timeout (in seconds) 1930b17c7beSJohn Baldwinfor positive name cache entries. 1940b17c7beSJohn BaldwinIf this is set to 0 it disables positive name caching for the mount point. 19530607997SRick Macklem.It Cm negnametimeo Ns = Ns Aq Ar value 19630607997SRick MacklemOverride the default of NFS_DEFAULT_NEGNAMETIMEO for the timeout (in seconds) 1970fcf43f6SAllan Judefor negative name cache entries. 1980fcf43f6SAllan JudeIf this is set to 0 it disables negative name caching for the mount point. 1994b5bc283SCraig Rodrigues.It Cm nfsv2 2004b5bc283SCraig RodriguesUse the NFS Version 2 protocol (the default is to try version 3 first 2014b5bc283SCraig Rodriguesthen version 2). 2024b5bc283SCraig RodriguesNote that NFS version 2 has a file size limit of 2 gigabytes. 2034b5bc283SCraig Rodrigues.It Cm nfsv3 2044b5bc283SCraig RodriguesUse the NFS Version 3 protocol. 205011981fdSRick Macklem.It Cm nfsv4 206011981fdSRick MacklemUse the NFS Version 4 protocol. 20725135859SRick MacklemThis option will force the mount to use 208011981fdSRick MacklemTCP transport. 2095e70ce7aSRick Macklem.It Cm minorversion Ns = Ns Aq Ar value 2105e70ce7aSRick MacklemOverride the default of 0 for the minor version of the NFS Version 4 protocol. 211547a4dbaSRick MacklemThe minor versions other than 0 currently supported are 1 and 2. 2125e70ce7aSRick MacklemThis option is only meaningful when used with the 2135e70ce7aSRick Macklem.Cm nfsv4 2145e70ce7aSRick Macklemoption. 21519625f29SRick Macklem.It Cm oneopenown 216547a4dbaSRick MacklemMake a minor version 1 or 2 of the NFS Version 4 protocol mount use a single 217547a4dbaSRick MacklemOpenOwner for all Opens. 21819625f29SRick MacklemThis may be useful for a server with a very low limit on OpenOwners, such as 21919625f29SRick MacklemAmazonEFS. 220547a4dbaSRick MacklemIt ca only be used with an NFSv4.1 or NFSv4.2 mount. 22119625f29SRick MacklemIt may not work correctly when Delegations are being issued by a server, 22219625f29SRick Macklembut note that the AmazonEFS server does not issued delegations at this time. 2235e70ce7aSRick Macklem.It Cm pnfs 224547a4dbaSRick MacklemEnable support for parallel NFS (pNFS) for minor version 1 or 2 of the 2255e70ce7aSRick MacklemNFS Version 4 protocol. 2265e70ce7aSRick MacklemThis option is only meaningful when used with the 2275e70ce7aSRick Macklem.Cm minorversion 2285e70ce7aSRick Macklemoption. 2295a06ac35SEdward Tomasz Napierala.It Cm noac 2305a06ac35SEdward Tomasz NapieralaDisable attribute caching. 2314b5bc283SCraig Rodrigues.It Cm noconn 2324b5bc283SCraig RodriguesFor UDP mount points, do not do a 2334b5bc283SCraig Rodrigues.Xr connect 2 . 2344b5bc283SCraig RodriguesThis must be used if the server does not reply to requests from the standard 2354b5bc283SCraig RodriguesNFS port number 2049 or replies to requests using a different IP address 2364b5bc283SCraig Rodrigues(which can occur if the server is multi-homed). 2374b5bc283SCraig RodriguesSetting the 2384b5bc283SCraig Rodrigues.Va vfs.nfs.nfs_ip_paranoia 2394b5bc283SCraig Rodriguessysctl to 0 will make this option the default. 240e2f2b370SRuslan Ermilov.It Cm nocto 241e2f2b370SRuslan ErmilovNormally, NFS clients maintain the close-to-open cache coherency. 242e2f2b370SRuslan ErmilovThis works by flushing at close time and checking at open time. 243e2f2b370SRuslan ErmilovChecking at open time is implemented by getting attributes from 244e2f2b370SRuslan Ermilovthe server and purging the data cache if they do not match 245e2f2b370SRuslan Ermilovattributes cached by the client. 246e2f2b370SRuslan Ermilov.Pp 247e2f2b370SRuslan ErmilovThis option disables checking at open time. 248e2f2b370SRuslan ErmilovIt may improve performance for read-only mounts, 249e2f2b370SRuslan Ermilovbut should only be used if the data on the server changes rarely. 250e2f2b370SRuslan ErmilovBe sure to understand the consequences before enabling this option. 2514b5bc283SCraig Rodrigues.It Cm noinet4 , noinet6 2524b5bc283SCraig RodriguesDisables 2534b5bc283SCraig Rodrigues.Dv AF_INET 2544b5bc283SCraig Rodriguesor 2554b5bc283SCraig Rodrigues.Dv AF_INET6 2564b5bc283SCraig Rodriguesconnections. 2574b5bc283SCraig RodriguesUseful for hosts that have 2584b5bc283SCraig Rodriguesboth an A record and an AAAA record for the same name. 2594b5bc283SCraig Rodrigues.It Cm nolockd 26013190d87SAlfred PerlsteinDo 26113190d87SAlfred Perlstein.Em not 26213190d87SAlfred Perlsteinforward 26313190d87SAlfred Perlstein.Xr fcntl 2 264547a4dbaSRick Macklemlocks over the wire via the NLM protocol for NFSv3 mounts. 26513190d87SAlfred PerlsteinAll locks will be local and not seen by the server 266547a4dbaSRick Macklemand likewise not seen by other NFS clients for NFSv3 mounts. 267a7475cf4SRuslan ErmilovThis removes the need to run the 26813190d87SAlfred Perlstein.Xr rpcbind 8 26913190d87SAlfred Perlsteinservice and the 27013190d87SAlfred Perlstein.Xr rpc.statd 8 27113190d87SAlfred Perlsteinand 27213190d87SAlfred Perlstein.Xr rpc.lockd 8 27313190d87SAlfred Perlsteinservers on the client. 2743fd0605eSAlfred PerlsteinNote that this option will only be honored when performing the 2753fd0605eSAlfred Perlsteininitial mount, it will be silently ignored if used while updating 2763fd0605eSAlfred Perlsteinthe mount options. 277547a4dbaSRick MacklemAlso, note that NFSv4 mounts do not use these daemons and handle locks over the 278547a4dbaSRick Macklemwire in the NFSv4 protocol. 279547a4dbaSRick MacklemAs such, this option is meaningless for NFSv4 mounts. 280a8e2866cSRick Macklem.It Cm noncontigwr 281a8e2866cSRick MacklemThis mount option allows the NFS client to 282a8e2866cSRick Macklemcombine non-contiguous byte ranges being written 283a8e2866cSRick Macklemsuch that the dirty byte range becomes a superset of the bytes 284a8e2866cSRick Macklemthat are dirty. 285a8e2866cSRick MacklemThis reduces the number of writes significantly for software 286a8e2866cSRick Macklembuilds. 2870fcf43f6SAllan JudeThe merging of byte ranges is not done if the file has been file 288a8e2866cSRick Macklemlocked, since most applications modifying a file from multiple 289a8e2866cSRick Macklemclients will use file locking. 290a8e2866cSRick MacklemAs such, this option could result in a corrupted file for the 291a8e2866cSRick Macklemrare case of an application modifying the file from multiple 292a8e2866cSRick Macklemclients concurrently without using file locking. 293011981fdSRick Macklem.It Cm principal 294011981fdSRick MacklemFor the RPCSEC_GSS security flavors, such as krb5, krb5i and krb5p, 295011981fdSRick Macklemthis option sets the name of the host based principal name expected 2960fcf43f6SAllan Judeby the server. 2970fcf43f6SAllan JudeThis option overrides the default, which will be ``nfs@<server-fqdn>'' 2980fcf43f6SAllan Judeand should normally be sufficient. 2994b5bc283SCraig Rodrigues.It Cm noresvport 300cc75b131SJoerg WunschDo 301cc75b131SJoerg Wunsch.Em not 302cc75b131SJoerg Wunschuse a reserved socket port number (see below). 3034b5bc283SCraig Rodrigues.It Cm port Ns = Ns Aq Ar port_number 3044b5bc283SCraig RodriguesUse specified port number for NFS requests. 3054b5bc283SCraig RodriguesThe default is to query the portmapper for the NFS port. 3065a06ac35SEdward Tomasz Napierala.It Cm proto Ns = Ns Aq Ar protocol 3075a06ac35SEdward Tomasz NapieralaSpecify transport protocol version to use. 3085a06ac35SEdward Tomasz NapieralaCurrently, they are: 3095a06ac35SEdward Tomasz Napierala.Bd -literal 3105a06ac35SEdward Tomasz Napieralaudp - Use UDP over IPv4 3115a06ac35SEdward Tomasz Napieralatcp - Use TCP over IPv4 3125a06ac35SEdward Tomasz Napieralaudp6 - Use UDP over IPv6 3135a06ac35SEdward Tomasz Napieralatcp6 - Use TCP over IPv6 3145a06ac35SEdward Tomasz Napierala.Ed 3154b5bc283SCraig Rodrigues.It Cm rdirplus 316011981fdSRick MacklemUsed with NFSV3 to specify that the \fBReaddirPlus\fR RPC should 3178fae3551SRodney W. Grimesbe used. 318011981fdSRick MacklemFor NFSV4, setting this option has a similar effect, in that it will make 319011981fdSRick Macklemthe Readdir Operation get more attributes. 3208fae3551SRodney W. GrimesThis option reduces RPC traffic for cases such as 3218fae3551SRodney W. Grimes.Dq "ls -l" , 322a62dc406SDoug Rabsonbut tends to flood the attribute and name caches with prefetched entries. 323ef8f7ac9SSheldon HearnTry this option and see whether performance improves or degrades. 324ef8f7ac9SSheldon HearnProbably 325a62dc406SDoug Rabsonmost useful for client to server network interconnects with a large bandwidth 326a62dc406SDoug Rabsontimes delay product. 3274b5bc283SCraig Rodrigues.It Cm readahead Ns = Ns Aq Ar value 3284b5bc283SCraig RodriguesSet the read-ahead count to the specified value. 3294b5bc283SCraig RodriguesThis may be in the range of 0 - 4, and determines how many blocks 3304b5bc283SCraig Rodrigueswill be read ahead when a large file is being read sequentially. 3314b5bc283SCraig RodriguesTrying a value greater than 1 for this is suggested for 3324b5bc283SCraig Rodriguesmounts with a large bandwidth * delay product. 3334b5bc283SCraig Rodrigues.It Cm readdirsize Ns = Ns Aq Ar value 3344b5bc283SCraig RodriguesSet the readdir read size to the specified value. 3354b5bc283SCraig RodriguesThe value should normally 3364b5bc283SCraig Rodriguesbe a multiple of 3374b5bc283SCraig Rodrigues.Dv DIRBLKSIZ 3384b5bc283SCraig Rodriguesthat is <= the read size for the mount. 339a7475cf4SRuslan Ermilov.It Cm resvport 3404b5bc283SCraig RodriguesUse a reserved socket port number. 3414b5bc283SCraig RodriguesThis flag is obsolete, and only retained for compatibility reasons. 3424b5bc283SCraig RodriguesReserved port numbers are used by default now. 3434b5bc283SCraig Rodrigues(For the rare case where the client has a trusted root account 3444b5bc283SCraig Rodriguesbut untrustworthy users and the network cables are in secure areas this does 3454b5bc283SCraig Rodrigueshelp, but for normal desktop clients this does not apply.) 3464b5bc283SCraig Rodrigues.It Cm retrans Ns = Ns Aq Ar value 3474b5bc283SCraig RodriguesSet the retransmit timeout count for soft mounts to the specified value. 3484b5bc283SCraig Rodrigues.It Cm retrycnt Ns = Ns Aq Ar count 3494b5bc283SCraig RodriguesSet the mount retry count to the specified value. 3504b5bc283SCraig RodriguesThe default is a retry count of zero, which means to keep retrying 3514b5bc283SCraig Rodriguesforever. 3524b5bc283SCraig RodriguesThere is a 60 second delay between each attempt. 3534b5bc283SCraig Rodrigues.It Cm rsize Ns = Ns Aq Ar value 3548fae3551SRodney W. GrimesSet the read data size to the specified value. 355a62dc406SDoug RabsonIt should normally be a power of 2 greater than or equal to 1024. 3568fae3551SRodney W. GrimesThis should be used for UDP mounts when the 3578fae3551SRodney W. Grimes.Dq "fragments dropped due to timeout" 3588fae3551SRodney W. Grimesvalue is getting large while actively using a mount point. 3598fae3551SRodney W. Grimes(Use 3608fae3551SRodney W. Grimes.Xr netstat 1 3618fae3551SRodney W. Grimeswith the 3628fae3551SRodney W. Grimes.Fl s 3638fae3551SRodney W. Grimesoption to see what the 3648fae3551SRodney W. Grimes.Dq "fragments dropped due to timeout" 3658fae3551SRodney W. Grimesvalue is.) 366011981fdSRick Macklem.It Cm sec Ns = Ns Aq Ar flavor 367011981fdSRick MacklemThis option specifies what security flavor should be used for the mount. 368011981fdSRick MacklemCurrently, they are: 369011981fdSRick Macklem.Bd -literal 370011981fdSRick Macklemkrb5 - Use KerberosV authentication 371011981fdSRick Macklemkrb5i - Use KerberosV authentication and 372011981fdSRick Macklem apply integrity checksums to RPCs 373011981fdSRick Macklemkrb5p - Use KerberosV authentication and 374011981fdSRick Macklem encrypt the RPC data 375011981fdSRick Macklemsys - The default AUTH_SYS, which uses a 376011981fdSRick Macklem uid + gid list authenticator 377011981fdSRick Macklem.Ed 3784b5bc283SCraig Rodrigues.It Cm soft 3798fae3551SRodney W. GrimesA soft mount, which implies that file system calls will fail 380a7475cf4SRuslan Ermilovafter 381a7475cf4SRuslan Ermilov.Ar retrycnt 382a7475cf4SRuslan Ermilovround trip timeout intervals. 3834b5bc283SCraig Rodrigues.It Cm tcp 3844b5bc283SCraig RodriguesUse TCP transport. 3854b5bc283SCraig RodriguesThis is the default option, as it provides for increased reliability on both 3864b5bc283SCraig RodriguesLAN and WAN configurations compared to UDP. 3874b5bc283SCraig RodriguesSome old NFS servers do not support this method; UDP mounts may be required 3884b5bc283SCraig Rodriguesfor interoperability. 3894b5bc283SCraig Rodrigues.It Cm timeout Ns = Ns Aq Ar value 3902a9b29b3SEdward Tomasz NapieralaSet the initial retransmit timeout to the specified value, 3912a9b29b3SEdward Tomasz Napieralaexpressed in tenths of a second. 3928fae3551SRodney W. GrimesMay be useful for fine tuning UDP mounts over internetworks 3938fae3551SRodney W. Grimeswith high packet loss rates or an overloaded server. 3948fae3551SRodney W. GrimesTry increasing the interval if 3958fae3551SRodney W. Grimes.Xr nfsstat 1 3968fae3551SRodney W. Grimesshows high retransmit rates while the file system is active or reducing the 3978fae3551SRodney W. Grimesvalue if there is a low retransmit rate but long response delay observed. 398a7475cf4SRuslan Ermilov(Normally, the 3994b5bc283SCraig Rodrigues.Cm dumbtimer 400a7475cf4SRuslan Ermilovoption should be specified when using this option to manually 401a62dc406SDoug Rabsontune the timeout 402a62dc406SDoug Rabsoninterval.) 4035a06ac35SEdward Tomasz Napierala.It Cm timeo Ns = Ns Aq Ar value 4045a06ac35SEdward Tomasz NapieralaAlias for 4055a06ac35SEdward Tomasz Napierala.Cm timeout . 4064b5bc283SCraig Rodrigues.It Cm udp 4074b5bc283SCraig RodriguesUse UDP transport. 408528c159fSBjoern A. Zeeb.It Cm vers Ns = Ns Aq Ar vers_number 409528c159fSBjoern A. ZeebUse the specified version number for NFS requests. 410528c159fSBjoern A. ZeebSee the 411528c159fSBjoern A. Zeeb.Cm nfsv2 , 412528c159fSBjoern A. Zeeb.Cm nfsv3 , 413528c159fSBjoern A. Zeeband 414528c159fSBjoern A. Zeeb.Cm nfsv4 415528c159fSBjoern A. Zeeboptions for details. 416840fb1c0SJohn Baldwin.It Cm wcommitsize Ns = Ns Aq Ar value 417840fb1c0SJohn BaldwinSet the maximum pending write commit size to the specified value. 418840fb1c0SJohn BaldwinThis determines the maximum amount of pending write data that the NFS 419840fb1c0SJohn Baldwinclient is willing to cache for each file. 4204b5bc283SCraig Rodrigues.It Cm wsize Ns = Ns Aq Ar value 4218fae3551SRodney W. GrimesSet the write data size to the specified value. 4229806e231SRuslan ErmilovDitto the comments w.r.t.\& the 4234b5bc283SCraig Rodrigues.Cm rsize 4248fae3551SRodney W. Grimesoption, but using the 4258fae3551SRodney W. Grimes.Dq "fragments dropped due to timeout" 4268fae3551SRodney W. Grimesvalue on the server instead of the client. 4278fae3551SRodney W. GrimesNote that both the 4284b5bc283SCraig Rodrigues.Cm rsize 4298fae3551SRodney W. Grimesand 4304b5bc283SCraig Rodrigues.Cm wsize 4318fae3551SRodney W. Grimesoptions should only be used as a last ditch effort at improving performance 4328fae3551SRodney W. Grimeswhen mounting servers that do not support TCP mounts. 4334b5bc283SCraig Rodrigues.El 4344b5bc283SCraig Rodrigues.El 4354b5bc283SCraig Rodrigues.Sh COMPATIBILITY 4364b5bc283SCraig RodriguesThe following command line flags are equivalent to 4374b5bc283SCraig Rodrigues.Fl o 4384b5bc283SCraig Rodriguesnamed options and are supported for compatibility with older 4394b5bc283SCraig Rodriguesinstallations. 4404b5bc283SCraig Rodrigues.Bl -tag -width indent 4414b5bc283SCraig Rodrigues.It Fl 2 4424b5bc283SCraig RodriguesSame as 4434b5bc283SCraig Rodrigues.Fl o Cm nfsv2 4444b5bc283SCraig Rodrigues.It Fl 3 4454b5bc283SCraig RodriguesSame as 4464b5bc283SCraig Rodrigues.Fl o Cm nfsv3 4474b5bc283SCraig Rodrigues.It Fl D 4484b5bc283SCraig RodriguesSame as 4494b5bc283SCraig Rodrigues.Fl o Cm deadthresh 4504b5bc283SCraig Rodrigues.It Fl I 4514b5bc283SCraig RodriguesSame as 4524b5bc283SCraig Rodrigues.Fl o Cm readdirsize Ns = Ns Aq Ar value 4534b5bc283SCraig Rodrigues.It Fl L 4544b5bc283SCraig RodriguesSame as 4554b5bc283SCraig Rodrigues.Fl o Cm nolockd 4564b5bc283SCraig Rodrigues.It Fl N 4574b5bc283SCraig RodriguesSame as 4584b5bc283SCraig Rodrigues.Fl o Cm noresvport 4594b5bc283SCraig Rodrigues.It Fl P 4604b5bc283SCraig RodriguesUse a reserved socket port number. 4614b5bc283SCraig RodriguesThis flag is obsolete, and only retained for compatibility reasons. 4624b5bc283SCraig Rodrigues(For the rare case where the client has a trusted root account 4634b5bc283SCraig Rodriguesbut untrustworthy users and the network cables are in secure areas this does 4644b5bc283SCraig Rodrigueshelp, but for normal desktop clients this does not apply.) 4654b5bc283SCraig Rodrigues.It Fl R 4664b5bc283SCraig RodriguesSame as 4674b5bc283SCraig Rodrigues.Fl o Cm retrycnt Ns = Ns Aq Ar value 4684b5bc283SCraig Rodrigues.It Fl T 4694b5bc283SCraig RodriguesSame as 4704b5bc283SCraig Rodrigues.Fl o Cm tcp 4714b5bc283SCraig Rodrigues.It Fl U 4724b5bc283SCraig RodriguesSame as 4734b5bc283SCraig Rodrigues.Fl o Cm mntudp 4744b5bc283SCraig Rodrigues.It Fl a 4754b5bc283SCraig RodriguesSame as 4764b5bc283SCraig Rodrigues.Fl o Cm readahead Ns = Ns Aq Ar value 4774b5bc283SCraig Rodrigues.It Fl b 4784b5bc283SCraig RodriguesSame as 4794b5bc283SCraig Rodrigues.Fl o Cm bg 4804b5bc283SCraig Rodrigues.It Fl c 4814b5bc283SCraig RodriguesSame as 4824b5bc283SCraig Rodrigues.Fl o Cm noconn 4834b5bc283SCraig Rodrigues.It Fl d 4844b5bc283SCraig RodriguesSame as 4854b5bc283SCraig Rodrigues.Fl o Cm dumbtimer 4864b5bc283SCraig Rodrigues.It Fl g 4874b5bc283SCraig RodriguesSame as 4884b5bc283SCraig Rodrigues.Fl o Cm maxgroups 4894b5bc283SCraig Rodrigues.It Fl i 4904b5bc283SCraig RodriguesSame as 4914b5bc283SCraig Rodrigues.Fl o Cm intr 4924b5bc283SCraig Rodrigues.It Fl l 4934b5bc283SCraig RodriguesSame as 4944b5bc283SCraig Rodrigues.Fl o Cm rdirplus 4954b5bc283SCraig Rodrigues.It Fl r 4964b5bc283SCraig RodriguesSame as 4974b5bc283SCraig Rodrigues.Fl o Cm rsize Ns = Ns Aq Ar value 4984b5bc283SCraig Rodrigues.It Fl s 4994b5bc283SCraig RodriguesSame as 5004b5bc283SCraig Rodrigues.Fl o Cm soft 5014b5bc283SCraig Rodrigues.It Fl t 5024b5bc283SCraig RodriguesSame as 5034b5bc283SCraig Rodrigues.Fl o Cm retransmit Ns = Ns Aq Ar value 5044b5bc283SCraig Rodrigues.It Fl w 5054b5bc283SCraig RodriguesSame as 5064b5bc283SCraig Rodrigues.Fl o Cm wsize Ns = Ns Aq Ar value 5078fae3551SRodney W. Grimes.It Fl x 5084b5bc283SCraig RodriguesSame as 5094b5bc283SCraig Rodrigues.Fl o Cm retrans Ns = Ns Aq Ar value 5108fae3551SRodney W. Grimes.El 511528c159fSBjoern A. Zeeb.Pp 512528c159fSBjoern A. ZeebThe following 513528c159fSBjoern A. Zeeb.Fl o 514528c159fSBjoern A. Zeebnamed options are equivalent to other 515528c159fSBjoern A. Zeeb.Fl o 516528c159fSBjoern A. Zeebnamed options and are supported for compatibility with other 517528c159fSBjoern A. Zeeboperating systems (e.g., Linux, Solaris, and OSX) to ease usage of 518528c159fSBjoern A. Zeeb.Xr autofs 5 519528c159fSBjoern A. Zeebsupport. 520528c159fSBjoern A. Zeeb.Bl -tag -width indent 521528c159fSBjoern A. Zeeb.It Fl o Cm vers Ns = Ns 2 522528c159fSBjoern A. ZeebSame as 523528c159fSBjoern A. Zeeb.Fl o Cm nfsv2 524528c159fSBjoern A. Zeeb.It Fl o Cm vers Ns = Ns 3 525528c159fSBjoern A. ZeebSame as 526528c159fSBjoern A. Zeeb.Fl o Cm nfsv3 527528c159fSBjoern A. Zeeb.It Fl o Cm vers Ns = Ns 4 528528c159fSBjoern A. ZeebSame as 529528c159fSBjoern A. Zeeb.Fl o Cm nfsv4 530528c159fSBjoern A. Zeeb.El 5318fae3551SRodney W. Grimes.Sh SEE ALSO 5320c269d1fSCraig Rodrigues.Xr nmount 2 , 5338fae3551SRodney W. Grimes.Xr unmount 2 , 534011981fdSRick Macklem.Xr nfsv4 4 , 5358fae3551SRodney W. Grimes.Xr fstab 5 , 536011981fdSRick Macklem.Xr gssd 8 , 5372a2d4405SMatthew Dillon.Xr mount 8 , 538ffc717e2SSheldon Hearn.Xr nfsd 8 , 539893d2b85SSheldon Hearn.Xr nfsiod 8 , 540893d2b85SSheldon Hearn.Xr showmount 8 5410fcf43f6SAllan Jude.Sh HISTORY 5420fcf43f6SAllan JudeA version of the 5430fcf43f6SAllan Jude.Nm 5440fcf43f6SAllan Judeutility appeared in 5450fcf43f6SAllan Jude.Bx 4.4 . 546011981fdSRick Macklem.Sh BUGS 547011981fdSRick MacklemSince nfsv4 performs open/lock operations that have their ordering strictly 548011981fdSRick Macklemenforced by the server, the options 549011981fdSRick Macklem.Cm intr 550011981fdSRick Macklemand 551011981fdSRick Macklem.Cm soft 552011981fdSRick Macklemcannot be safely used. 553011981fdSRick Macklem.Cm hard 554011981fdSRick Macklemnfsv4 mounts are strongly recommended. 555