Initialization of metering database fails

The metering database can fail to initialize if there is an existing corrupt database. In this case, VCS cannot open and initialize the database.

The following log message will appear in the engine log:

Initialization of database to save metered data failed and will not be able to get forecast. Error corrupt statlog database, error code=19, errno=0

To restore the metering and forecast functionality,

  1. Stop the HostMonitor agent using the following command
    # /opt/VRTSvcs/bin/haagent -stop HostMonitor -force -sys system name
  2. Delete the metering database.
    # rm /var/VRTSvcs/stats/.vcs_host_stats.data \
    /var/VRTSvcs/stats/.vcs_host_stats.index
  3. Start the HostMonitor agent.
    # /opt/VRTSvcs/bin/haagent -start HostMonitor -sys system name