rmcpset

Use the rmcpset command to remove copy sets.

Note: This command is not supported for IBM Spectrum® Virtualize Backup or Snapshot session types. Copy sets can be changed by adding or removing volumes from the volume group on the storage system.

Syntax

Read syntax diagramSkip visual syntax diagramrmcpset-help-h-?-quiet-force-keeponhw-h1 source_volume_id source_volume_name session_name -

Parameters

-help | -h | -?
Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
-quiet
Suppresses the confirmation prompt for this command. This flag answers yes to all confirmation prompts.
-force
Forces the removal of the copy set despite any errors that occur when removing the copy set relationships from the storage system. When a forced removal is complete, any relationships that remain on the storage system for that copy set must be removed manually using the storage system interface.
-keeponhw
Specifies that all of the base relationships (Metro Mirror, Global Copy, Snapshot, and FlashCopy) on the storage system are kept even though the copy set is removed from the session. The relationships are removed from any consistency groups that are defined on the storage system.
-h1 {source_volume_id | source_volume_name}
Specifies the volume to be removed.
For IBM® DS8000® and IBM TotalStorage Enterprise Storage Server® Model 800 storage systems, use the volume ID for this parameter.
For other storage systems, you can use the volume ID or name for this parameter.
session_name | -
Specifies the name of the session from which the copy set is being removed.

Alternatively, use the dash (-) to specify that input for this parameter comes from an input stream (stdin). The dash is supported only in single-shot mode.

Example: Removing a copy set

The following command removes the copy set with DS8000:2107.04131:VOL:0A05 source volume in the session1 session without prompting for confirmation.

csmcli> rmcpset -quiet -h1 DS8000:2107.04131:VOL:0A05 session1

The following output is returned:

IWNR1058I  The copy sets for session session1 were deleted.

IWNR2002I  The pair was successfully deleted in session session1 for copy set 
DS8000:2107.04131:VOL:0A05 with source DS8000:2107.04131:VOL:0A05 and target 
DS8000:2107.04131:VOL:0A06.

IWNR1095I  Copy set DS8000:2107.04131:VOL:0A05 in session session1 was 
successfully deleted.

Example: Removing a copy set from a session by using the volume nickname

The following command removes the copy set with XIV:VOL:6000646:myvolume source volume in the snap2 session without prompting for confirmation.

csmcli> rmcpset -h1 XIV:VOL:6000646:myvolume snap2

The following output is returned:

IWNR1058I The copy sets for session snap2 were deleted.

IWNR2005I The volume with a volume ID of XIV:VOL:6000646:110789(myvolume) was 
successfully removed from the copy set with a source volume ID 
of XIV:VOL:6000646:110789 from the session named snap2.

IWNR1095I Copy set XIV:VOL:6000646:myvolume in session snap2 was 
successfully deleted.