1rpc.nfsd(8)                 System Manager's Manual                rpc.nfsd(8)
2
3
4

NAME

6       rpc.nfsd - NFS server process
7

SYNOPSIS

9       /usr/sbin/rpc.nfsd [options] nproc
10

DESCRIPTION

12       The rpc.nfsd program implements the user level part of the NFS service.
13       The main functionality is handled by the nfsd kernel module.  The  user
14       space  program merely specifies what sort of sockets the kernel service
15       should listen on, what NFS versions it should  support,  and  how  many
16       kernel threads it should use.
17
18       The  rpc.mountd  server provides an ancillary service needed to satisfy
19       mount requests by NFS clients.
20

OPTIONS

22       -d  or  --debug
23              enable logging of debugging messages
24
25       -H  or  --host hostname
26              specify a particular hostname (or  address)  that  NFS  requests
27              will  be  accepted  on.  By  default,  rpc.nfsd  will accept NFS
28              requests on all known network addresses.  Note that lockd (which
29              performs file locking services for NFS) may still accept request
30              on all known network  addresses.   This  may  change  in  future
31              releases  of  the Linux Kernel. This option can be used multiple
32              time to listen to more than one interface.
33
34       -p  or  --port port
35              specify a different port to  listen  on  for  NFS  requests.  By
36              default, rpc.nfsd will listen on port 2049.
37
38       -r  or  --rdma
39              specify  that NFS requests on the standard RDMA port ("nfsrdma",
40              port 20049) should be honored.
41
42       --rdma=port
43              Listen for RDMA requests on an alternate port - may be a  number
44              or a name listed in /etc/services.
45
46       -N  or  --no-nfs-version vers
47              This  option can be used to request that rpc.nfsd does not offer
48              certain versions of NFS. The current  version  of  rpc.nfsd  can
49              support major NFS versions 2,3,4 and the minor versions 4.0, 4.1
50              and 4.2.
51
52       -s  or  --syslog
53              By default, rpc.nfsd logs error messages (and debug messages, if
54              enabled)  to  stderr.  This option makes rpc.nfsd log these mes‐
55              sages to syslog instead. Note  that  errors  encountered  during
56              option  processing  will still be logged to stderr regardless of
57              this option.
58
59       -T  or  --no-tcp
60              Disable rpc.nfsd from accepting TCP connections from clients.
61
62       -U  or  --no-udp
63              Disable rpc.nfsd from accepting UDP connections from clients.
64
65       -V  or  --nfs-version vers
66              This option can be used to request that rpc.nfsd  offer  certain
67              versions  of  NFS.  The  current version of rpc.nfsd can support
68              major NFS versions 2,3,4 and the minor  versions  4.0,  4.1  and
69              4.2.
70
71       -L  or  --lease-time seconds
72              Set  the  lease-time  used  for  NFSv4.  This corresponds to how
73              often clients need to confirm their state with the server. Valid
74              range is from 10 to 3600 seconds.
75
76       -G  or  --grace-time seconds
77              Set the grace-time used for NFSv4 and NLM (for NFSv2 and NFSv3).
78              New file open requests (NFSv4) and new file locks (NLM) will not
79              be  allowed until after this time has passed to allow clients to
80              recover state.
81
82       nproc  specify the number of NFS  server  threads.  By  default,  eight
83              threads  are  started.  However, for optimum performance several
84              threads should be used. The actual figure depends on the  number
85              of  and  the  work load created by the NFS clients, but a useful
86              starting point is eight threads. Effects of modifying that  num‐
87              ber can be checked using the nfsstat(8) program.
88
89       Note  that  if  the NFS server is already running, then the options for
90       specifying host, port, and protocol will be  ignored.   The  number  of
91       processes  given  will be the only option considered, and the number of
92       active nfsd processes will be increased or decreased to match this num‐
93       ber.  In particular rpc.nfsd 0 will stop all threads and thus close any
94       open connections.
95
96

CONFIGURATION FILE

98       Many of the options that can be set on the command  line  can  also  be
99       controlled   through   values   set   in  the  [nfsd]  section  of  the
100       /etc/nfs.conf configuration file.  Values recognized include:
101
102       threads
103              The number of threads to start.
104
105       host   A host name,  or  comma  separated  list  of  host  names,  that
106              rpc.nfsd  will listen on.  Use of the --host option replaces all
107              host names listed here.
108
109       grace-time
110              The grace time, for both NFSv4 and NLM, in seconds.
111
112       lease-time
113              The lease time for NFSv4, in seconds.
114
115       port   Set the port for TCP/UDP to bind to.
116
117       rdma   Set RDMA port.  Use "rdma=nfsrdma" to enable standard port.
118
119       UDP    Enable (with "on" or "yes" etc) or  disable  ("off",  "no")  UDP
120              support.
121
122       TCP    Enable or disable TCP support.
123
124       vers2
125
126       vers3
127
128       vers4  Enable  or  disable  a  major NFS version.  3 and 4 are normally
129              enabled by default.
130
131       vers4.1
132
133       vers4.2
134              Setting these to "off" or  similar  will  disable  the  selected
135              minor  versions.  Setting to "on" will enable them.  The default
136              values are determined by the kernel, and usually minor  versions
137              default to being enabled once the implementation is sufficiently
138              complete.
139
140

NOTES

142       If the program is built with TI-RPC support, it will enable any  proto‐
143       col and address family combinations that are marked visible in the net‐
144       config database.
145
146

SEE ALSO

148       rpc.mountd(8), exports(5),  exportfs(8),  nfs.conf(5),  rpc.rquotad(8),
149       nfsstat(8), netconfig(5).
150

AUTHOR

152       Olaf  Kirch,  Bill  Hawes, H. J. Lu, G. Allan Morris III, and a host of
153       others.
154
155
156
157                                  20 Feb 2014                      rpc.nfsd(8)
Impressum