The following sections describe procedures for administering the cluster functionality of VxVM.
 |
 |  |
 |
 | NOTE: Most VxVM commands require superuser or equivalent privileges. |
 |
 |  |
 |
Determining if a Disk is Shareable |
 |
The vxdisk utility manages VxVM disks. To use the vxdisk utility to determine whether a disk is part of a cluster-shareable disk group, use the following command:
where accessname is the disk access name (or device name).
A portion of the output from this command (for the device c4t1d0) is shown here:
Device: c4t1d0
devicetag: c4t1d0
type: sliced
clusterid: cvm2
disk: name=disk01 id=963616090.1034.cvm2
timeout: 30
group: name=rootdg id=963616065.1032.cvm2
flags: online ready autoconfig shared imported
... |
Note that the clusterid field is set to cvm2 (the name of the cluster), and the flags field includes an entry for shared. When a node is not joined to the cluster, the flags field contains the autoimport flag instead of imported.
Listing Shared Disk Groups |
 |
vxdg can be used to list information about shared disk groups. To display information for all disk groups, use the following command:
Example output from this command is displayed here:
NAME STATE ID
rootdg enabled 774215886.1025.teal
group2 enabled,shared 774575420.1170.teal
group1 enabled,shared 774222028.1090.teal |
Shared disk groups are designated with the flag shared.
To display information for shared disk groups only, use the following command:
Example output from this command is as follows:
NAME STATE ID
group2 enabled,shared 774575420.1170.teal
group1 enabled,shared 774222028.1090.teal |
To display information about one specific disk group, use the following command:
where diskgroup is the disk group name.
For example, the output for the command vxdg list group1 on the master is as follows:
Group: group1
dgid: 774222028.1090.teal
import-id: 32768.1749
flags: shared
version: 70
local-activation: exclusive-write
cluster-actv-modes: node0=ew node1=off
detach-policy: local
copies: nconfig=default nlog=default
config: seqno=0.1976 permlen=1456 free=1448 templen=6 loglen=220
config disk c1t0d0s2 copy 1 len=1456 state=clean online
config disk c1t1d0s2 copy 1 len=1456 state=clean online
log disk c1t0d0s2 copy 1 len=220
log disk c1t1d0s2 copy 1 len=220 |
Note that the flags field is set to shared. The output for the same command when run on a slave is slightly different. Also note the local-activation and cluster-actv-modes fields. These display the activation mode for this node and for each node in the cluster respectively.
Splitting Disk Groups |
 |
As described in “Splitting Disk Groups”, you can use the vxdg split command to remove a self-contained set of VxVM objects from an imported disk group, and move them to a newly created disk group.
Splitting a private disk group creates a private disk group, and splitting a shared disk group creates a shared disk group. You can split a private disk group on any cluster node where that disk group is imported. You can only split a shared disk group or create a shared target disk group on the master node.
For a description of the other options, see “Moving Objects Between Disk Groups”.
Displaying the Cluster Protocol Version |
 |
The following command displays the cluster protocol version running on a node:
This command produces output similar to the following:
Volboot file
version: 3/1
seqno: 0.19
cluster protocol version: 20
hostid: giga
entries: |
You can also check the existing cluster protocol version using the following command:
This produces output similar to the following:
Cluster running at protocol 10 |
Displaying the Supported Cluster Protocol Version Range |
 |
The following command displays the maximum and minimum protocol version supported by the node and the current protocol version:
This command produces out put similar to the following:
Support information:
vold_vrsn: 11
dg_minimum: 60
dg_maximum: 70
kernel: 10
protocol_minimum: 10
protocol_maximum: 20
protocol_current: 20 |
You can also use the following command to display the maximum and minimum cluster protocol version supported by the current VERITAS Volume Manager release:
This produces output similar to the following:
minprotoversion: 10, maxprotoversion: 20
|
Obtaining Cluster Performance Statistics |
 |
The vxstat utility returns statistics for specified objects. In a cluster 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.
You can optionally specify a subset of nodes using the following form of the command:
# vxstat -g diskgroup -n node[,node...] |
where node is an integer. If a comma-separated list of nodes is supplied, the vxstat utility displays the sum of the statistics for the nodes in the list.
For example, to obtain statistics for node 2, volume vol1,use the following command:
# vxstat -g group1 -n 2 vol1 |
This command produces 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 |
To obtain and display statistics for the entire cluster, use the following command:
The statistics for all nodes are summed. For example, if node 1 performed 100 I/Os and node 2 performed 200 I/Os, vxstat -b displays a total of 300 I/Os.