Question


How can I identify if a transaction is running or hung?


Environment


All OnApp versions


Answer


To detect if the transaction, such as backup, disk resize, or similar, is running, check the compute resource it is running on and use the strace tool to find out what system commands the process is executing.

You'll be informed if it is being processed, waiting for network or disk connection, etc.

  1. To use strace, use the PID of the process to be watched. For example, a disk resize executes a process with resize in the name:

    ps aux | grep resize
    CODE
  2. Use the following to tail into the process and view whether it is running:

    strace -p %PID%
    CODE

To install strace, use: 

yum install strace
CODE