Checking the time stamp of a daemon process-ID file

Determine whether a daemon process-ID (PID) file contains a current time stamp. An old time stamp indicates that the daemon stalled.

About this task

HSM daemon processes (dsmwatchd, dsmrecalld, dsmscoutd, and dsmmonitord) create a process ID (PID) file for each process. The PID file contains the process ID of the running daemon. The daemon updates the time stamp of the PID file automatically every three seconds. An old time stamp on the PID file for the dsmwatchd process or the dsmrecalld process indicates a problem with the daemon.

Determine the time stamp of the PID file by completing the following steps:

Procedure

  1. List the PID files. Enter the following command:
    ll /etc/adsm/SpaceMan/*.pid
    The system displays the process ID files:
    root@nodeA > ll /etc/adsm/SpaceMan/*.pid
    -rw-r--r-- 1 bin bin 6 Nov 09:17 /etc/adsm/SpaceMan/dsmmonitord.pid
    -rw-r--r-- 1 bin bin 5 Nov 09:17 /etc/adsm/SpaceMan/dsmrecalld.pid
    -rw-r--r-- 1 bin bin 4 Nov 09:17 /etc/adsm/SpaceMan/dsmscoutd.pid
    -rw-r--r-- 1 bin bin 3 Nov 09:17 /etc/adsm/SpaceMan/dsmwatchd.pid
  2. Display the time stamp of the PID file by using the UNIX shell status command and searching for "Change".
    Use the command for your operating system:
    • On AIX® systems, the status command is istat.
    • On Linux systems, the status command is stat.
    The following example is for Linux systems:
    root@nodeA > stat /etc/adsm/SpaceMan/dsmrecalld.pid | grep Change
    Change: 2015-11-20 09:26:38.0000000000 +0100

What to do next

If the PID file was not updated within the last 3 seconds, start the daemon again.