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.\" 3. All advertising materials mentioning features or use of this software 138fae3551SRodney W. Grimes.\" must display the following acknowledgement: 148fae3551SRodney W. Grimes.\" This product includes software developed by the University of 158fae3551SRodney W. Grimes.\" California, Berkeley and its contributors. 168fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 178fae3551SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 188fae3551SRodney W. Grimes.\" without specific prior written permission. 198fae3551SRodney W. Grimes.\" 208fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 218fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 228fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 238fae3551SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 248fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 258fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 268fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 278fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 288fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 298fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 308fae3551SRodney W. Grimes.\" SUCH DAMAGE. 318fae3551SRodney W. Grimes.\" 324a4c5285SPeter Wemm.\" @(#)mount_nfs.8 8.3 (Berkeley) 3/29/95 338fae3551SRodney W. Grimes.\" 347f3dea24SPeter Wemm.\" $FreeBSD$ 35f9dc1926SJoerg Wunsch.\"" 364a4c5285SPeter Wemm.Dd March 29, 1995 378fae3551SRodney W. Grimes.Dt MOUNT_NFS 8 389fe48c6eSRuslan Ermilov.Os 398fae3551SRodney W. Grimes.Sh NAME 408fae3551SRodney W. Grimes.Nm mount_nfs 418fae3551SRodney W. Grimes.Nd mount nfs file systems 428fae3551SRodney W. Grimes.Sh SYNOPSIS 437c7fb079SRuslan Ermilov.Nm 44cc75b131SJoerg Wunsch.Op Fl 23KNPTUbcdilqs 458fae3551SRodney W. Grimes.Op Fl D Ar deadthresh 46a62dc406SDoug Rabson.Op Fl I Ar readdirsize 478fae3551SRodney W. Grimes.Op Fl L Ar leaseterm 488fae3551SRodney W. Grimes.Op Fl R Ar retrycnt 498fae3551SRodney W. Grimes.Op Fl a Ar maxreadahead 508fae3551SRodney W. Grimes.Op Fl g Ar maxgroups 518fae3551SRodney W. Grimes.Op Fl m Ar realm 528fae3551SRodney W. Grimes.Op Fl o Ar options 538fae3551SRodney W. Grimes.Op Fl r Ar readsize 548fae3551SRodney W. Grimes.Op Fl t Ar timeout 558fae3551SRodney W. Grimes.Op Fl w Ar writesize 568fae3551SRodney W. Grimes.Op Fl x Ar retrans 57d0353b83SRuslan Ermilov.Ar rhost : Ns Ar path node 588fae3551SRodney W. Grimes.Sh DESCRIPTION 598fae3551SRodney W. GrimesThe 6046fc8f78SPhilippe Charnier.Nm 618fae3551SRodney W. Grimescommand 628fae3551SRodney W. Grimescalls the 638fae3551SRodney W. Grimes.Xr mount 2 64d0353b83SRuslan Ermilovsystem call to prepare and graft a remote nfs file system 65d0353b83SRuslan Ermilov.Pq Ar rhost : Ns Ar path 668fae3551SRodney W. Grimeson to the file system tree at the point 678fae3551SRodney W. Grimes.Ar node . 688fae3551SRodney W. GrimesThis command is normally executed by 698fae3551SRodney W. Grimes.Xr mount 8 . 70a62dc406SDoug RabsonIt implements the mount protocol as described in RFC 1094, Appendix A and 71a62dc406SDoug Rabson.%T "NFS: Network File System Version 3 Protocol Specification" , 72a62dc406SDoug RabsonAppendix I. 738fae3551SRodney W. Grimes.Pp 748fae3551SRodney W. GrimesThe options are: 758fae3551SRodney W. Grimes.Bl -tag -width indent 762cd1c32cSDoug Rabson.It Fl 2 772cd1c32cSDoug RabsonUse the NFS Version 2 protocol (the default is to try version 3 first 78e2b2b076SPeter Wemmthen version 2). Note that NFS version 2 has a file size limit of 2 79e2b2b076SPeter Wemmgigabytes. 80a62dc406SDoug Rabson.It Fl 3 812cd1c32cSDoug RabsonUse the NFS Version 3 protocol. 828fae3551SRodney W. Grimes.It Fl D 838fae3551SRodney W. GrimesUsed with NQNFS to set the 848fae3551SRodney W. Grimes.Dq "dead server threshold" 858fae3551SRodney W. Grimesto the specified number of round trip timeout intervals. 868fae3551SRodney W. GrimesAfter a 878fae3551SRodney W. Grimes.Dq "dead server threshold" 888fae3551SRodney W. Grimesof retransmit timeouts, 898fae3551SRodney W. Grimescached data for the unresponsive server is assumed to still be valid. 908fae3551SRodney W. GrimesValues may be set in the range of 1 - 9, with 9 referring to an 918fae3551SRodney W. Grimes.Dq "infinite dead threshold" 928fae3551SRodney W. Grimes(i.e. never assume cached data still valid). 938fae3551SRodney W. GrimesThis option is not generally recommended and is really an experimental 948fae3551SRodney W. Grimesfeature. 95a62dc406SDoug Rabson.It Fl I 96ef8f7ac9SSheldon HearnSet the readdir read size to the specified value. 97ef8f7ac9SSheldon HearnThe value should normally 98a62dc406SDoug Rabsonbe a multiple of DIRBLKSIZ that is <= the read size for the mount. 998fae3551SRodney W. Grimes.It Fl K 1008fae3551SRodney W. GrimesPass Kerberos authenticators to the server for client-to-server 1018fae3551SRodney W. Grimesuser-credential mapping. 102a62dc406SDoug RabsonThis requires that the kernel be built with the NFSKERB option. 103acaf1e1fSSheldon HearnThe use of this option will prevent the kernel from compiling 104acaf1e1fSSheldon Hearnunless calls to the appropriate Kerberos encryption routines 105acaf1e1fSSheldon Hearnare provided in the NFS source. 106a62dc406SDoug Rabson(Refer to the INTERNET-DRAFT titled 107a62dc406SDoug Rabson.%T "Authentication Mechanisms for ONC RPC" , 108a62dc406SDoug Rabsonfor more information.) 1098fae3551SRodney W. Grimes.It Fl L 1108fae3551SRodney W. GrimesUsed with NQNFS to set the lease term to the specified number of seconds. 1118fae3551SRodney W. GrimesOnly use this argument for mounts with a large round trip delay. 1128fae3551SRodney W. GrimesValues are normally in the 10-30 second range. 113cc75b131SJoerg Wunsch.It Fl N 114cc75b131SJoerg WunschDo 115cc75b131SJoerg Wunsch.Em not 116cc75b131SJoerg Wunschuse a reserved socket port number (see below). 1178fae3551SRodney W. Grimes.It Fl P 1188fae3551SRodney W. GrimesUse a reserved socket port number. 119cc75b131SJoerg WunschThis flag is obsolete, and only retained for compatibility reasons. 120cc75b131SJoerg WunschReserved port numbers are used by default now. 1218fae3551SRodney W. GrimesThis is useful for mounting servers that require clients to use a 122a62dc406SDoug Rabsonreserved port number on the mistaken belief that this makes NFS 1234e86fcacSSheldon Hearnmore secure. 1244e86fcacSSheldon Hearn(For the rare case where the client has a trusted root account 125e71057d8SMike Pritchardbut untrustworthy users and the network cables are in secure areas this does 126a62dc406SDoug Rabsonhelp, but for normal desktop clients this does not apply.) 1278fae3551SRodney W. Grimes.It Fl R 128e16873daSIan DowseSet the mount retry count to the specified value. 129e16873daSIan DowseA retry count of zero means to keep retrying forever. 130e16873daSIan DowseBy default, 131e16873daSIan Dowse.Nm 132e16873daSIan Dowseretries forever on background mounts (see the 133e16873daSIan Dowse.Fl b 134e16873daSIan Dowseoption), and otherwise tries just once. 135e16873daSIan DowseThere is a 60 second delay between each attempt. 1368fae3551SRodney W. Grimes.It Fl T 1378fae3551SRodney W. GrimesUse TCP transport instead of UDP. 1388fae3551SRodney W. GrimesThis is recommended for servers that are not on the same LAN cable as 1398fae3551SRodney W. Grimesthe client. 1408fae3551SRodney W. Grimes(NB: This is NOT supported by most non-BSD servers.) 141a62dc406SDoug Rabson.It Fl U 142a62dc406SDoug RabsonForce the mount protocol to use UDP transport, even for TCP NFS mounts. 143a62dc406SDoug Rabson(Necessary for some old BSD servers.) 1448fae3551SRodney W. Grimes.It Fl a 1458fae3551SRodney W. GrimesSet the read-ahead count to the specified value. 1468fae3551SRodney W. GrimesThis may be in the range of 0 - 4, and determines how many blocks 1478fae3551SRodney W. Grimeswill be read ahead when a large file is being read sequentially. 148a62dc406SDoug RabsonTrying a value greater than 1 for this is suggested for 149a62dc406SDoug Rabsonmounts with a large bandwidth * delay product. 1508fae3551SRodney W. Grimes.It Fl b 1518fae3551SRodney W. GrimesIf an initial attempt to contact the server fails, fork off a child to keep 1528fae3551SRodney W. Grimestrying the mount in the background. 1538fae3551SRodney W. GrimesUseful for 1548fae3551SRodney W. Grimes.Xr fstab 5 , 1558fae3551SRodney W. Grimeswhere the filesystem mount is not critical to multiuser operation. 1568fae3551SRodney W. Grimes.It Fl c 1578fae3551SRodney W. GrimesFor UDP mount points, do not do a 1588fae3551SRodney W. Grimes.Xr connect 2 . 1598fae3551SRodney W. GrimesThis must be used for servers that do not reply to requests from the 160a62dc406SDoug Rabsonstandard NFS port number 2049. 1618fae3551SRodney W. Grimes.It Fl d 162a62dc406SDoug RabsonTurn off the dynamic retransmit timeout estimator. 163a62dc406SDoug RabsonThis may be useful for UDP mounts that exhibit high retry rates, 164a62dc406SDoug Rabsonsince it is possible that the dynamically estimated timeout interval is too 165a62dc406SDoug Rabsonshort. 1668fae3551SRodney W. Grimes.It Fl g 1678fae3551SRodney W. GrimesSet the maximum size of the group list for the credentials to the 1688fae3551SRodney W. Grimesspecified value. 1698fae3551SRodney W. GrimesThis should be used for mounts on old servers that cannot handle a 1708fae3551SRodney W. Grimesgroup list size of 16, as specified in RFC 1057. 1718fae3551SRodney W. GrimesTry 8, if users in a lot of groups cannot get response from the mount 1728fae3551SRodney W. Grimespoint. 1738fae3551SRodney W. Grimes.It Fl i 1748fae3551SRodney W. GrimesMake the mount interruptible, which implies that file system calls that 1758fae3551SRodney W. Grimesare delayed due to an unresponsive server will fail with EINTR when a 1768fae3551SRodney W. Grimestermination signal is posted for the process. 1778fae3551SRodney W. Grimes.It Fl l 178a62dc406SDoug RabsonUsed with NQNFS and NFSV3 to specify that the \fBReaddirPlus\fR RPC should 1798fae3551SRodney W. Grimesbe used. 1808fae3551SRodney W. GrimesThis option reduces RPC traffic for cases such as 1818fae3551SRodney W. Grimes.Dq "ls -l" , 182a62dc406SDoug Rabsonbut tends to flood the attribute and name caches with prefetched entries. 183ef8f7ac9SSheldon HearnTry this option and see whether performance improves or degrades. 184ef8f7ac9SSheldon HearnProbably 185a62dc406SDoug Rabsonmost useful for client to server network interconnects with a large bandwidth 186a62dc406SDoug Rabsontimes delay product. 1878fae3551SRodney W. Grimes.It Fl m 1888fae3551SRodney W. GrimesSet the Kerberos realm to the string argument. 1898fae3551SRodney W. GrimesUsed with the 1908fae3551SRodney W. Grimes.Fl K 1918fae3551SRodney W. Grimesoption for mounts to other realms. 1928fae3551SRodney W. Grimes.It Fl o 1938fae3551SRodney W. GrimesOptions are specified with a 1948fae3551SRodney W. Grimes.Fl o 1958fae3551SRodney W. Grimesflag followed by a comma separated string of options. 1968fae3551SRodney W. GrimesSee the 1978fae3551SRodney W. Grimes.Xr mount 8 1988fae3551SRodney W. Grimesman page for possible options and their meanings. 199bc2cfd71SKarl StricklandThe following NFS specific option is also available: 200bc2cfd71SKarl Strickland.Bl -tag -width indent 201bc2cfd71SKarl Strickland.It port=<port_number> 202bc2cfd71SKarl StricklandUse specified port number for NFS requests. 203bc2cfd71SKarl StricklandThe default is to query the portmapper for the NFS port. 204c92e3fa5SPeter Wemm.It acregmin=<seconds> 205c92e3fa5SPeter Wemm.It acregmax=<seconds> 206c92e3fa5SPeter Wemm.It acdirmin=<seconds> 207c92e3fa5SPeter Wemm.It acdirmax=<seconds> 20846fc8f78SPhilippe CharnierWhen attributes of files are cached, a timeout calculated to determine 209c92e3fa5SPeter Wemmwhether a given cache entry has expired. These four values determine the 210c92e3fa5SPeter Wemmupper and lower bounds of the timeouts for ``directory'' attributes and 211c92e3fa5SPeter Wemm``regular'' (ie: everything else). The default values are 3 -> 60 seconds 212c92e3fa5SPeter Wemmfor regular files, and 30 -> 60 seconds for directories. The algorithm to 213c92e3fa5SPeter Wemmcalculate the timeout is based on the age of the file. The older the file, 214c92e3fa5SPeter Wemmthe longer the cache is considered valid, subject to the limits above. 215bc2cfd71SKarl Strickland.El 216f9dc1926SJoerg Wunsch.Pp 217f9dc1926SJoerg Wunsch.Bl -tag -width "dumbtimerXX" 218f9dc1926SJoerg Wunsch\fBHistoric \&-o options\fR 219f9dc1926SJoerg Wunsch.Pp 220f9dc1926SJoerg WunschUse of these options is deprecated, they are only mentioned here for 221f9dc1926SJoerg Wunschcompatibility with historic versions of 2227c7fb079SRuslan Ermilov.Nm . 223f9dc1926SJoerg Wunsch.It bg 224f9dc1926SJoerg WunschSame as 225f9dc1926SJoerg Wunsch.Fl b . 226f9dc1926SJoerg Wunsch.It conn 227a34f78d1SJoseph KoshySame as not specifying 228f9dc1926SJoerg Wunsch.Fl c . 229f9dc1926SJoerg Wunsch.It dumbtimer 230f9dc1926SJoerg WunschSame as 231f9dc1926SJoerg Wunsch.Fl d . 232f9dc1926SJoerg Wunsch.It intr 233f9dc1926SJoerg WunschSame as 234f9dc1926SJoerg Wunsch.Fl i . 235f9dc1926SJoerg Wunsch.It kerb 236f9dc1926SJoerg WunschSame as 237f9dc1926SJoerg Wunsch.Fl K . 2382cd1c32cSDoug Rabson.It nfsv2 2392cd1c32cSDoug RabsonSame as 2402cd1c32cSDoug Rabson.Fl 2 . 241f9dc1926SJoerg Wunsch.It nfsv3 242f9dc1926SJoerg WunschSame as 243f9dc1926SJoerg Wunsch.Fl 3 . 244f9dc1926SJoerg Wunsch.It rdirplus 245f9dc1926SJoerg WunschSame as 246f9dc1926SJoerg Wunsch.Fl l . 247f9dc1926SJoerg Wunsch.It mntudp 248f9dc1926SJoerg WunschSame as 249f9dc1926SJoerg Wunsch.Fl U . 250f9dc1926SJoerg Wunsch.It resvport 251f9dc1926SJoerg WunschSame as 252f9dc1926SJoerg Wunsch.Fl P . 253f9dc1926SJoerg Wunsch.It seqpacket 254f9dc1926SJoerg WunschSame as 255f9dc1926SJoerg Wunsch.Fl p . 256f9dc1926SJoerg Wunsch.It nqnfs 257f9dc1926SJoerg WunschSame as 258f9dc1926SJoerg Wunsch.Fl q . 259f9dc1926SJoerg Wunsch.It soft 260f9dc1926SJoerg WunschSame as 261f9dc1926SJoerg Wunsch.Fl s . 262f9dc1926SJoerg Wunsch.It tcp 263f9dc1926SJoerg WunschSame as 264f9dc1926SJoerg Wunsch.Fl T . 265f9dc1926SJoerg Wunsch.El 2668fae3551SRodney W. Grimes.It Fl q 2674086cd0dSIan DowseUse the Not Quite NFS (NQNFS) protocol. 2684086cd0dSIan DowseThis experimental protocol is NFS Version 2 with leasing extensions 2694086cd0dSIan Dowsesimilar to those found in NFS Version 3. 2704086cd0dSIan DowseThe interoperability of this protocol with other systems is 2714086cd0dSIan Dowsevery limited and its implementation is not widely used. 2724086cd0dSIan DowseDo not use this option unless you know exactly what you are doing! 2738fae3551SRodney W. Grimes.It Fl r 2748fae3551SRodney W. GrimesSet the read data size to the specified value. 275a62dc406SDoug RabsonIt should normally be a power of 2 greater than or equal to 1024. 2768fae3551SRodney W. GrimesThis should be used for UDP mounts when the 2778fae3551SRodney W. Grimes.Dq "fragments dropped due to timeout" 2788fae3551SRodney W. Grimesvalue is getting large while actively using a mount point. 2798fae3551SRodney W. Grimes(Use 2808fae3551SRodney W. Grimes.Xr netstat 1 2818fae3551SRodney W. Grimeswith the 2828fae3551SRodney W. Grimes.Fl s 2838fae3551SRodney W. Grimesoption to see what the 2848fae3551SRodney W. Grimes.Dq "fragments dropped due to timeout" 2858fae3551SRodney W. Grimesvalue is.) 2868fae3551SRodney W. GrimesSee the 2878fae3551SRodney W. Grimes.Fl w 2888fae3551SRodney W. Grimesoption as well. 2898fae3551SRodney W. Grimes.It Fl s 2908fae3551SRodney W. GrimesA soft mount, which implies that file system calls will fail 2918fae3551SRodney W. Grimesafter \fBRetry\fR round trip timeout intervals. 2928fae3551SRodney W. Grimes.It Fl t 2938fae3551SRodney W. GrimesSet the initial retransmit timeout to the specified value. 2948fae3551SRodney W. GrimesMay be useful for fine tuning UDP mounts over internetworks 2958fae3551SRodney W. Grimeswith high packet loss rates or an overloaded server. 2968fae3551SRodney W. GrimesTry increasing the interval if 2978fae3551SRodney W. Grimes.Xr nfsstat 1 2988fae3551SRodney W. Grimesshows high retransmit rates while the file system is active or reducing the 2998fae3551SRodney W. Grimesvalue if there is a low retransmit rate but long response delay observed. 300a62dc406SDoug Rabson(Normally, the -d option should be specified when using this option to manually 301a62dc406SDoug Rabsontune the timeout 302a62dc406SDoug Rabsoninterval.) 3038fae3551SRodney W. Grimes.It Fl w 3048fae3551SRodney W. GrimesSet the write data size to the specified value. 3058fae3551SRodney W. GrimesDitto the comments w.r.t. the 3068fae3551SRodney W. Grimes.Fl r 3078fae3551SRodney W. Grimesoption, but using the 3088fae3551SRodney W. Grimes.Dq "fragments dropped due to timeout" 3098fae3551SRodney W. Grimesvalue on the server instead of the client. 3108fae3551SRodney W. GrimesNote that both the 3118fae3551SRodney W. Grimes.Fl r 3128fae3551SRodney W. Grimesand 3138fae3551SRodney W. Grimes.Fl w 3148fae3551SRodney W. Grimesoptions should only be used as a last ditch effort at improving performance 3158fae3551SRodney W. Grimeswhen mounting servers that do not support TCP mounts. 3168fae3551SRodney W. Grimes.It Fl x 3178fae3551SRodney W. GrimesSet the retransmit timeout count for soft mounts to the specified value. 3188fae3551SRodney W. Grimes.El 3198fae3551SRodney W. Grimes.Sh SEE ALSO 3208fae3551SRodney W. Grimes.Xr mount 2 , 3218fae3551SRodney W. Grimes.Xr unmount 2 , 3228fae3551SRodney W. Grimes.Xr fstab 5 , 3232a2d4405SMatthew Dillon.Xr mount 8 , 324ffc717e2SSheldon Hearn.Xr nfsd 8 , 325893d2b85SSheldon Hearn.Xr nfsiod 8 , 326893d2b85SSheldon Hearn.Xr showmount 8 3278fae3551SRodney W. Grimes.Sh BUGS 3288fae3551SRodney W. GrimesDue to the way that Sun RPC is implemented on top of UDP (unreliable datagram) 3298fae3551SRodney W. Grimestransport, tuning such mounts is really a black art that can only be expected 3308fae3551SRodney W. Grimesto have limited success. 3318fae3551SRodney W. GrimesFor clients mounting servers that are not on the same 3328fae3551SRodney W. GrimesLAN cable or that tend to be overloaded, 3338fae3551SRodney W. GrimesTCP transport is strongly recommended, 3348fae3551SRodney W. Grimesbut unfortunately this is restricted to mostly 4.4BSD servers. 335