Agent functions for NFSRestart agent

The agent functions for this agent follow:

Online

For the lower NFSRestart resource:

  • If the value of the NFSLockFailover attribute is 1, the agent terminates statd and lockd.

  • If the value of the NFSLockFailover attribute is 1 and if NFSv4 is configured, the agent copies the NFSv4 state data of clients from the shared storage to local path.

For the upper NFSRestart resource:

  • If the value of the NFSLockFailover attribute is 1, the agent copies the NFS record locks from shared storage to the /var/lib/nfs directory.

  • Starts the statd and lockd daemons.

  • Starts the smsyncd daemon to copy the contents of the /var/lib/nfs directory to the shared storage (LocksPathName) at regular two-second intervals.

  • Starts the smsyncd daemon to copy the contents of the /var/statmon/sm directory to the shared storage (LocksPathName) and NFSv4 state data from local path to shared storage at regular two-second intervals.

Monitor

For the lower NFSRestart resource:

  • The monitor agent function does nothing.

For the upper NFSRestart resource:

  • If the value of the NFSLockFailover attribute is 1, the agent monitors smsyncd daemon. It restarts the smsyncd daemon if it is not running.

Offline

For the lower NFSRestart resource:

  • Restarts all the NFS daemons that the upper NFSRestart resource stopped previously.

For the upper NFSRestart resource:

  • Terminates the statd and lockd daemons to clear the lock state.

  • Terminates the nfsd and mountd daemons to close the TCP/IP connections.

  • Terminates the smsyncd daemon if the daemon is running.

Clean

For the lower NFSRestart resource:

  • Restarts all the NFS daemons that the upper NFSRestart resource stopped previously.

For the upper NFSRestart resource:

  • Terminates the statd and lockd daemons to clear the lock state.

  • Terminates the nfsd and mountd daemons to close the TCP/IP connections.

  • Terminates the smsyncd daemon if the daemon is running.

Action

  • nfsconf.vfd

    Checks the runlevel information of the system service nfslock to confirm that the lock daemons do not come online automatically after reboot.

  • lockdir.vfd

    Verifies that the NFS lock directory (which is specified by the LocksPathName attribute of NFSRestart) is on shared storage.