< Previous | Next > | |
Product: Volume Replicator Guides | |
Manual: Volume Replicator 4.1 Administrator's Guide |
Using the vrstat Display Commands
This section describes the VVR commands that you can use to view statistics about the RLINKs and the volumes in an RVG, for all the hosts in an RDS. The vrstat command combines the output of commands such as The messages are displayed at a default frequency of 10 seconds, which is the frequency at which the vrstat command collects the statistics. To change the frequency of the display, set the VRAS_STATS_FREQUENCY environment variable to a required value in the /etc/vx/vras/vras_env file. After setting the environment variable to a new value, restart the vradmind daemon by issuing the following commands: # /sbin/init.d/vras-vradmind.sh stop # /sbin/init.d/vras-vradmind.sh start Displaying the Consolidated StatisticsTo display the consolidated statistics of the RLINKs, SRL, data volumes, and memory tunables for the RDSs on a host, use the vrstat command without specifying any option. To view the consolidated statistics: # vrstat Displaying the RLINK Information for All the Hosts in the RDSThe vrstat -R command displays detailed statistics for the RLINKs on all the hosts in an RDS. This information can be used to assess connectivity and network problems between the hosts. The vrstat -R command can be executed from the Primary and the Secondary. The output of this command is a combination of the outputs of the vxrlink stats and vxrlink status commands. To view information about all the RLINKs in an RDS: # vrstat -R [local_rvgname] The argument local_rvgname is the name of the RVG on the local host and is optional. The local RVG name represents its RDS. If you specify the local_rvgname name, the vrstat -R command displays the information for all the RLINKs for the specified RVG. Otherwise, the command displays the information for all the RLINKs for all the RDSs. The output of this command resembles: Mon Oct 27 15:44:21 2003 Replicated Data Set hr_rvg: Data Status: london: up-to-date. Network Statistics: Messages Errors Flow Control -------- ------ ------------ # Blocks RT(msec) Timeout Stream Memory Delays NW Bytes NW Delay Timeout seattle - london 260 133120 5 1 0 0 333 178000 1 20 279 0 11 0 0 0 0 100000 1 30 For more information on the fields in the output, see Getting and Using Network Performance Data (vxrlink stats). Displaying Information About All the Data Volumes for All the Hosts in the RDSThe vrstat -V command displays detailed statistics for all the data volumes associated with the specified RVG on each host in the RDS. The vrstat -V command can be executed from the Primary and the Secondary. To view information about all the data volumes associated with an RVG in an RDS: # vrstat -V [local_rvgname] The argument local_rvgname is the name of the RVG on the local host and is optional. The local RVG name represents its RDS. If you specify the local_rvgname name, the vrstat -V command displays information about all the volumes associated with the specified RVG. Otherwise, the command displays information about all the volumes in all the RDSs. The output of this command resembles: Mon Oct 27 15:49:15 2003 Replicated Data Set hr_rvg: Data Volume-I/O Statistics: HOST NAME OPERATIONS BLOCKS AVG TIME(ms) READ WRITE READ WRITE READ WRITE seattle hr_dv01 0 0 0 0 0.0 0.0 london hr_dv01 0 412 0 210944 0.0 12.0 Mon Oct 27 15:49:25 2003 Replicated Data Set hr_rvg: Data Volume-I/O Statistics: HOST NAME OPERATIONS BLOCKS AVG TIME(ms) READ WRITE READ WRITE READ WRITE seattle hr_dv01 0 0 0 0 0.0 0.0 london hr_dv01 0 0 0 0 0.0 0.0 The output of this command includes the following details:
Displaying Information About the SRL Volumes for All the Hosts in the RDSThe vrstat -S command displays detailed statistics about the SRL for every host within the RDS. This command can be executed from the Primary and the Secondary. To view information on all the SRL volumes for every host in an RDS: # vrstat -S [local_rvgname] The argument local_rvgname is the name of the RVG on the local host and is optional. The local RVG name represents its RDS. If you specify the local_rvgname name, the vrstat -S command displays information about the SRL in the RDS. Otherwise, the command displays information about the SRL in all the RDSs. The output of the vrstat command resembles: Mon Oct 27 15:53:11 2003 Replicated Data Set hr_rvg: SRL-I/O Statistics: HOST NAME OPERATIONS BLOCKS AVG TIME(ms) READ WRITE READ WRITE READ WRITE seattle hr_srl 0 258 0 132885 0.0 17.6 london hr_srl 0 0 0 0 0.0 0.0 Mon Oct 27 15:53:21 2003 Replicated Data Set hr_rvg: SRL-I/O Statistics: HOST NAME OPERATIONS BLOCKS AVG TIME(ms) READ WRITE READ WRITE READ WRITE seattle hr_srl 0 143 0 73430 0.0 17.6 london hr_srl 0 0 0 0 0.0 0.0 The output of this command includes the following details:
Displaying Information About the Memory Tunable Parameters for All the Hosts in the RDSThe vrstat -M command displays detailed information about the memory tunable parameters. This command can be executed from the Primary and the Secondary. The output of the vrstat -M command is similar to the output displayed by the vxmemstat command. If you specify the local_rvgname name with the vrstat -M command, it displays the information about the memory tunables for all the hosts in that RDS. Otherwise, the command displays information about the memory tunable parameters for all the hosts in all the RDSs. To view information about the memory tunable parameters: # vrstat -M [local_rvgname] The argument local_rvgname is the name of the RVG on the local host and is optional. The local RVG name represents its RDS. The output of this command resembles: Mon Oct 27 15:57:15 2003 Replicated Data Set hr_rvg: Memory-pool Statistics: Host Pool DG Min Max In Allocated Max Waiting Size Size Use Used ------ ---------- ---- ------ ------ ----- ---------- ----- ------- seattle Voliomem - 1024 12443 0 1024 0 no seattle NMCOM-hr_rvg dg1 1024 4096 0 1024 0 no seattle RViomem - 1024 12443 0 1024 0 no seattle WRSHIP - 1024 4096 0 1024 0 no seattle Readback - 1024 4096 0 1024 0 no london Voliomem - 1024 12441 0 1024 0 no london NMCOM-hr_rvg dg1 1024 4096 0 1024 0 no london RViomem - 1024 12441 0 1024 0 no london WRSHIP - 1024 4096 0 1024 0 no london Readback - 1024 4096 0 1024 0 no The output of the vrstat command includes the following details:
Determining the Network Bandwidth Being Used by VVRUse the vrstat command to determine the network bandwidth being used by VVR. To view the network bandwidth currently being used by VVR # vrstat -R local_rvgname The argument local_rvgname is the name of the RVG on the local host and is optional. The local RVG name represents its RDS. If you specify the local_rvgname name, the vrstat -R command displays the information about the RLINKs for the specified RVG. Otherwise, the command displays the information for all the RLINKs for all the RDSs. To view the network bandwidth used by the RDS hr_rvg between the Primary seattle and the Secondary london, issue the following command on any host in the RDS: # vrstat -R hr_rvg Replicated Data Set hr_rvg: Data Status: london: DCM contains 1157888 Kbytes. Network Statistics: Messages Errors Flow Control -------- ------ ------------ # Blocks RT(msec) Timeout Stream Memory Delays NW Bytes NW Delay Timeout seattle - london 356 182272 6 1 0 0 280 271000 1 10 339 0 15 0 0 0 0 100000 1 20 Bandwidth Utilization 72908 Kbps. |
^ Return to Top | < Previous | Next > |
Product: Volume Replicator Guides | |
Manual: Volume Replicator 4.1 Administrator's Guide | |
VERITAS Software Corporation
www.veritas.com |