Sun Cluster 2.2 Cluster Volume Manager Guide

2.2.7 The vxstat Command

vxstat returns statistics for specified objects. In the CVM environment, vxstat gathers statistics from all of the nodes in the cluster. The statistics give the total usage, by all nodes, for the requested objects. If a local object is specified, its local usage is returned.

vxstat enables the caller to optionally specify a subset of nodes:


vxstat -g diskgroup -n node[,node...]

where node is an integer. If a comma-separated list of nodes is supplied, vxstat displays the sum of the statistics for the nodes in the list.

In the following example, vxstat is instructed to obtain statistics for Node 2, volume vol1:


vxstat -g rootdg -n 2 vol1

This can produce output similar to the following:


OPERATIONS           BLOCKS         AVG TIME(ms)
TYP  NAME          READ     WRITE      READ     WRITE    READ  WRITE
vol  vol1          2421         0    600000         0    99.0    0.0 

vxstat can also obtain and display statistics for the entire cluster, as follows:


vxstat -b

The statistics for all nodes are added together. For example, if Node 1 did 100 I/Os and Node 2 did 200 I/Os, vxstat -b would return 300.