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:
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