1*5cbe0011Schristos.\" $NetBSD: nfsd.8,v 1.24 2016/03/17 15:25:46 christos Exp $ 20114e805Scgd.\" 3625a6892Smycroft.\" Copyright (c) 1989, 1991, 1993 4625a6892Smycroft.\" The Regents of the University of California. All rights reserved. 561f28255Scgd.\" 661f28255Scgd.\" Redistribution and use in source and binary forms, with or without 761f28255Scgd.\" modification, are permitted provided that the following conditions 861f28255Scgd.\" are met: 961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright 1061f28255Scgd.\" notice, this list of conditions and the following disclaimer. 1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 1261f28255Scgd.\" notice, this list of conditions and the following disclaimer in the 1361f28255Scgd.\" documentation and/or other materials provided with the distribution. 14326b2259Sagc.\" 3. Neither the name of the University nor the names of its contributors 1561f28255Scgd.\" may be used to endorse or promote products derived from this software 1661f28255Scgd.\" without specific prior written permission. 1761f28255Scgd.\" 1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2161f28255Scgd.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2861f28255Scgd.\" SUCH DAMAGE. 2961f28255Scgd.\" 30f916611fSfvdl.\" @(#)nfsd.8 8.4 (Berkeley) 3/29/95 31346aa5ddScgd.\" 32*5cbe0011Schristos.Dd March 17, 2016 3361f28255Scgd.Dt NFSD 8 3461f28255Scgd.Os 3561f28255Scgd.Sh NAME 3661f28255Scgd.Nm nfsd 3761f28255Scgd.Nd remote 3861f28255Scgd.Tn NFS 3961f28255Scgdserver 4061f28255Scgd.Sh SYNOPSIS 41c80b3534Slukem.Nm 42*5cbe0011Schristos.Op Fl 46drut 438e73684fSyamt.Op Fl n Ar num_threads 4461f28255Scgd.Sh DESCRIPTION 45c80b3534Slukem.Nm 4661f28255Scgdruns on a server machine to service 4761f28255Scgd.Tn NFS 4861f28255Scgdrequests from client machines. 4961f28255ScgdAt least one 50c80b3534Slukem.Nm 5161f28255Scgdmust be running for a machine to operate as a server. 5261f28255Scgd.Pp 53625a6892SmycroftUnless otherwise specified, four servers for 54625a6892Smycroft.Tn UDP 55625a6892Smycrofttransport are started. 56625a6892Smycroft.Pp 57625a6892SmycroftThe following options are available: 5861f28255Scgd.Bl -tag -width Ds 59*5cbe0011Schristos.It Fl d 60*5cbe0011SchristosTurn on debugging, don't fork and log to stderr. 6161f28255Scgd.It Fl r 6261f28255ScgdRegister the 6361f28255Scgd.Tn NFS 6461f28255Scgdservice with 658ab9946eSenami.Xr rpcbind 8 66625a6892Smycroftwithout creating any servers. 67625a6892SmycroftThis option can be used along with the 6861f28255Scgd.Fl u 6961f28255Scgdor 7061f28255Scgd.Fl t 7161f28255Scgdoptions to re-register NFS if the portmap server is restarted. 72625a6892Smycroft.It Fl n 738e73684fSyamtSpecifies how many server threads to create. 748e73684fSyamtThe default is 4. 758e73684fSyamtA server should run enough threads to handle 768e73684fSyamtthe maximum level of concurrency from its clients. 77b8117286Swiz.It Fl 4 78b8117286SwizOnly listen to IPv4 requests. 79eff76661SchristosBy default 80eff76661Schristos.Nm 81eff76661Schristoslistens to both IPv6 and IPv4 and tries to register for both. 82b8117286Swiz.It Fl 6 83b8117286SwizOnly listen to IPv6 requests. 8461f28255Scgd.It Fl t 85eff76661SchristosServe only 8661f28255Scgd.Tn TCP NFS 8761f28255Scgdclients. 88eff76661SchristosBy default 89eff76661Schristos.Nm 90eff76661Schristosserves both 91eff76661Schristos.Tn TCP NFS 92eff76661Schristosand 93b8117286Swiz.Tn UDP NFS 94eff76661Schristosclients 9561f28255Scgd.It Fl u 96eff76661SchristosServe only 9761f28255Scgd.Tn UDP NFS 9861f28255Scgdclients. 9961f28255Scgd.El 10061f28255Scgd.Pp 101c80b3534Slukem.Nm 10261f28255Scgdlistens for service requests at the port indicated in the 10361f28255Scgd.Tn NFS 10461f28255Scgdserver specification; see 10561f28255Scgd.%T "Network File System Protocol Specification" , 106f916611fSfvdlRFC 1094 and 107f916611fSfvdl.%T "NFS: Network File System Version 3 Protocol Specification" . 108b8117286Swiz.Sh EXIT STATUS 109b8117286Swiz.Ex -std nfsd 110b8117286Swiz.Sh EXAMPLES 111b8117286Swiz.Dq Li "nfsd -n 6" 112b8117286Swizserves 113b8117286Swiz.Tn UDP 114b8117286Swizand 115b8117286Swiz.Tn TCP 116b8117286Swiztransports using six threads. 11761f28255Scgd.Sh SEE ALSO 11861f28255Scgd.Xr nfsstat 1 , 11961f28255Scgd.Xr nfssvc 2 , 12061f28255Scgd.Xr mountd 8 , 1218ab9946eSenami.Xr rpcbind 8 12261f28255Scgd.Sh HISTORY 12361f28255ScgdThe 124c80b3534Slukem.Nm 12534a98169Sperryutility first appeared in 12634a98169Sperry.Bx 4.4 . 127