Verifying the metered or forecasted values for CPU, Mem, and Swap

This section lists commands for verifying or troubleshooting the metered and forecast data for the parameters metered, such as CPU, Mem, and Swap.

The VCS HostMonitor agent stores metered available capacity values for CPU, Mem, and Swap in absolute values in MHz, MB, and MB units respectively in a respective statlog database. The database files are present in /opt/VRTSvcs/stats. The primary database files are .vcs_host_stats.data and .vcs_host_stats.index. The other files present are used for archival purposes.

The HostMonitor agent uses statlog to get the forecast of available capacity and updates the system attribute HostAvailableForecast in the local system.

To gather the data when VCS is running, perform the following steps:

  1. Stop the HostMonitor agent and restart it after you complete troubleshooting, thus letting you verify the auto-populated value for the system attribute HostAvailableForecast.
  2. Copy the following statlog database files to a different location.
    • /var/VRTSvcs/stats/.vcs_host_stats.data

    • /var/VRTSvcs/stats/.vcs_host_stats.index

  3. Save the HostAvailableForecast values for comparison.
  4. Now you can restart the HostMonitor agent.
  5. Gather the data as follows:
    • To view the metered data, run the following command

      # /opt/VRTSvcs/bin/vcsstatlog --dump\
      /var/VRTSvcs/stats/copied_vcs_host_stats  
      
    • To get the forecasted available capacity for CPU, Mem, and Swap for a system in cluster, run the following command on the system on which you copied the statlog database:

      # /opt/VRTSvcs/bin/vcsstatlog --shell --load/var/VRTSvcs/stats\
      /copied_vcs_host_stats --names CPU --holts --npred 1  --csv
      # /opt/VRTSvcs/bin/vcsstatlog --shell --load/var/VRTSvcs/stats\
      /copied_vcs_host_stats --names Mem --holts --npred 1  --csv
      # /opt/VRTSvcs/bin/vcsstatlog --shell --load/var/VRTSvcs/stats\
      /copied_vcs_host_stats --names Swap --holts --npred 1  --csv