statd Daemon

Purpose

Provides crash and recovery functions for the locking services on NFS.

Syntax

/usr/sbin/rpc.statd [-d DebugLevel] [-D] [-t threads]

Description

The statd daemon interacts with the lockd daemon to provide crash and recovery functions for the locking services on Network File System (NFS). The statd daemon must always be started before the lockd daemon.

The statd daemon is started and stopped by the following SRC commands:

startsrc -s rpc.statd
stopsrc -s rpc.statd

The status monitor maintains information on the location of connections as well as the status in the /var/statmon/sm directory, the /var/statmon/sm.bak directory, and the /var/statmon/state file. When restarted, the statd daemon queries these files and tries to reestablish the connection it had prior to termination. To restart the statd daemon, and subsequently the lockd daemon, without prior knowledge of existing locks or status, delete these files before restarting the statd daemon.

Flags

Item Description
-t threads Specifies the maximum number of rpc.statd threads allowed. The Default value is 50.
-d DebugLevel Specifies the debug level of rpc.statd. The debug level is disabled by default.
-D Specifies which statmon directory to use. Without the -D flag, rpc.statd will use the /var/statmon directory. With the -D flag, rpc.statd will use the statmon directory under the current directory. The -D flag is disabled by default.
Note: When statd is started manually with the startsrc command and using the -D flag, the current work directory (CWD) is used for srcmstr. Being srcmstr executed at boot for root and if anv $HOME for root is different from /, eg /root then statmon data will go into /root/statmon directory.

Related Information

The lockd daemon.

List of NFS commands.

Network File System (NFS) in AIX® Version 7.1 Operating system and device management.