Displays the status of a specific volume or all volumes.
Note:
This command is only available with Oracle Clusterware.
Use the srvctl status volume
command with the following syntax:
srvctl status volume [-device volume_device] [-volume volume_name] [-diskgroup disk_group_name] [-node "node_list"]
Table A-184 srvctl status volume Parameters
Parameter | Description |
---|---|
-device volume_device |
Specify the path to the volume device for which you want to display the status. |
-volume volume_name |
Specify the name of the volume for which you want to view the status. |
-diskgroup disk_group_name |
Specify the name of the disk group in which the volume resides for which you want to display the status. |
-node "node_list" |
Specify a comma-delimited list of node names where volumes for which you want to view the status reside. |
If you do not specify any of the optional parameters, then SRVCTL displays the status for all volumes.
If you specify only the -volume
parameter, then SRVCTL displays the status for the volume that you specify.
If you specify only the -diskgroup
parameter, then SRVCTL displays the status for the volumes that reside in the disk group that you specify.
If you specify only the -device
parameter, then SRVCTL displays the status for the volume device that you specify.
If you specify the -diskgroup
and -device
parameters, then SRVCTL displays the status for the volume device in the disk group that you specify.
If you specify the -node
parameter, then SRVCTL displays the status of the volumes that reside on the nodes you list.
The srvctl status volume
command displays information similar to the following:
$ srvctl status volume –volume vol1 Volume vol1 of diskgroup diskgrp1 for device volume_device_path1 is enabled Volume vol1 of diskgroup diskgrp1 for device volume_device_path1 is running
In the preceding example, SRVCTL performs a status query on all nodes because the -node
parameter is not specified.
$ srvctl status volume Volume vol1 of diskgroup diskgrp for device volume_device_path1 is enabled Volume vol1 of diskgroup diskgrp for device volume_device_path1 is running Volume vol2 of diskgroup diskgrp for device volume_device_path2 is enabled Volume vol2 of diskgroup diskgrp for device volume_device_path2 is running
In the preceding example, SRVCTL displays the status of all registered volumes because the no parameter is specified.