CLI Guide

Table Of Contents
--force
Arguments
Required arguments
[-v|--virtual-
volumes] virtual-
volume,virtual-volume,...
*Glob pattern or a list of one or more comma-separated context paths of the virtual volumes
to remove from the consistency group.
[-g|--consistency-
group] context path
*Context path of the consistency group from which to remove the specified virtual volume.
If the current context is a consistency-group or is below, then that consistency group is the
default. Otherwise, this argument is required.
--force
Do not ask for confirmation. Allows this command to be run using a non-interactive script.
* - argument is positional.
Description
Removes one or more virtual volumes from the consistency group.
If the pattern given to --virtual-volumes argument matches volumes that are not in the consistency group, the command
skips those volumes, and prints a warning message for each one.
Best practice is to either:
Remove the volumes from the view, or
Perform the operation when I/O loads are light.
Use the --force argument to suppress the request for confirmation.
Examples
In the following example:
The ls command displays the virtual volumes in consistency group TestCG.
The consistency-group remove-virtual-volumes command removes a specified volume from the consistency
group.
The ls command displays the change.
VPlexcli:/> ls /clusters/cluster-1/consistency-groups/TestCG
/clusters/cluster-1/consistency-groups/TestCG:
------------------------------- ----------------------------------------------
.
.
.
virtual-volumes [dr1_C12_0919_vol, dr1_C12_0920_vol,
dr1_C12_0921_vol, dr1_C12_0922_vol]
visibility [cluster-1, cluster-2]
.
.
.
VPlexcli:/> consistency-group remove-virtual-volumes /clusters/cluster-1/virtual-volumes/
dr1_C12_0920_vol --consistency-group /clusters/cluster-1/consistency-groups/TestCG
VPlexcli:/> ls /clusters/cluster-1/consistency-groups/TestCG
/clusters/cluster-1/consistency-groups/TestCG:
Name Value
------------------------------- ----------------------------------------------
.
.
.
storage-at-clusters [cluster-1, cluster-2]
synchronous-on-director-failure -
virtual-volumes [dr1_C12_0919_vol, dr1_C12_0921_vol,
Commands
105