CL Command Reference - STRNFSSVR
CL Command List > STRNFSSVR Reference
Description:
The Start Network File System Server (STRNFSSVR) command starts one or all of the following Network File System (NFS) server daemons.
SERVER(*ALL) should be used, which will start the daemons in the following order. (This order is the recommended order for starting the Network File System daemons.)
. The Remote Procedure Call (RPC) RPCBind daemon
. The block input/output (I/O) (BIO) daemon
. The server (SVR) daemon v The mount (MNT) daemon
. The network status monitor (NSM) daemon
. The network lock manager (NLM) daemon
If just one daemon is to be started, be sure the appropriate order for starting NFS daemons and the possible consequences of starting daemons in an order other than that specified above are understood.
If the user attempts to start a daemon or daemons that are already running, they will not cause the command to fail, and it will continue to start other daemons that were requested to start. The command will issue diagnostic message CPDA1BA or CPDA1BD if the daemon is already running. However, for best results, end NFS daemons before attempting the STRNFSSVR command.
To determine if an NFS daemon is running, use the Work with Active Jobs (WRKACTJOB) command and look in the subsystem QSYSWRK for existence of the following jobs:
QNFSRPCD The RPCBind daemon
QNFSBIOD The block I/O (BIO) daemon
QNFSNFSD The NFS server (SVR) daemon
QNFSMNTD The mount (MNT) daemon
QNFSNSMD The network status monitor (NSM) daemon
QNFSNLMD The network lock manager (NLM) daemon
Restrictions:
1. The user must have input/output (I/O) system configuration (*IOSYSCFG) special authority to use this command.
2. The user must be enrolled in the system distribution directory. Use the Add Directory Entry (ADDDIRE) command to enroll the user.
Examples:
Example 1: Start All NFS Daemons
STRNFSSVR SERVER(*ALL) STRJOBTIMO(*NOMAX)
This command starts all NFS daemons, and waits forever for them to start. No daemons should be previously running.
Example 2: Start Only One Daemon
STRNFSSVR SERVER(*MNT)
This command starts the NFS mount daemon, and waits up to the default of 30 seconds for it to start. The mount daemon should not be already running, and other daemons have been started in the appropriate order.