Collecting data using the vxstat command

If you do not want to install VRAdvisor and VxVM is installed on your system, use the vxstat command to collect data.

To collect data using vxstat

  1. Set the locale to a supported locale. For example:
    # export LC_ALL=C
  2. To collect the data in the format required for analysis, use the following command with exactly the parameters shown:
    # vxstat -g dgname -i interval -c count volumes > filename

    where:

    interval is the data collection interval in seconds.

    count is the number of samples to collect.

    volumes is a list of volume names separated by spaces.

    For example, use the following command to collect a sample of data every 120 seconds and to collect 5040 samples. The volumes are the data volumes hr_dv01 and hr_dv02 in the disk group hrdg. The results are collected in the file vra_in.

    # vxstat -g hrdg -i 120 -c 5040 hr_dv01 hr_dv02 > vra_in

    After the data collection completes, the file filename (for example, vra_in) contains the sample of data in the vxstat format, which can be used for analysis by VRAdvisor. You can proceed to analyze the collected data using VRAdvisor.

More Information

About analyzing the sample of data