xref: /illumos-gate/usr/src/man/man8/mount_nfs.8 (revision bbf215553c7233fbab8a0afdf1fac74c44781867)
1*bbf21555SRichard Lowe.\"
2*bbf21555SRichard Lowe.\" The contents of this file are subject to the terms of the
3*bbf21555SRichard Lowe.\" Common Development and Distribution License (the "License").
4*bbf21555SRichard Lowe.\" You may not use this file except in compliance with the License.
5*bbf21555SRichard Lowe.\"
6*bbf21555SRichard Lowe.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7*bbf21555SRichard Lowe.\" or http://www.opensolaris.org/os/licensing.
8*bbf21555SRichard Lowe.\" See the License for the specific language governing permissions
9*bbf21555SRichard Lowe.\" and limitations under the License.
10*bbf21555SRichard Lowe.\"
11*bbf21555SRichard Lowe.\" When distributing Covered Code, include this CDDL HEADER in each
12*bbf21555SRichard Lowe.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
13*bbf21555SRichard Lowe.\" If applicable, add the following below this CDDL HEADER, with the
14*bbf21555SRichard Lowe.\" fields enclosed by brackets "[]" replaced with your own identifying
15*bbf21555SRichard Lowe.\" information: Portions Copyright [yyyy] [name of copyright owner]
16*bbf21555SRichard Lowe.\"
17*bbf21555SRichard Lowe.\"
18*bbf21555SRichard Lowe.\" Copyright 1989 AT&T
19*bbf21555SRichard Lowe.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved
20*bbf21555SRichard Lowe.\" Copyright 2017 Nexenta Systems, Inc.
21*bbf21555SRichard Lowe.\"
22*bbf21555SRichard Lowe.Dd March 12, 2016
23*bbf21555SRichard Lowe.Dt MOUNT_NFS 8
24*bbf21555SRichard Lowe.Os
25*bbf21555SRichard Lowe.Sh NAME
26*bbf21555SRichard Lowe.Nm mount_nfs
27*bbf21555SRichard Lowe.Nd mount remote NFS resources
28*bbf21555SRichard Lowe.Sh SYNOPSIS
29*bbf21555SRichard Lowe.Nm mount
30*bbf21555SRichard Lowe.Op Fl F Sy nfs
31*bbf21555SRichard Lowe.Op Ar generic_options
32*bbf21555SRichard Lowe.Op Fl o Ar specific_options
33*bbf21555SRichard Lowe.Ar resource
34*bbf21555SRichard Lowe.Nm mount
35*bbf21555SRichard Lowe.Op Fl F Sy nfs
36*bbf21555SRichard Lowe.Op Ar generic_options
37*bbf21555SRichard Lowe.Op Fl o Ar specific_options
38*bbf21555SRichard Lowe.Ar mount_point
39*bbf21555SRichard Lowe.Nm mount
40*bbf21555SRichard Lowe.Op Fl F Sy nfs
41*bbf21555SRichard Lowe.Op Ar generic_options
42*bbf21555SRichard Lowe.Op Fl o Ar specific_options
43*bbf21555SRichard Lowe.Ar resource mount_point
44*bbf21555SRichard Lowe.Sh DESCRIPTION
45*bbf21555SRichard LoweThe
46*bbf21555SRichard Lowe.Nm mount
47*bbf21555SRichard Loweutility attaches a named
48*bbf21555SRichard Lowe.Ar resource
49*bbf21555SRichard Loweto the file system hierarchy at the pathname location
50*bbf21555SRichard Lowe.Ar mount_point ,
51*bbf21555SRichard Lowewhich must already exist.
52*bbf21555SRichard LoweIf
53*bbf21555SRichard Lowe.Ar mount_point
54*bbf21555SRichard Lowehas any contents prior to the
55*bbf21555SRichard Lowe.Nm mount
56*bbf21555SRichard Loweoperation, the contents remain hidden until the
57*bbf21555SRichard Lowe.Ar resource
58*bbf21555SRichard Loweis once again unmounted.
59*bbf21555SRichard Lowe.Pp
60*bbf21555SRichard Lowe.Nm
61*bbf21555SRichard Lowestarts the
62*bbf21555SRichard Lowe.Xr lockd 8
63*bbf21555SRichard Loweand
64*bbf21555SRichard Lowe.Xr statd 8
65*bbf21555SRichard Lowedaemons if they are not already running.
66*bbf21555SRichard Lowe.Pp
67*bbf21555SRichard LoweIf the resource is listed in the
68*bbf21555SRichard Lowe.Pa /etc/vfstab
69*bbf21555SRichard Lowefile, the command line can specify either
70*bbf21555SRichard Lowe.Ar resource
71*bbf21555SRichard Loweor
72*bbf21555SRichard Lowe.Ar mount_point ,
73*bbf21555SRichard Loweand
74*bbf21555SRichard Lowe.Nm mount
75*bbf21555SRichard Loweconsults
76*bbf21555SRichard Lowe.Pa /etc/vfstab
77*bbf21555SRichard Lowefor more information.
78*bbf21555SRichard LoweIf the
79*bbf21555SRichard Lowe.Fl F
80*bbf21555SRichard Loweoption is omitted,
81*bbf21555SRichard Lowe.Nm mount
82*bbf21555SRichard Lowetakes the file system type from
83*bbf21555SRichard Lowe.Pa /etc/vfstab .
84*bbf21555SRichard Lowe.Pp
85*bbf21555SRichard LoweIf the resource is not listed in the
86*bbf21555SRichard Lowe.Pa /etc/vfstab
87*bbf21555SRichard Lowefile, then the command line must specify both the
88*bbf21555SRichard Lowe.Ar resource
89*bbf21555SRichard Loweand the
90*bbf21555SRichard Lowe.Ar mount_point .
91*bbf21555SRichard Lowe.Pp
92*bbf21555SRichard Lowe.Ar host
93*bbf21555SRichard Lowecan be an IPv4 or IPv6 address string.
94*bbf21555SRichard LoweAs IPv6 addresses already contain colons, enclose
95*bbf21555SRichard Lowe.Ar host
96*bbf21555SRichard Lowein a pair of square brackets when specifying an IPv6 address string.
97*bbf21555SRichard LoweOtherwise the first occurrence of a colon can be interpreted as the separator
98*bbf21555SRichard Lowebetween the host name and path, for example,
99*bbf21555SRichard Lowe.Li [1080::8:800:200C:417A]:tmp/file .
100*bbf21555SRichard LoweSee
101*bbf21555SRichard Lowe.Xr inet 4P
102*bbf21555SRichard Loweand
103*bbf21555SRichard Lowe.Xr inet6 4P .
104*bbf21555SRichard Lowe.Bl -tag -width Ds
105*bbf21555SRichard Lowe.It Ar host Ns \&: Ns Ar pathname
106*bbf21555SRichard LoweWhere
107*bbf21555SRichard Lowe.Ar host
108*bbf21555SRichard Loweis the name of the NFS server host, and
109*bbf21555SRichard Lowe.Ar pathname
110*bbf21555SRichard Loweis the path name of the directory on the server being mounted.
111*bbf21555SRichard LoweThe path name is interpreted according to the server's path name parsing rules
112*bbf21555SRichard Loweand is not necessarily slash-separated, though on most servers, this is the
113*bbf21555SRichard Lowecase.
114*bbf21555SRichard Lowe.It No nfs:// Ns Ar host Ns Oo : Ns Ar port Oc Ns / Ns Ar pathname
115*bbf21555SRichard LoweThis is an NFS URL and follows the standard convention for NFS URLs as described
116*bbf21555SRichard Lowein
117*bbf21555SRichard Lowe.Rs
118*bbf21555SRichard Lowe.%R NFS URL Scheme
119*bbf21555SRichard Lowe.%T RFC 2224
120*bbf21555SRichard Lowe.Re
121*bbf21555SRichard LoweSee the discussion of URLs and the public option under
122*bbf21555SRichard Lowe.Sx NFS FILE SYSTEMS
123*bbf21555SRichard Lowefor a more detailed discussion.
124*bbf21555SRichard Lowe.It Xo
125*bbf21555SRichard Lowe.Ar host Ns \&: Ns Ar pathname
126*bbf21555SRichard Lowe.No nfs:// Ns Ar host Ns Oo : Ns Ar port Oc Ns / Ns Ar pathname
127*bbf21555SRichard Lowe.Xc
128*bbf21555SRichard Lowe.Ar host Ns \&: Ns Ar pathname
129*bbf21555SRichard Loweis a comma-separated list of
130*bbf21555SRichard Lowe.Ar host Ns \&: Ns Ar pathname .
131*bbf21555SRichard LoweSee the discussion of replicated file systems and failover under
132*bbf21555SRichard Lowe.Sx NFS FILE SYSTEMS
133*bbf21555SRichard Lowefor a more detailed discussion.
134*bbf21555SRichard Lowe.It Ar hostlist pathname
135*bbf21555SRichard Lowe.Ar hostlist
136*bbf21555SRichard Loweis a comma-separated list of hosts.
137*bbf21555SRichard LoweSee the discussion of replicated file systems and failover under
138*bbf21555SRichard Lowe.Sx NFS FILE SYSTEMS
139*bbf21555SRichard Lowefor a more detailed discussion.
140*bbf21555SRichard Lowe.El
141*bbf21555SRichard Lowe.Pp
142*bbf21555SRichard LoweThe
143*bbf21555SRichard Lowe.Nm mount
144*bbf21555SRichard Lowecommand maintains a table of mounted file systems in
145*bbf21555SRichard Lowe.Pa /etc/mnttab ,
146*bbf21555SRichard Lowedescribed in
147*bbf21555SRichard Lowe.Xr mnttab 5 .
148*bbf21555SRichard Lowe.Pp
149*bbf21555SRichard Lowe.Nm mount_nfs
150*bbf21555SRichard Lowesupports both NFSv3 and NFSv4 mounts.
151*bbf21555SRichard LoweThe default NFS version is NFSv4.
152*bbf21555SRichard Lowe.Ss Options
153*bbf21555SRichard LoweSee
154*bbf21555SRichard Lowe.Xr mount 8
155*bbf21555SRichard Lowefor the list of supported
156*bbf21555SRichard Lowe.Ar generic_options .
157*bbf21555SRichard LoweSee
158*bbf21555SRichard Lowe.Xr share_nfs 8
159*bbf21555SRichard Lowefor a description of server options.
160*bbf21555SRichard Lowe.Bl -tag -width Ds
161*bbf21555SRichard Lowe.It Fl o Ar specific_options
162*bbf21555SRichard LoweSet file system specific options according to a comma-separated list with no
163*bbf21555SRichard Loweintervening spaces.
164*bbf21555SRichard Lowe.El
165*bbf21555SRichard Lowe.Pp
166*bbf21555SRichard LoweThe following list describes
167*bbf21555SRichard Lowe.Ar specific_options :
168*bbf21555SRichard Lowe.Bl -tag -width Ds
169*bbf21555SRichard Lowe.It Sy acdirmax Ns = Ns Ar n
170*bbf21555SRichard LoweHold cached attributes for no more than
171*bbf21555SRichard Lowe.Ar n
172*bbf21555SRichard Loweseconds after directory update.
173*bbf21555SRichard LoweThe default value is 60.
174*bbf21555SRichard Lowe.It Sy acdirmin Ns = Ns Ar n
175*bbf21555SRichard LoweHold cached attributes for at least
176*bbf21555SRichard Lowe.Ar n
177*bbf21555SRichard Loweseconds after directory update.
178*bbf21555SRichard LoweThe default value is 30.
179*bbf21555SRichard Lowe.It Sy acregmax Ns = Ns Ar n
180*bbf21555SRichard LoweHold cached attributes for no more than
181*bbf21555SRichard Lowe.Ar n
182*bbf21555SRichard Loweseconds after file modification.
183*bbf21555SRichard LoweThe default value is 60.
184*bbf21555SRichard Lowe.It Sy acregmin Ns = Ns Ar n
185*bbf21555SRichard LoweHold cached attributes for at least
186*bbf21555SRichard Lowe.Ar n
187*bbf21555SRichard Loweseconds after file modification.
188*bbf21555SRichard LoweThe default value is 3.
189*bbf21555SRichard Lowe.It Sy actimeo Ns = Ns n
190*bbf21555SRichard LoweSet
191*bbf21555SRichard Lowe.Sy min
192*bbf21555SRichard Loweand
193*bbf21555SRichard Lowe.Sy max
194*bbf21555SRichard Lowetimes for regular files and directories to
195*bbf21555SRichard Lowe.Ar n
196*bbf21555SRichard Loweseconds.
197*bbf21555SRichard LoweSee
198*bbf21555SRichard Lowe.Sx File Attributes ,
199*bbf21555SRichard Lowebelow, for a description of the effect of setting this option to 0.
200*bbf21555SRichard Lowe.Pp
201*bbf21555SRichard LoweSee
202*bbf21555SRichard Lowe.Sx Specifying Values for Attribute Cache Duration Options ,
203*bbf21555SRichard Lowebelow, for a description of how
204*bbf21555SRichard Lowe.Sy acdirmax , acdirmin , acregmax , acregmin ,
205*bbf21555SRichard Loweand
206*bbf21555SRichard Lowe.Sy actimeo
207*bbf21555SRichard Loweare parsed on a
208*bbf21555SRichard Lowe.Nm mount
209*bbf21555SRichard Lowecommand line.
210*bbf21555SRichard Lowe.It Sy bg Ns | Ns Sy fg
211*bbf21555SRichard LoweIf the first attempt fails, retry in the background, or, in the foreground.
212*bbf21555SRichard LoweThe default is
213*bbf21555SRichard Lowe.Sy fg .
214*bbf21555SRichard Lowe.It Sy forcedirectio Ns | Ns Sy noforcedirectio
215*bbf21555SRichard LoweIf
216*bbf21555SRichard Lowe.Sy forcedirectio
217*bbf21555SRichard Loweis specified, then for the duration of the mount, forced direct I/O is used.
218*bbf21555SRichard LoweIf the filesystem is mounted using
219*bbf21555SRichard Lowe.Sy forcedirectio ,
220*bbf21555SRichard Lowedata is transferred directly between client and server, with no buffering on the
221*bbf21555SRichard Loweclient.
222*bbf21555SRichard LoweIf the filesystem is mounted using
223*bbf21555SRichard Lowe.Sy noforcedirectio ,
224*bbf21555SRichard Lowedata is buffered on the client.
225*bbf21555SRichard Lowe.Sy forcedirectio
226*bbf21555SRichard Loweis a performance option that is of benefit only in large sequential data
227*bbf21555SRichard Lowetransfers.
228*bbf21555SRichard LoweThe default behavior is
229*bbf21555SRichard Lowe.Sy noforcedirectio .
230*bbf21555SRichard Lowe.It Sy grpid
231*bbf21555SRichard LoweBy default, the GID associated with a newly created file obeys the System V
232*bbf21555SRichard Lowesemantics; that is, the GID is set to the effective GID of the calling process.
233*bbf21555SRichard LoweThis behavior can be overridden on a per-directory basis by setting the set-GID
234*bbf21555SRichard Lowebit of the parent directory; in this case, the GID of a newly created file is
235*bbf21555SRichard Loweset to the GID of the parent directory
236*bbf21555SRichard Lowe.Po see
237*bbf21555SRichard Lowe.Xr open 2
238*bbf21555SRichard Loweand
239*bbf21555SRichard Lowe.Xr mkdir 2
240*bbf21555SRichard Lowe.Pc .
241*bbf21555SRichard LoweFiles created on file systems that are mounted with the
242*bbf21555SRichard Lowe.Sy grpid
243*bbf21555SRichard Loweoption obeys BSD semantics independent of whether the set-GID bit of the parent
244*bbf21555SRichard Lowedirectory is set; that is, the GID is unconditionally inherited from that of the
245*bbf21555SRichard Loweparent directory.
246*bbf21555SRichard Lowe.It Sy hard Ns | Ns Sy soft
247*bbf21555SRichard LoweContinue to retry requests until the server responds
248*bbf21555SRichard Lowe.Pq Sy hard
249*bbf21555SRichard Loweor give up and return an error
250*bbf21555SRichard Lowe.Pq Sy soft .
251*bbf21555SRichard LoweThe default value is
252*bbf21555SRichard Lowe.Sy hard .
253*bbf21555SRichard LoweNote that NFSv4 clients do not support soft mounts.
254*bbf21555SRichard Lowe.It Sy intr Ns | Ns Sy nointr
255*bbf21555SRichard LoweAllow
256*bbf21555SRichard Lowe.Pq do not allow
257*bbf21555SRichard Lowekeyboard interrupts to kill a process that is hung while waiting for a response
258*bbf21555SRichard Loweon a hard-mounted file system.
259*bbf21555SRichard LoweThe default is
260*bbf21555SRichard Lowe.Sy intr ,
261*bbf21555SRichard Lowewhich makes it possible for clients to interrupt applications that can be
262*bbf21555SRichard Lowewaiting for a remote mount.
263*bbf21555SRichard Lowe.It Sy noac
264*bbf21555SRichard LoweSuppress data and attribute caching.
265*bbf21555SRichard LoweThe data caching that is suppressed is the write-behind.
266*bbf21555SRichard LoweThe local page cache is still maintained, but data copied into it is immediately
267*bbf21555SRichard Lowewritten to the server.
268*bbf21555SRichard Lowe.It Sy nocto
269*bbf21555SRichard LoweDo not perform the normal close-to-open consistency.
270*bbf21555SRichard LoweWhen a file is closed, all modified data associated with the file is flushed to
271*bbf21555SRichard Lowethe server and not held on the client.
272*bbf21555SRichard LoweWhen a file is opened the client sends a request to the server to validate the
273*bbf21555SRichard Loweclient's local caches.
274*bbf21555SRichard LoweThis behavior ensures a file's consistency across multiple NFS clients.
275*bbf21555SRichard LoweWhen
276*bbf21555SRichard Lowe.Sy nocto
277*bbf21555SRichard Loweis in effect, the client does not perform the flush on close and the request for
278*bbf21555SRichard Lowevalidation, allowing the possibility of differences among copies of the same
279*bbf21555SRichard Lowefile as stored on multiple clients.
280*bbf21555SRichard Lowe.Pp
281*bbf21555SRichard LoweThis option can be used where it can be guaranteed that accesses to a specified
282*bbf21555SRichard Lowefile system are made from only one client and only that client.
283*bbf21555SRichard LoweUnder such a condition, the effect of
284*bbf21555SRichard Lowe.Sy nocto
285*bbf21555SRichard Lowecan be a slight performance gain.
286*bbf21555SRichard Lowe.It Sy port Ns = Ns Ar n
287*bbf21555SRichard LoweThe server IP port number.
288*bbf21555SRichard LoweThe default is
289*bbf21555SRichard Lowe.Dv NFS_PORT .
290*bbf21555SRichard LoweIf the
291*bbf21555SRichard Lowe.Sy port
292*bbf21555SRichard Loweoption is specified, and if the resource includes one or more NFS URLs, and if
293*bbf21555SRichard Loweany of the URLs include a port number, then the port number in the option and in
294*bbf21555SRichard Lowethe URL must be the same.
295*bbf21555SRichard Lowe.It Sy posix
296*bbf21555SRichard LoweRequest POSIX.1 semantics for the file system.
297*bbf21555SRichard LoweRequires a mount Version 2
298*bbf21555SRichard Lowe.Xr mountd 8
299*bbf21555SRichard Loweon the server.
300*bbf21555SRichard LoweSee
301*bbf21555SRichard Lowe.Xr standards 7
302*bbf21555SRichard Lowefor information regarding POSIX.
303*bbf21555SRichard Lowe.It Sy proto Ns = Ns Ar netid Ns | Ns Sy rdma
304*bbf21555SRichard LoweBy default, the transport protocol that the NFS mount uses is the first
305*bbf21555SRichard Loweavailable RDMA transport supported both by the client and the server.
306*bbf21555SRichard LoweIf no RDMA transport is found, then it attempts to use a TCP transport or,
307*bbf21555SRichard Lowefailing that, a UDP transport, as ordered in the
308*bbf21555SRichard Lowe.Pa /etc/netconfig
309*bbf21555SRichard Lowefile.
310*bbf21555SRichard LoweIf it does not find a connection oriented transport, it uses the first available
311*bbf21555SRichard Loweconnectionless transport.
312*bbf21555SRichard LoweUse this option to override the default behavior.
313*bbf21555SRichard Lowe.Pp
314*bbf21555SRichard Lowe.Sy proto
315*bbf21555SRichard Loweis set to the value of
316*bbf21555SRichard Lowe.Ar netid
317*bbf21555SRichard Loweor
318*bbf21555SRichard Lowe.Sy rdma .
319*bbf21555SRichard Lowe.Ar netid
320*bbf21555SRichard Loweis the value of the
321*bbf21555SRichard Lowe.Sy network_id
322*bbf21555SRichard Lowefield entry in the
323*bbf21555SRichard Lowe.Pa /etc/netconfig
324*bbf21555SRichard Lowefile.
325*bbf21555SRichard Lowe.Pp
326*bbf21555SRichard LoweThe UDP protocol is not supported for NFS Version 4.
327*bbf21555SRichard LoweIf you specify a UDP protocol with the
328*bbf21555SRichard Lowe.Sy proto
329*bbf21555SRichard Loweoption, NFS version 4 is not used.
330*bbf21555SRichard Lowe.It Sy public
331*bbf21555SRichard LoweThe
332*bbf21555SRichard Lowe.Sy public
333*bbf21555SRichard Loweoption forces the use of the public file handle when connecting to the NFS
334*bbf21555SRichard Loweserver.
335*bbf21555SRichard LoweThe resource specified might not have an NFS URL.
336*bbf21555SRichard LoweSee the discussion of URLs and the public option under
337*bbf21555SRichard Lowe.Sx NFS FILE SYSTEMS
338*bbf21555SRichard Lowefor a more detailed discussion.
339*bbf21555SRichard Lowe.It Sy quota Ns | Ns Sy noquota
340*bbf21555SRichard LoweEnable or prevent
341*bbf21555SRichard Lowe.Xr quota 8
342*bbf21555SRichard Loweto check whether the user is over quota on this file system; if the file system
343*bbf21555SRichard Lowehas quotas enabled on the server, quotas are still checked for operations on
344*bbf21555SRichard Lowethis file system.
345*bbf21555SRichard Lowe.It Sy remount
346*bbf21555SRichard LoweRemounts a read-only file system as read-write
347*bbf21555SRichard Lowe.Po using the
348*bbf21555SRichard Lowe.Sy rw
349*bbf21555SRichard Loweoption
350*bbf21555SRichard Lowe.Pc .
351*bbf21555SRichard LoweThis option cannot be used with other
352*bbf21555SRichard Lowe.Fl o
353*bbf21555SRichard Loweoptions, and this option works only on currently mounted read-only file systems.
354*bbf21555SRichard Lowe.It Sy retrans Ns = Ns Ar n
355*bbf21555SRichard LoweSet the number of NFS retransmissions to
356*bbf21555SRichard Lowe.Ar n .
357*bbf21555SRichard LoweThe default value is 5.
358*bbf21555SRichard LoweFor connection-oriented transports, this option has no effect because it is
359*bbf21555SRichard Loweassumed that the transport performs retransmissions on behalf of NFS.
360*bbf21555SRichard Lowe.It Sy retry Ns = Ns Ar n
361*bbf21555SRichard LoweThe number of times to retry the
362*bbf21555SRichard Lowe.Nm mount
363*bbf21555SRichard Loweoperation.
364*bbf21555SRichard LoweThe default for the
365*bbf21555SRichard Lowe.Nm mount
366*bbf21555SRichard Lowecommand is 10000.
367*bbf21555SRichard Lowe.Pp
368*bbf21555SRichard LoweThe default for the automounter is 0, in other words, do not retry.
369*bbf21555SRichard LoweYou might find it useful to increase this value on heavily loaded servers, where
370*bbf21555SRichard Loweautomounter traffic is dropped, causing unnecessary
371*bbf21555SRichard Lowe.Qq server not responding
372*bbf21555SRichard Loweerrors.
373*bbf21555SRichard Lowe.It Sy rsize Ns = Ns Ar n
374*bbf21555SRichard LoweSet the read buffer size to a maximum of
375*bbf21555SRichard Lowe.Ar n
376*bbf21555SRichard Lowebytes.
377*bbf21555SRichard LoweThe default value is 1048576 when using connection-oriented transports with
378*bbf21555SRichard LoweVersion 3 or Version 4 of the NFS protocol, and 32768 when using connection-less
379*bbf21555SRichard Lowetransports.
380*bbf21555SRichard LoweThe default can be negotiated down if the server prefers a smaller transfer
381*bbf21555SRichard Lowesize.
382*bbf21555SRichard Lowe.Qq Read
383*bbf21555SRichard Loweoperations may not necessarily use the maximum buffer size.
384*bbf21555SRichard LoweWhen using Version 2, the default value is 32768 for all transports.
385*bbf21555SRichard Lowe.It Sy sec Ns = Ns Ar mode
386*bbf21555SRichard LoweSet the security
387*bbf21555SRichard Lowe.Ar mode
388*bbf21555SRichard Lowefor NFS transactions.
389*bbf21555SRichard LoweIf
390*bbf21555SRichard Lowe.Sy sec Ns =
391*bbf21555SRichard Loweis not specified, then the default action is to use AUTH_SYS over NFS Version 2
392*bbf21555SRichard Lowemounts, use a user-configured default
393*bbf21555SRichard Lowe.Sy auth
394*bbf21555SRichard Loweover NFS version 3 mounts, or to  negotiate a mode over Version 4 mounts.
395*bbf21555SRichard Lowe.Pp
396*bbf21555SRichard LoweThe preferred mode for NFS Version 3 mounts is the default mode specified in
397*bbf21555SRichard Lowe.Pa /etc/nfssec.conf
398*bbf21555SRichard Lowe.Po see
399*bbf21555SRichard Lowe.Xr nfssec.conf 5
400*bbf21555SRichard Lowe.Pc
401*bbf21555SRichard Loweon the client.
402*bbf21555SRichard LoweIf there is no default configured in this file or if the server does not export
403*bbf21555SRichard Loweusing the client's default mode, then the client picks the first mode that it
404*bbf21555SRichard Lowesupports in the array of modes returned by the server.
405*bbf21555SRichard LoweThese alternatives are limited to the security flavors listed in
406*bbf21555SRichard Lowe.Pa /etc/nfssec.conf .
407*bbf21555SRichard Lowe.Pp
408*bbf21555SRichard LoweNFS Version 4 mounts negotiate a security mode when the server returns an array
409*bbf21555SRichard Loweof security modes.
410*bbf21555SRichard LoweThe client attempts the mount with each security mode, in order, until one is
411*bbf21555SRichard Lowesuccessful.
412*bbf21555SRichard Lowe.Pp
413*bbf21555SRichard LoweOnly one mode can be specified with the
414*bbf21555SRichard Lowe.Sy sec Ns =
415*bbf21555SRichard Loweoption.
416*bbf21555SRichard LoweSee
417*bbf21555SRichard Lowe.Xr nfssec 7
418*bbf21555SRichard Lowefor the available
419*bbf21555SRichard Lowe.Ar mode
420*bbf21555SRichard Loweoptions.
421*bbf21555SRichard Lowe.It Sy secure
422*bbf21555SRichard LoweThis option has been deprecated in favor of the
423*bbf21555SRichard Lowe.Sy sec Ns = Ns Sy dh
424*bbf21555SRichard Loweoption.
425*bbf21555SRichard Lowe.It Sy timeo Ns = Ns Ar n
426*bbf21555SRichard LoweSet the NFS timeout to
427*bbf21555SRichard Lowe.Ar n
428*bbf21555SRichard Lowetenths of a second.
429*bbf21555SRichard LoweThe default value is 11 tenths of a second for connectionless transports, and
430*bbf21555SRichard Lowe600 tenths of a second for connection-oriented transports.
431*bbf21555SRichard LoweThis value is ignored for connectionless transports.
432*bbf21555SRichard LoweSuch transports might implement their own timeouts, which are outside the
433*bbf21555SRichard Lowecontrol of NFS.
434*bbf21555SRichard Lowe.It Sy vers Ns = Ns Ar "NFS version number"
435*bbf21555SRichard LoweBy default, the version of NFS protocol used between the client and the server
436*bbf21555SRichard Loweis the highest one available on both systems.
437*bbf21555SRichard LoweIf the NFS server does not support the client's default maximum, the next lowest
438*bbf21555SRichard Loweversion attempted until a matching version is found.
439*bbf21555SRichard LoweSee
440*bbf21555SRichard Lowe.Xr nfs 5
441*bbf21555SRichard Lowefor more information on setting default minimum and maximum client versions.
442*bbf21555SRichard Lowe.It Sy wsize Ns = Ns Ar n
443*bbf21555SRichard LoweSet the write buffer size to a maximum of
444*bbf21555SRichard Lowe.Ar n
445*bbf21555SRichard Lowebytes.
446*bbf21555SRichard LoweThe default value is 1048576 when using connection-oriented transports with
447*bbf21555SRichard LoweVersion 3 or Version 4 of the NFS protocol, and 32768 when using connection-less
448*bbf21555SRichard Lowetransports.
449*bbf21555SRichard LoweThe default can be negotiated down if the server prefers a smaller transfer
450*bbf21555SRichard Lowesize.
451*bbf21555SRichard Lowe.Qq Write
452*bbf21555SRichard Loweoperations may not necessarily use the maximum buffer size.
453*bbf21555SRichard LoweWhen using Version 2, the default value is 32768 for all transports.
454*bbf21555SRichard Lowe.It Sy xattr Ns | Ns Sy noxattr
455*bbf21555SRichard LoweAllow or disallow the creation and manipulation of extended attributes.
456*bbf21555SRichard LoweThe default is
457*bbf21555SRichard Lowe.Sy xattr .
458*bbf21555SRichard LoweSee
459*bbf21555SRichard Lowe.Xr fsattr 7
460*bbf21555SRichard Lowefor a description of extended attributes.
461*bbf21555SRichard Lowe.El
462*bbf21555SRichard Lowe.Sh NFS FILE SYSTEMS
463*bbf21555SRichard Lowe.Ss Background versus Foreground
464*bbf21555SRichard LoweFile systems mounted with the
465*bbf21555SRichard Lowe.Sy bg
466*bbf21555SRichard Loweoption indicate that
467*bbf21555SRichard Lowe.Nm mount
468*bbf21555SRichard Loweis to retry in the background if the server's mount daemon
469*bbf21555SRichard Lowe.Pq Xr mountd 8
470*bbf21555SRichard Lowedoes not respond.
471*bbf21555SRichard Lowe.Nm mount
472*bbf21555SRichard Loweretries the request up to the count specified in the
473*bbf21555SRichard Lowe.Sy retry Ns = Ns Ar n
474*bbf21555SRichard Loweoption
475*bbf21555SRichard Lowe.Po note that the default value for
476*bbf21555SRichard Lowe.Sy retry
477*bbf21555SRichard Lowediffers between
478*bbf21555SRichard Lowe.Nm mount
479*bbf21555SRichard Loweand
480*bbf21555SRichard Lowe.Nm automount ;
481*bbf21555SRichard Lowesee the description of
482*bbf21555SRichard Lowe.Sy retry ,
483*bbf21555SRichard Loweabove
484*bbf21555SRichard Lowe.Pc .
485*bbf21555SRichard LoweOnce the file system is mounted, each NFS request made in the kernel waits
486*bbf21555SRichard Lowe.Sy timeo Ns = Ns Ar n
487*bbf21555SRichard Lowetenths of a second for a response.
488*bbf21555SRichard LoweIf no response arrives, the time-out is multiplied by 2 and the request is
489*bbf21555SRichard Loweretransmitted.
490*bbf21555SRichard LoweWhen the number of retransmissions has reached the number specified in the
491*bbf21555SRichard Lowe.Sy retrans Ns = Ns Ar n
492*bbf21555SRichard Loweoption, a file system mounted with the
493*bbf21555SRichard Lowe.Sy soft
494*bbf21555SRichard Loweoption returns an error on the request; one mounted with the
495*bbf21555SRichard Lowe.Sy hard
496*bbf21555SRichard Loweoption prints a warning message and continues to retry the request.
497*bbf21555SRichard Lowe.Ss Hard versus Soft
498*bbf21555SRichard LoweFile systems that are mounted read-write or that contain executable files should
499*bbf21555SRichard Lowealways be mounted with the
500*bbf21555SRichard Lowe.Sy hard
501*bbf21555SRichard Loweoption.
502*bbf21555SRichard LoweApplications using
503*bbf21555SRichard Lowe.Sy soft
504*bbf21555SRichard Lowemounted file systems can incur unexpected I/O errors, file corruption, and
505*bbf21555SRichard Loweunexpected program core dumps.
506*bbf21555SRichard LoweThe
507*bbf21555SRichard Lowe.Sy soft
508*bbf21555SRichard Loweoption is not recommended.
509*bbf21555SRichard Lowe.Ss Authenticated requests
510*bbf21555SRichard LoweThe server can require authenticated NFS requests from the client.
511*bbf21555SRichard Lowe.Sy sec Ns = Ns Sy dh
512*bbf21555SRichard Loweauthentication might be required.
513*bbf21555SRichard LoweSee
514*bbf21555SRichard Lowe.Xr nfssec 7 .
515*bbf21555SRichard Lowe.Ss URLs and the public option
516*bbf21555SRichard LoweIf the
517*bbf21555SRichard Lowe.Sy public
518*bbf21555SRichard Loweoption is specified, or if the
519*bbf21555SRichard Lowe.Ar resource
520*bbf21555SRichard Loweincludes and NFS URL,
521*bbf21555SRichard Lowe.Nm mount
522*bbf21555SRichard Loweattempts to connect to the server using the public file handle lookup protocol.
523*bbf21555SRichard LoweSee
524*bbf21555SRichard Lowe.Rs
525*bbf21555SRichard Lowe.%R WebNFS Client Specification
526*bbf21555SRichard Lowe.%T RFC 2054
527*bbf21555SRichard Lowe.Re
528*bbf21555SRichard LoweIf the server supports the public file handle, the attempt is successful;
529*bbf21555SRichard Lowe.Nm mount
530*bbf21555SRichard Lowedoes not need to contact the server's
531*bbf21555SRichard Lowe.Xr rpcbind 8
532*bbf21555SRichard Loweand the
533*bbf21555SRichard Lowe.Xr mountd 8
534*bbf21555SRichard Lowedaemons to get the port number of the
535*bbf21555SRichard Lowe.Nm mount
536*bbf21555SRichard Loweserver and the initial file handle of
537*bbf21555SRichard Lowe.Ar pathname ,
538*bbf21555SRichard Lowerespectively.
539*bbf21555SRichard LoweIf the NFS client and server are separated by a firewall that allows all
540*bbf21555SRichard Loweoutbound connections through specific ports, such as
541*bbf21555SRichard Lowe.Dv NFS_PORT ,
542*bbf21555SRichard Lowethen this enables NFS operations through the firewall.
543*bbf21555SRichard LoweThe public option and the NFS URL can be specified independently or together.
544*bbf21555SRichard LoweThey interact as specified in the following matrix:
545*bbf21555SRichard Lowe.Bd -literal
546*bbf21555SRichard Lowe                   Resource Style
547*bbf21555SRichard Lowe
548*bbf21555SRichard Lowe                   host:pathname              NFS URL
549*bbf21555SRichard Lowe
550*bbf21555SRichard Lowepublic option      Force public file          Force public file
551*bbf21555SRichard Lowe                   handle and fail            handle and fail
552*bbf21555SRichard Lowe                   mount if not supported.    mount if not supported.
553*bbf21555SRichard Lowe
554*bbf21555SRichard Lowe                   Use Native paths.          Use Canonical paths.
555*bbf21555SRichard Lowe
556*bbf21555SRichard Lowedefault            Use MOUNT protocol.        Try public file handle
557*bbf21555SRichard Lowe                                              with Canonical paths.
558*bbf21555SRichard Lowe                                              Fall back to MOUNT
559*bbf21555SRichard Lowe                                              protocol if not
560*bbf21555SRichard Lowe                                              supported.
561*bbf21555SRichard Lowe.Ed
562*bbf21555SRichard Lowe.Pp
563*bbf21555SRichard LoweA Native path is a path name that is interpreted according to conventions used
564*bbf21555SRichard Loweon the native operating system of the NFS server.
565*bbf21555SRichard LoweA Canonical path is a path name that is interpreted according to the URL rules.
566*bbf21555SRichard LoweSee
567*bbf21555SRichard Lowe.Rs
568*bbf21555SRichard Lowe.%R Uniform Resource Locators (URL)
569*bbf21555SRichard Lowe.%T RFC 1738
570*bbf21555SRichard Lowe.Re
571*bbf21555SRichard Lowe.Ss Replicated file systems and failover
572*bbf21555SRichard Lowe.Ar resource
573*bbf21555SRichard Lowecan list multiple read-only file systems to be used to provide data.
574*bbf21555SRichard LoweThese file systems should contain equivalent directory structures and identical
575*bbf21555SRichard Lowefiles.
576*bbf21555SRichard LoweIt is also recommended that they be created by a utility such as
577*bbf21555SRichard Lowe.Xr rdist 1 .
578*bbf21555SRichard LoweThe file systems can be specified either with a comma-separated list of
579*bbf21555SRichard Lowe.Pa host:/pathname
580*bbf21555SRichard Loweentries and/or NFS URL entries, or with a comma-separated list of hosts, if all
581*bbf21555SRichard Lowefile system names are the same.
582*bbf21555SRichard LoweIf multiple file systems are named and the first server in the list is down,
583*bbf21555SRichard Lowefailover uses the next alternate server to access files.
584*bbf21555SRichard LoweIf the read-only option is not chosen, replication is disabled.
585*bbf21555SRichard LoweFile access, for NFS Versions 2 and 3, is blocked on the original if NFS locks
586*bbf21555SRichard Loweare active for that file.
587*bbf21555SRichard Lowe.Ss File Attributes
588*bbf21555SRichard LoweTo improve NFS read performance, files and file attributes are cached.
589*bbf21555SRichard LoweFile modification times get updated whenever a write occurs.
590*bbf21555SRichard LoweHowever, file access times can be temporarily out-of-date until the cache gets
591*bbf21555SRichard Lowerefreshed.
592*bbf21555SRichard Lowe.Pp
593*bbf21555SRichard LoweThe attribute cache retains file attributes on the client.
594*bbf21555SRichard LoweAttributes for a file are assigned a time to be flushed.
595*bbf21555SRichard LoweIf the file is modified before the flush time, then the flush time is extended
596*bbf21555SRichard Loweby the time since the last modification
597*bbf21555SRichard Lowe.Po under the assumption that files that changed recently are likely to change
598*bbf21555SRichard Lowesoon
599*bbf21555SRichard Lowe.Pc .
600*bbf21555SRichard LoweThere is a minimum and maximum flush time extension for regular files and for
601*bbf21555SRichard Lowedirectories.
602*bbf21555SRichard LoweSetting
603*bbf21555SRichard Lowe.Sy actimeo Ns = Ns Ar n
604*bbf21555SRichard Lowesets flush time to
605*bbf21555SRichard Lowe.Ar n
606*bbf21555SRichard Loweseconds for both regular files and directories.
607*bbf21555SRichard Lowe.Pp
608*bbf21555SRichard LoweSetting
609*bbf21555SRichard Lowe.Sy actimeo Ns = Ns Sy 0
610*bbf21555SRichard Lowedisables attribute caching on the client.
611*bbf21555SRichard LoweThis means that every reference to attributes is satisfied directly from the
612*bbf21555SRichard Loweserver though file data is still cached.
613*bbf21555SRichard LoweWhile this guarantees that the client always has the latest file attributes from
614*bbf21555SRichard Lowethe server, it has an adverse effect on performance through additional latency,
615*bbf21555SRichard Lowenetwork load, and server load.
616*bbf21555SRichard Lowe.Pp
617*bbf21555SRichard LoweSetting the
618*bbf21555SRichard Lowe.Sy noac
619*bbf21555SRichard Loweoption also disables attribute caching, but has the further effect of disabling
620*bbf21555SRichard Loweclient write caching.
621*bbf21555SRichard LoweWhile this guarantees that data written by an application is written directly to
622*bbf21555SRichard Lowea server, where it can be viewed immediately by other clients, it has a
623*bbf21555SRichard Lowesignificant adverse effect on client write performance.
624*bbf21555SRichard LoweData written into memory-mapped file pages
625*bbf21555SRichard Lowe.Pq Xr mmap 2
626*bbf21555SRichard Loweare not written directly to this server.
627*bbf21555SRichard Lowe.Ss Specifying Values for Attribute Cache Duration Options
628*bbf21555SRichard LoweThe attribute cache duration options are
629*bbf21555SRichard Lowe.Sy acdirmax , acdirmin , acregmax , acregmin ,
630*bbf21555SRichard Loweand
631*bbf21555SRichard Lowe.Sy actimeo ,
632*bbf21555SRichard Loweas described under
633*bbf21555SRichard Lowe.Sx Options.
634*bbf21555SRichard LoweA value specified for
635*bbf21555SRichard Lowe.Sy actimeo
636*bbf21555SRichard Lowesets the values of all attribute cache duration options except for any of these
637*bbf21555SRichard Loweoptions specified following
638*bbf21555SRichard Lowe.Sy actimeo
639*bbf21555SRichard Loweon a
640*bbf21555SRichard Lowe.Nm mount
641*bbf21555SRichard Lowecommand line.
642*bbf21555SRichard LoweFor example, consider the following command:
643*bbf21555SRichard Lowe.Bd -literal -offset indent
644*bbf21555SRichard Loweexample# mount -o acdirmax=10,actimeo=1000 server:/path /localpath
645*bbf21555SRichard Lowe.Ed
646*bbf21555SRichard Lowe.Pp
647*bbf21555SRichard LoweBecause
648*bbf21555SRichard Lowe.Sy actimeo
649*bbf21555SRichard Loweis the last duration option in the command line, its value
650*bbf21555SRichard Lowe.Pq 1000
651*bbf21555SRichard Lowebecomes the setting for all of the duration options, including
652*bbf21555SRichard Lowe.Sy acdirmax .
653*bbf21555SRichard LoweNow consider:
654*bbf21555SRichard Lowe.Bd -literal -offset indent
655*bbf21555SRichard Loweexample# mount -o actimeo=1000,acdirmax=10 server:/path /localpath
656*bbf21555SRichard Lowe.Ed
657*bbf21555SRichard Lowe.Pp
658*bbf21555SRichard LoweBecause the
659*bbf21555SRichard Lowe.Sy acdirmax
660*bbf21555SRichard Loweoption follows
661*bbf21555SRichard Lowe.Sy actimeo
662*bbf21555SRichard Loweon the command line, it is assigned the value specified
663*bbf21555SRichard Lowe.Pq 10 .
664*bbf21555SRichard LoweThe remaining duration options are set to the value of
665*bbf21555SRichard Lowe.Sy actimeo
666*bbf21555SRichard Lowe.Pq 1000 .
667*bbf21555SRichard Lowe.Sh FILES
668*bbf21555SRichard Lowe.Bl -tag -width Ds
669*bbf21555SRichard Lowe.It Pa /etc/mnttab
670*bbf21555SRichard Lowetable of mounted file systems
671*bbf21555SRichard Lowe.It Pa /etc/dfs/fstypes
672*bbf21555SRichard Lowedefault distributed file system type
673*bbf21555SRichard Lowe.It Pa /etc/vfstab
674*bbf21555SRichard Lowetable of automatically mounted resources
675*bbf21555SRichard Lowe.El
676*bbf21555SRichard Lowe.Sh EXAMPLES
677*bbf21555SRichard Lowe.Bl -tag -width Ds
678*bbf21555SRichard Lowe.It Sy Example 1 No Mounting an NFS File System
679*bbf21555SRichard LoweTo mount an NFS file system:
680*bbf21555SRichard Lowe.Bd -literal
681*bbf21555SRichard Loweexample# mount serv:/usr/src /usr/src
682*bbf21555SRichard Lowe.Ed
683*bbf21555SRichard Lowe.It Xo
684*bbf21555SRichard Lowe.Sy Example 2
685*bbf21555SRichard LoweMounting An NFS File System Read-Only With No suid Privileges
686*bbf21555SRichard Lowe.Xc
687*bbf21555SRichard LoweTo mount an NFS file system read-only with no suid privileges:
688*bbf21555SRichard Lowe.Bd -literal
689*bbf21555SRichard Loweexample# mount -r -o nosuid serv:/usr/src /usr/src
690*bbf21555SRichard Lowe.Ed
691*bbf21555SRichard Lowe.It Xo
692*bbf21555SRichard Lowe.Sy Example 3
693*bbf21555SRichard LoweMounting An NFS File System Over Version 2, with the UDP Transport
694*bbf21555SRichard Lowe.Xc
695*bbf21555SRichard LoweTo mount an NFS file system over Version 2, with the UDP transport:
696*bbf21555SRichard Lowe.Bd -literal
697*bbf21555SRichard Loweexample# mount -o vers=2,proto=udp serv:/usr/src /usr/src
698*bbf21555SRichard Lowe.Ed
699*bbf21555SRichard Lowe.It Xo
700*bbf21555SRichard Lowe.Sy Example 4
701*bbf21555SRichard LoweMounting an NFS File System Using An NFS URL
702*bbf21555SRichard Lowe.Xc
703*bbf21555SRichard LoweTo mount an NFS file system using an NFS URL
704*bbf21555SRichard Lowe.Pq a canonical path :
705*bbf21555SRichard Lowe.Bd -literal
706*bbf21555SRichard Loweexample# mount nfs://serv/usr/man /usr/man
707*bbf21555SRichard Lowe.Ed
708*bbf21555SRichard Lowe.It Xo
709*bbf21555SRichard Lowe.Sy Example 5
710*bbf21555SRichard LoweMounting An NFS File System Forcing Use Of The Public File Handle
711*bbf21555SRichard Lowe.Xc
712*bbf21555SRichard LoweTo mount an NFS file system and force the use of the public file handle
713*bbf21555SRichard Loweand an NFS URL
714*bbf21555SRichard Lowe.Pq a canonical path
715*bbf21555SRichard Lowethat has a non 7-bit ASCII escape sequence:
716*bbf21555SRichard Lowe.Bd -literal
717*bbf21555SRichard Loweexample# mount -o public nfs://serv/usr/%A0abc /mnt/test
718*bbf21555SRichard Lowe.Ed
719*bbf21555SRichard Lowe.It Xo
720*bbf21555SRichard Lowe.Sy Example 6
721*bbf21555SRichard LoweMounting an NFS File System Using a Native Path
722*bbf21555SRichard Lowe.Xc
723*bbf21555SRichard LoweTo mount an NFS file system using a native path
724*bbf21555SRichard Lowe.Po where the server uses colons
725*bbf21555SRichard Lowe.Pq Qq Sy \:
726*bbf21555SRichard Loweas the component separator
727*bbf21555SRichard Lowe.Pc
728*bbf21555SRichard Loweand the public file handle:
729*bbf21555SRichard Lowe.Bd -literal
730*bbf21555SRichard Loweexample# mount -o public serv:C:doc:new /usr/doc
731*bbf21555SRichard Lowe.Ed
732*bbf21555SRichard Lowe.It Xo
733*bbf21555SRichard Lowe.Sy Example 7
734*bbf21555SRichard LoweMounting a Replicated Set of NFS File Systems with the Same Pathnames
735*bbf21555SRichard Lowe.Xc
736*bbf21555SRichard LoweTo mount a replicated set of NFS file systems with the same pathnames:
737*bbf21555SRichard Lowe.Bd -literal
738*bbf21555SRichard Loweexample# mount serv-a,serv-b,serv-c:/usr/man /usr/man
739*bbf21555SRichard Lowe.Ed
740*bbf21555SRichard Lowe.It Xo
741*bbf21555SRichard Lowe.Sy Example 8
742*bbf21555SRichard LoweMounting a Replicated Set of NFS File Systems with Different Pathnames
743*bbf21555SRichard Lowe.Xc
744*bbf21555SRichard LoweTo mount a replicated set of NFS file systems with different pathnames:
745*bbf21555SRichard Lowe.Bd -literal
746*bbf21555SRichard Loweexample# mount serv-x:/usr/man,serv-y:/var/man,nfs://serv-z/man /usr/man
747*bbf21555SRichard Lowe.Ed
748*bbf21555SRichard Lowe.El
749*bbf21555SRichard Lowe.Sh SEE ALSO
750*bbf21555SRichard Lowe.Xr rdist 1 ,
751*bbf21555SRichard Lowe.Xr mkdir 2 ,
752*bbf21555SRichard Lowe.Xr mmap 2 ,
753*bbf21555SRichard Lowe.Xr mount 2 ,
754*bbf21555SRichard Lowe.Xr open 2 ,
755*bbf21555SRichard Lowe.Xr umount 2 ,
756*bbf21555SRichard Lowe.Xr lofs 4FS ,
757*bbf21555SRichard Lowe.Xr inet 4P ,
758*bbf21555SRichard Lowe.Xr inet6 4P ,
759*bbf21555SRichard Lowe.Xr mnttab 5 ,
760*bbf21555SRichard Lowe.Xr nfs 5 ,
761*bbf21555SRichard Lowe.Xr nfssec.conf 5 ,
762*bbf21555SRichard Lowe.Xr attributes 7 ,
763*bbf21555SRichard Lowe.Xr fsattr 7 ,
764*bbf21555SRichard Lowe.Xr nfssec 7 ,
765*bbf21555SRichard Lowe.Xr standards 7 ,
766*bbf21555SRichard Lowe.Xr lockd 8 ,
767*bbf21555SRichard Lowe.Xr mountall 8 ,
768*bbf21555SRichard Lowe.Xr mountd 8 ,
769*bbf21555SRichard Lowe.Xr nfsd 8 ,
770*bbf21555SRichard Lowe.Xr quota 8 ,
771*bbf21555SRichard Lowe.Xr statd 8
772*bbf21555SRichard Lowe.Rs
773*bbf21555SRichard Lowe.%A Callaghan
774*bbf21555SRichard Lowe.%A Brent
775*bbf21555SRichard Lowe.%R WebNFS Client Specification
776*bbf21555SRichard Lowe.%T RFC 2054
777*bbf21555SRichard Lowe.%D October 1996
778*bbf21555SRichard Lowe.Re
779*bbf21555SRichard Lowe.Rs
780*bbf21555SRichard Lowe.%A Callaghan
781*bbf21555SRichard Lowe.%A Brent
782*bbf21555SRichard Lowe.%R NFS URL Scheme
783*bbf21555SRichard Lowe.%T RFC 2224
784*bbf21555SRichard Lowe.%D October 1997
785*bbf21555SRichard Lowe.Re
786*bbf21555SRichard Lowe.Rs
787*bbf21555SRichard Lowe.%A Berners-Lee
788*bbf21555SRichard Lowe.%A Masinter
789*bbf21555SRichard Lowe.%A McCahill
790*bbf21555SRichard Lowe.%R Uniform Resource Locators (URL)
791*bbf21555SRichard Lowe.%T RFC 1738
792*bbf21555SRichard Lowe.%D December 1994
793*bbf21555SRichard Lowe.Re
794*bbf21555SRichard Lowe.Sh NOTES
795*bbf21555SRichard LoweAn NFS server should not attempt to mount its own file systems.
796*bbf21555SRichard LoweSee
797*bbf21555SRichard Lowe.Xr lofs 4FS .
798*bbf21555SRichard Lowe.Pp
799*bbf21555SRichard LoweIf the directory on which a file system is to be mounted is a symbolic link,
800*bbf21555SRichard Lowethe file system is mounted on the directory to which the symbolic link refers,
801*bbf21555SRichard Lowerather than being mounted on top of the symbolic link itself.
802*bbf21555SRichard Lowe.Pp
803*bbf21555SRichard LoweSunOS 4.x used the
804*bbf21555SRichard Lowe.Sy biod
805*bbf21555SRichard Lowemaintenance procedure to perform parallel read-ahead and write-behind on NFS
806*bbf21555SRichard Loweclients.
807*bbf21555SRichard LoweSunOS 5.x made
808*bbf21555SRichard Lowe.Sy biod
809*bbf21555SRichard Loweobsolete with multi-threaded processing, which transparently performs parallel
810*bbf21555SRichard Loweread-ahead and write-behind.
811*bbf21555SRichard Lowe.Pp
812*bbf21555SRichard LoweSince the root
813*bbf21555SRichard Lowe.Pq Pa /
814*bbf21555SRichard Lowefile system is mounted read-only by the kernel during the boot process, only the
815*bbf21555SRichard Lowe.Sy remount
816*bbf21555SRichard Loweoption
817*bbf21555SRichard Lowe.Po and options that can be used in conjunction with
818*bbf21555SRichard Lowe.Sy remount
819*bbf21555SRichard Lowe.Pc
820*bbf21555SRichard Loweaffect the root
821*bbf21555SRichard Lowe.Pq Pa /
822*bbf21555SRichard Loweentry in the
823*bbf21555SRichard Lowe.Pa /etc/vfstab
824*bbf21555SRichard Lowefile.
825*bbf21555SRichard Lowe.Pp
826*bbf21555SRichard LoweThe NFS client service is managed by the service management facility,
827*bbf21555SRichard Lowe.Xr smf 7 ,
828*bbf21555SRichard Loweunder the service identifier:
829*bbf21555SRichard Lowe.Bd -literal -offset indent
830*bbf21555SRichard Lowesvc:/network/nfs/client:default
831*bbf21555SRichard Lowe.Ed
832*bbf21555SRichard Lowe.Pp
833*bbf21555SRichard LoweAdministrative actions on this service, such as enabling, disabling, or
834*bbf21555SRichard Lowerequesting restart, can be performed using
835*bbf21555SRichard Lowe.Xr svcadm 8 .
836*bbf21555SRichard LoweThe service's status can be queried using the
837*bbf21555SRichard Lowe.Xr svcs 1
838*bbf21555SRichard Lowecommand.
839