xref: /openbsd/sbin/nfsd/nfsd.8 (revision 09467b48)
1.\"   $OpenBSD: nfsd.8,v 1.19 2015/09/10 15:16:43 schwarze Exp $
2.\"   $NetBSD: nfsd.8,v 1.7 1996/02/18 11:58:24 fvdl Exp $
3.\"
4.\" Copyright (c) 1989, 1991, 1993
5.\"	The Regents of the University of California.  All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright
11.\"    notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\"    notice, this list of conditions and the following disclaimer in the
14.\"    documentation and/or other materials provided with the distribution.
15.\" 3. Neither the name of the University nor the names of its contributors
16.\"    may be used to endorse or promote products derived from this software
17.\"    without specific prior written permission.
18.\"
19.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.\"	@(#)nfsd.8	8.4 (Berkeley) 3/29/95
32.\"
33.Dd $Mdocdate: September 10 2015 $
34.Dt NFSD 8
35.Os
36.Sh NAME
37.Nm nfsd
38.Nd remote NFS server
39.Sh SYNOPSIS
40.Nm nfsd
41.Op Fl rtu
42.Op Fl n Ar num_servers
43.Sh DESCRIPTION
44.Nm
45runs on a server machine to service NFS
46requests from client machines.
47At least one
48.Nm
49must be running for a machine to operate as a server.
50.Pp
51Unless otherwise specified, four servers for UDP
52transport are started.
53.Pp
54The options are as follows:
55.Bl -tag -width Ds
56.It Fl n Ar num_servers
57Specifies how many servers to create (max 20).
58.It Fl r
59Register the NFS service with
60.Xr portmap 8
61without creating any servers.
62This option can be used along with the
63.Fl u
64or
65.Fl t
66options to re-register NFS if the portmap server is restarted.
67.It Fl t
68Serve TCP NFS clients.
69.It Fl u
70Serve UDP NFS clients.
71.El
72.Pp
73For example,
74.Dq Li "nfsd -u -t -n 6"
75serves UDP and TCP transports using six daemons.
76.Pp
77A server should run enough daemons to handle
78the maximum level of concurrency from its clients,
79typically four to six.
80.Pp
81.Nm
82listens for service requests at the port indicated in the NFS
83server specification; see RFCs 1094 and 1813.
84.Sh EXIT STATUS
85.Ex -std nfsd
86.Sh SEE ALSO
87.Xr nfsstat 1 ,
88.Xr nfssvc 2 ,
89.Xr mountd 8 ,
90.Xr portmap 8
91.Sh HISTORY
92The
93.Nm
94utility first appeared in
95.Bx 4.4 .
96