The nfs file resides in directory /etc/default and provides startup parameters for the nfsd(1M) and lockd(1M) daemons.
The nfs file format is ASCII; comment lines begin with the crosshatch (#) character. Parameters consist of a keyword followed by an equals (=) sign followed by the parameter value, of the form:
Administrators wanting to change startup parameters for nfsd or lockd should, as root, make changes in the nfs file rather than editing the /etc/init.d/nfs.server or nfs.client files.
The following parameters are currently supported in the nfs file:
- Sets the maximum number of concurrent, connection-oriented connections. The default is unlimited and is obtained by not setting (that is, commenting out) NFSD_MAX_CONNECTIONS. Equivalent to the -c option in nfsd.
- Set connection queue length for the NFS over a connection-oriented transport. The default value is 32, meaning 32 entries in the queue. Equivalent to the -l option in nfsd.
- Start nfsd over the specified protocol only. Equivalent to the -p option in nfsd. ALL is equivalent to -a on the nfsd
command line. Mutually exlusive of NFSD_DEVICE. One or the other of NFSD_DEVICE and NFSD_PROTOCOL must be commented out.
- Start NFS daemon for the transport specified by the given device only. Equivalent to the -t option in nfsd. Mutually exclusive of NFSD_PROTOCOL.
One or the other of NFSD_DEVICE and NFSD_PROTOCOL must be commented out.
- Maximum number of concurrent NFS requests. Equivalent to last numeric argument on the nfsd command line. The default is 16.
- Set connection queue length for lockd over a connection-oriented transport. The default and minimum value is 32.
- Maximum number of conncurent lockd requests. The default is 20.
- Retransmit timeout, in seconds, before lockd retries. The default is 5.
- Grace period, in seconds, that clients have to reclaim locks after a server reboot. The default is 45.