nfsd is the daemon that handles client file system requests. Only the super-user can run this daemon.
The nfsd daemon is automatically invoked in run level 3 with the -a option, described below.
By default, nfsd starts over the TCP and UDP transports. You can change this with the -p option, described below.
A previously invoked nfsd daemon started with or without options must be stopped before invoking another nfsd command.
Administrators wanting to change startup parameters for nfsd should, as root, make changes in the /etc/default/nfs file rather than editing the /etc/init.d/nfs.server file. See nfs(4).
The following options are supported:
Start a NFS daemon over all available connectionless and connection-oriented transports, including UDP and TCP. Equivalent of setting the NFSD_PROTOCOL parameter to ALL in the nfs file.
This sets the maximum number of connections allowed to the NFS server over connection-oriented transports. By default, the number of connections is unlimited. Equivalent of the NFSD_MAX_CONNECTIONS parameter in the nfs file.
Set connection queue length for the NFS TCP over a connection-oriented transport. The default value is 32 entries. Equivalent of the NFSD_LISTEN_BACKLOG parameter in the nfs file.
Start a NFS daemon over the specified protocol. Equivalent of the NFSD_PROTOCOL parameter in the nfs file.
Start a NFS daemon for the transport specified by the given device. Equivalent of the NFSD_DEVICE parameter in the nfs file.
The following operands are supported:
This sets the maximum number of concurrent NFS requests that the server can handle. This concurrency is achieved by up to nservers threads created as needed in the kernel. nservers should be based on the load expected on this server. 16 is the usual number of nservers. If nservers is not specified, the maximum number of concurrent NFS requests will default to 1. Equivalent of the NFSD_MAX_CONNECTIONS parameter in the nfs file.
If the NFS_PORTMON variable is set in /etc/system, then clients are required to use privileged ports (ports < IPPORT_RESERVED) to get NFS services. This variable is equal to zero by default. This variable has been moved from the "nfs" module to the "nfssrv" module. To set the variable, edit the /etc/system file and add this entry:
set nfssrv:nfs_portmon = 1
client machine pointer to an open-but-unlinked file
contains startup parameters for nfsd
shell script for starting nfsd
system configuration information file
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|
Manually starting and restarting nfsd is not recommended. If it is necessary to do so, use the NFS server start/stop script (/etc/init.d/nfs.server). See System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP) for more information.