Symantec logo

Collecting consolidated statistics of the VVR components

You can configure VVR to collect statistics of the VVR components. The collected statistics can be used to monitor the system and diagnose problems with the VVR setup. VVR collects the statistics generated by the VVR commands vxrlink stats, vxrlink status and vxrvg stats for all the imported disk groups, and the system level commands netstat, vmstat, and vxmemstat. The output of these commands are stored in separate files.

By default, VVR collects the statistics automatically when the vradmind daemon starts. Configuring VVR to collect statistics according to your requirements involves modifying the values of the environment variables in the vras_env file, located in the /etc/vx/vras directory.

  Note   If the vradmind daemon is not running, VVR stops collecting the statistics.

 To configure VVR to collect statistics automatically

  1. Modify the default values for the environment variables specified in the vras_env located in the /etc/vx/vras directory file to suit your requirements. The following table provides information about the variables:

    Environment Variable



    Specifies whether you want the statistics collection to start automatically. 

    Set VRAS_ENABLE_STATS=on to enable statistics collection. This is the default. 

    Set VRAS_ENABLE_STATS=off to disable statistics collection. 


    Specifies the frequency in seconds at which the statistics should be collected for the VVR commands, vxrlink stats, vxrlink status and vxrvg stats. By default, VRAS_STATS_FREQUENCY is set to 10 seconds.  


    Specifies the time interval in seconds over which the statistics for the different network protocols should be collected. By default, VRAS_NETSTAT_FREQUENCY is set to 300 seconds.  


    Specifies the time interval in seconds over which the memory and CPU utilization statistics should be collected. By default, VRAS_VMSTAT_FREQUENCY is set to 300 seconds.  


    Specifies the number of days for which the collected statistics should be preserved. After this time the earlier statistics are automatically deleted. By default, VRAS_STATS_DAYS_LOG is set to three days.  

  2. Restart the vradmind daemon by issuing the following command:

    # /etc/init.d/ restart

    You can restart vradmind even while the application is active and replication is in progress.