Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Start Network File System Server (STRNFSSVR) command starts one or all of the following Network File System (NFS) server daemons. For more information about these daemon jobs, see Network File System book, SC41-5714
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.)
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. For more information about starting NFS daemons, see Network File System book, SC41-5714
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:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
SERVER | Server daemon | *ALL, *RPC, *BIO, *SVR, *MNT, *NSM, *NLM | Required, Positional 1 |
NBRSVR | Number of server daemons | 1-20, 1 | Optional, Positional 2 |
NBRBIO | Number of block I/O daemons | 1-20, 1 | Optional |
RTVRPCREG | Retrieve RPC registration | *NO, *YES | Optional |
STRJOBTIMO | Timeout for start of daemon | 1-3600, 30, *NOMAX | Optional |
Top |
Specifies the Network File System (NFS) daemon jobs to be started by this command. The specified daemon should not already be running.
This is a required parameter.
Top |
Specifies the number of NFS server (*SVR) daemon jobs the user wants to have running. Additional daemons will be started if the number specified on this parameter is greater than the number of server daemons already running on the system. This parameter can only be used if SERVER(*SVR) or SERVER(*ALL) is specified.
Top |
Specifies the number of NFS block input/output (I/O) (*BIO) daemon jobs the user wants to have running. Additional daemons will be started if the number specified on this parameter is greater than the number of block I/O daemons already running on the system. This parameter can only be used if SERVER(*BIO) or SERVER(*ALL) is specified.
Top |
Specifies whether to retrieve previously recorded registration information when the RPCBind daemon is started. If registration information is retrieved, any services already registered with the RPCBind daemon do not have to re-register with the RPCBind daemon. This parameter can only be used if SERVER(*RPC) or (SERVER(*ALL) is specified.
Top |
Specifies the number of seconds to wait for each daemon to successfully start. If a daemon has not started within the timeout value, the command will fail.
Top |
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.
Top |
Top |