Removing an RVG

Use vxrvg rm command to remove the specified RVG from the disk group. Before deleting, make sure that the data access to the RVG is disabled, and the Secondary is detached. You can run this command either on the Primary or Secondary host to delete either the Primary RVG or the Secondary RVG.

Note:

If Volume Replicator is configured in a VCS or Microsoft Cluster and the cluster resource for this RVG exists, then Volume Replicator fails the delete RVG operation.

To forcefully delete the RVG even when data access is enabled for the RVG and the Secondaries are attached, use the vxrvg rm command with the -f option. However, if the RVG is part of a VCS or Microsoft Cluster and the cluster resource for this RVG exists, then Volume Replicator does not let you delete the RVG even with the -f option as this can cause the resource to fail.

Note:

Volumes that are associated to the RVG are not deleted from the disk group. They are only dissociated from the RVG.

Syntax for vxrvg rm command

vxrvg [-g<diskgroup>] [-f] rm <rvg>

Example:

vxrvg -g vvrdg -f rm rvg