Deleting a copy from a HyperSwap volume or a stretched volume

Use either the management GUIor the command-line interface to delete a copy from a HyperSwap® or stretched volume.

About this task

The rmvolumecopy command removes a copy from a HyperSwap volume. The rmvolumecopy command identifies a volume copy to delete by specifying either the -site, the -pool, or -copyid parameters. The copy is removed without affecting the image of the volume, which means that this command is unable to remove the last active copy of the volume from the system . To remove the last active copy for a HyperSwap or stretched volume, use the rmvolume command. Ensure that the HyperSwap or stretched volume is removed from any consistency groups it belongs to before the last copy on the site is removed. To remove a copy or copies from a HyperSwap or stretched volume in the management GUI, select Volumes. Expand the HyperSwap or stretched volume and right-click the copy that you want to remove and select Delete this copy.

Procedure

  1. If only one copy of the HyperSwap or stretched volume exists on the site, enter the following command, where newyork is the name of the site where the copy is located and volume1 is the name of the volume.
    rmvolumecopy -site newyork volume1
  2. If more than one copy of the HyperSwap or stretched volume exists on the site, enter the following command, where nycpool is the name of the pool where the copy is located, 1 is the copy ID for the specific copy that is being deleted, and volume1 is the name of the volume.
    rmvolumecopy -pool nycpool -copyid 1 volume1