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) 2004, Sun Microsystems, Inc. All Rights Reserved 20*bbf21555SRichard Lowe.\" Copyright 2016 Nexenta Systems, Inc. 21*bbf21555SRichard Lowe.\" Copyright 2020 Joyent, Inc. 22*bbf21555SRichard Lowe.\" 23*bbf21555SRichard Lowe.Dd February 4, 2020 24*bbf21555SRichard Lowe.Dt NFSD 8 25*bbf21555SRichard Lowe.Os 26*bbf21555SRichard Lowe.Sh NAME 27*bbf21555SRichard Lowe.Nm nfsd 28*bbf21555SRichard Lowe.Nd NFS daemon 29*bbf21555SRichard Lowe.Sh SYNOPSIS 30*bbf21555SRichard Lowe.Nm /usr/lib/nfs/nfsd 31*bbf21555SRichard Lowe.Op Fl a 32*bbf21555SRichard Lowe.Op Fl c Ar max_conn 33*bbf21555SRichard Lowe.Op Fl l Ar listen_backlog 34*bbf21555SRichard Lowe.Op Fl p Ar protocol 35*bbf21555SRichard Lowe.Op Fl t Ar device 36*bbf21555SRichard Lowe.Op Ar nservers 37*bbf21555SRichard Lowe.Sh DESCRIPTION 38*bbf21555SRichard Lowe.Nm 39*bbf21555SRichard Loweis the daemon that handles client file system requests. 40*bbf21555SRichard LoweOnly users with 41*bbf21555SRichard Lowe.Brq Sy PRIV_SYS_NFS 42*bbf21555SRichard Loweand sufficient privileges to write to 43*bbf21555SRichard Lowe.Pa /var/run 44*bbf21555SRichard Lowecan run this daemon. 45*bbf21555SRichard Lowe.Pp 46*bbf21555SRichard LoweThe 47*bbf21555SRichard Lowe.Nm 48*bbf21555SRichard Lowedaemon is automatically invoked using 49*bbf21555SRichard Lowe.Xr share 8 50*bbf21555SRichard Lowewith the 51*bbf21555SRichard Lowe.Fl a 52*bbf21555SRichard Loweoption. 53*bbf21555SRichard Lowe.Pp 54*bbf21555SRichard LoweBy default, 55*bbf21555SRichard Lowe.Nm 56*bbf21555SRichard Lowestarts over the TCP and UDP transports for versions 2 and 3. 57*bbf21555SRichard LoweBy default, it starts over the TCP for version 4. 58*bbf21555SRichard LoweYou can change this with the 59*bbf21555SRichard Lowe.Fl p 60*bbf21555SRichard Loweoption. 61*bbf21555SRichard Lowe.Pp 62*bbf21555SRichard LoweA previously invoked 63*bbf21555SRichard Lowe.Nm 64*bbf21555SRichard Lowedaemon started with or without options must be stopped before invoking another 65*bbf21555SRichard Lowe.Nm 66*bbf21555SRichard Lowecommand. 67*bbf21555SRichard Lowe.Pp 68*bbf21555SRichard LoweSee 69*bbf21555SRichard Lowe.Xr nfs 5 70*bbf21555SRichard Lowefor available configuration properties for 71*bbf21555SRichard Lowe.Nm . 72*bbf21555SRichard Lowe.Ss Options 73*bbf21555SRichard LoweThe following options are supported: 74*bbf21555SRichard Lowe.Bl -tag -width Ds 75*bbf21555SRichard Lowe.It Fl a 76*bbf21555SRichard LoweStart a NFS daemon over all available connectionless and connection-oriented 77*bbf21555SRichard Lowetransports, including UDP and TCP. 78*bbf21555SRichard LoweEquivalent of setting the 79*bbf21555SRichard Lowe.Sy protocol 80*bbf21555SRichard Loweproperty to 81*bbf21555SRichard Lowe.Sy all . 82*bbf21555SRichard Lowe.It Fl c Ar max_conn 83*bbf21555SRichard LoweSet the maximum number of connections allowed to the NFS server over 84*bbf21555SRichard Loweconnection-oriented transports. 85*bbf21555SRichard LoweBy default, the number of connections is unlimited. 86*bbf21555SRichard LoweEquivalent of the 87*bbf21555SRichard Lowe.Sy max_connections 88*bbf21555SRichard Loweproperty. 89*bbf21555SRichard Lowe.It Fl l 90*bbf21555SRichard LoweSet connection queue length for the NFS server over a connection-oriented 91*bbf21555SRichard Lowetransport. 92*bbf21555SRichard LoweThe default value is 32 entries. 93*bbf21555SRichard LoweEquivalent of the 94*bbf21555SRichard Lowe.Sy listen_backlog 95*bbf21555SRichard Loweproperty. 96*bbf21555SRichard Lowe.It Fl p Ar protocol 97*bbf21555SRichard LoweStart a NFS daemon over the specified protocol. 98*bbf21555SRichard LoweEquivalent of the 99*bbf21555SRichard Lowe.Sy protocol 100*bbf21555SRichard Loweproperty. 101*bbf21555SRichard Lowe.It Fl t Ar device 102*bbf21555SRichard LoweStart a NFS daemon for the transport specified by the given device. 103*bbf21555SRichard LoweEquivalent of the 104*bbf21555SRichard Lowe.Sy device 105*bbf21555SRichard Loweproperty. 106*bbf21555SRichard Lowe.El 107*bbf21555SRichard Lowe.Ss Operands 108*bbf21555SRichard LoweThe following operands are supported: 109*bbf21555SRichard Lowe.Bl -tag -width Ds 110*bbf21555SRichard Lowe.It Ar nservers 111*bbf21555SRichard LoweThis sets the maximum number of concurrent NFS requests that the server can 112*bbf21555SRichard Lowehandle. 113*bbf21555SRichard LoweThis concurrency is achieved by up to 114*bbf21555SRichard Lowe.Ar nservers 115*bbf21555SRichard Lowethreads created as needed in the kernel. 116*bbf21555SRichard Lowe.Ar nservers 117*bbf21555SRichard Loweshould be based on the load expected on this server. 118*bbf21555SRichard Lowe16 is the usual number of 119*bbf21555SRichard Lowe.Ar nservers . 120*bbf21555SRichard LoweIf 121*bbf21555SRichard Lowe.Ar nservers 122*bbf21555SRichard Loweis not specified, the maximum number of concurrent NFS requests will default to 123*bbf21555SRichard Lowe1. 124*bbf21555SRichard LoweEquivalent of the 125*bbf21555SRichard Lowe.Sy servers 126*bbf21555SRichard Loweproperty. 127*bbf21555SRichard Lowe.El 128*bbf21555SRichard Lowe.Ss Usage 129*bbf21555SRichard LoweIf the 130*bbf21555SRichard Lowe.Sy nfs_portmon 131*bbf21555SRichard Lowevariable is set to non-zero value in 132*bbf21555SRichard Lowe.Pa /etc/system , 133*bbf21555SRichard Lowethen clients are required to use privileged ports 134*bbf21555SRichard Lowe.Po ports < 135*bbf21555SRichard Lowe.Dv IPPORT_RESERVED 136*bbf21555SRichard Lowe.Pc 137*bbf21555SRichard Loweto get NFS services. 138*bbf21555SRichard LoweThis variable is equal to zero by default. 139*bbf21555SRichard LoweThis variable has been moved from the 140*bbf21555SRichard Lowe.Qq nfs 141*bbf21555SRichard Lowemodule to the 142*bbf21555SRichard Lowe.Qq nfssrv 143*bbf21555SRichard Lowemodule. 144*bbf21555SRichard LoweTo set the variable, edit the 145*bbf21555SRichard Lowe.Pa /etc/system 146*bbf21555SRichard Lowefile and add this entry: 147*bbf21555SRichard Lowe.Bd -literal -offset indent 148*bbf21555SRichard Loweset nfssrv:nfs_portmon = 1 149*bbf21555SRichard Lowe.Ed 150*bbf21555SRichard Lowe.Sh FILES 151*bbf21555SRichard Lowe.Bl -tag -width Ds 152*bbf21555SRichard Lowe.It Pa \&.nfsXXX 153*bbf21555SRichard LoweClient machine pointer to an open-but-unlinked file. 154*bbf21555SRichard Lowe.It Pa /etc/system 155*bbf21555SRichard LoweSystem configuration information file. 156*bbf21555SRichard Lowe.It Xo 157*bbf21555SRichard Lowe.Pa /var/nfs/v4_state 158*bbf21555SRichard Lowe.br 159*bbf21555SRichard Lowe.Pa /var/nfs/v4_oldstate 160*bbf21555SRichard Lowe.Xc 161*bbf21555SRichard LoweDirectories used by the server to manage client state information. 162*bbf21555SRichard LoweThese directories should not be removed. 163*bbf21555SRichard Lowe.El 164*bbf21555SRichard Lowe.Sh EXIT STATUS 165*bbf21555SRichard Lowe.Bl -tag -width Ds 166*bbf21555SRichard Lowe.It Sy 0 167*bbf21555SRichard LoweDaemon started successfully. 168*bbf21555SRichard Lowe.It Sy 1 169*bbf21555SRichard LoweDaemon failed to start. 170*bbf21555SRichard Lowe.El 171*bbf21555SRichard Lowe.Sh SEE ALSO 172*bbf21555SRichard Lowe.Xr svcs 1 , 173*bbf21555SRichard Lowe.Xr nfs 5 , 174*bbf21555SRichard Lowe.Xr sharetab 5 , 175*bbf21555SRichard Lowe.Xr system 5 , 176*bbf21555SRichard Lowe.Xr attributes 7 , 177*bbf21555SRichard Lowe.Xr smf 7 , 178*bbf21555SRichard Lowe.Xr zones 7 , 179*bbf21555SRichard Lowe.Xr mountd 8 , 180*bbf21555SRichard Lowe.Xr share 8 , 181*bbf21555SRichard Lowe.Xr sharectl 8 , 182*bbf21555SRichard Lowe.Xr sharemgr 8 , 183*bbf21555SRichard Lowe.Xr svcadm 8 184*bbf21555SRichard Lowe.Sh NOTES 185*bbf21555SRichard LoweManually starting and restarting 186*bbf21555SRichard Lowe.Nm 187*bbf21555SRichard Loweis not recommended. 188*bbf21555SRichard LoweIf it is necessary to do so, use 189*bbf21555SRichard Lowe.Nm svcadm 190*bbf21555SRichard Loweto enable or disable the nfs service 191*bbf21555SRichard Lowe.Pq svc:/network/nfs/server . 192*bbf21555SRichard LoweIf it is disabled, it will be enabled by 193*bbf21555SRichard Lowe.Xr share_nfs 8 , 194*bbf21555SRichard Loweunless its 195*bbf21555SRichard Lowe.Sy application Ns / Ns Sy auto_enable 196*bbf21555SRichard Loweproperty is set to 197*bbf21555SRichard Lowe.Sy false . 198*bbf21555SRichard LoweSee 199*bbf21555SRichard Lowe.Xr smf 7 200*bbf21555SRichard Loweand 201*bbf21555SRichard Lowe.Xr svcadm 8 202*bbf21555SRichard Lowefor more information. 203*bbf21555SRichard Lowe.Pp 204*bbf21555SRichard LoweThe 205*bbf21555SRichard Lowe.Nm 206*bbf21555SRichard Loweservice is managed by the service management facility, 207*bbf21555SRichard Lowe.Xr smf 7 , 208*bbf21555SRichard Loweunder the service identifier: 209*bbf21555SRichard Lowe.Bd -literal -offset indent 210*bbf21555SRichard Lowesvc:/network/nfs/server 211*bbf21555SRichard Lowe.Ed 212*bbf21555SRichard Lowe.Pp 213*bbf21555SRichard LoweAdministrative actions on this service, such as enabling, disabling, or 214*bbf21555SRichard Lowerequesting restart, can be performed using 215*bbf21555SRichard Lowe.Xr svcadm 8 . 216*bbf21555SRichard LoweThe service's status can be queried using the 217*bbf21555SRichard Lowe.Xr svcs 1 218*bbf21555SRichard Lowecommand. 219*bbf21555SRichard Lowe.Pp 220*bbf21555SRichard LoweIf 221*bbf21555SRichard Lowe.Nm 222*bbf21555SRichard Loweis killed with 223*bbf21555SRichard Lowe.Sy SIGTERM , 224*bbf21555SRichard Loweit will not be restarted by the service management facility. 225*bbf21555SRichard LoweInstead, 226*bbf21555SRichard Lowe.Nm 227*bbf21555SRichard Lowecan be restarted by other signals, such as 228*bbf21555SRichard Lowe.Sy SIGINT . 229*bbf21555SRichard Lowe.Pp 230*bbf21555SRichard LoweNFS service, which includes 231*bbf21555SRichard Lowe.Nm , 232*bbf21555SRichard Lowecan run inside a non-global zone. 233*bbf21555SRichard LoweSee the discussion under ZONES in 234*bbf21555SRichard Lowe.Xr nfs 5 235*bbf21555SRichard Lowefor more information. 236