Deleting FlashCopy relationships

Complete this task to delete FlashCopy® relationships.

Deleting FlashCopy relationships between volume pairs ends a FlashCopy operation. You can delete a FlashCopy relationship at any time. If you delete a FlashCopy relationship with the background copy option and the background copy operation is still in progress, the target volume is not a complete point-in-time copy of the source volume.

You can perform this task using either the DS CLI or the DS Storage Manager.

Perform the following steps to remove FlashCopy relationships using DS CLI commands. The example commands in this task are shown in two formats. The first format shows the type of information the command requires. The second format is an example command with values declared for the variables.

  1. Issue the lsflash command to check the status information for each FlashCopy relationship. A detailed report (when you use the -l parameter) is displayed for each FlashCopy relationship. Enter the lsflash command at the dscli command prompt with the following parameters and variables:

    dscli>lsflash -dev storage_image_ID -l SourceVolumeID:TargetVolumeID.

    dscli>lsflash -dev IBM.1750-68FA150  -l 0100:0100
    Use the -l parameter to provide a more detailed report about the FlashCopy relationships.
    Note: If you have originally used the mkremoteflash command to create your FlashCopy relationships, you must enter the lsremoteflash command to perform a status check.
  2. Analyze the list of volumes and ensure that these are the volumes from which the FlashCopy relationship must be removed.
  3. Issue the rmflash command to remove the FlashCopy volume relationships. Enter the rmflash command at the dscli command prompt with the following parameters and variables:

    dscli>rmflash -dev storage_image_ID SourceVolumeID:TargetVolumeID

    Example

    dscli>rmflash -dev IBM.1750-68FA120 0001:0004 0003:00FF 0008:000C
    Notes:
    1. The example shows the use of multiple FlashCopy pair IDs. Ensure that you separate multiple FlashCopy pair IDs with spaces.
    2. If you used the mkremoteflash command to create your FlashCopy relationships, you must enter the rmremoteflash command to remove the FlashCopy relationships.
  4. A confirmation message is displayed for each FlashCopy relationship that you want to remove. Enter Y in response to each message that requests that you confirm that you want to remove the specified FlashCopy pair. A message similar to the following appears for each FlashCopy pair being removed when you process the rmflash command.
    Are you sure you want to remove the FlashCopy pair 0001:0004? [y/n]: Y
    
    FlashCopy pair 0001:0004 successfully removed.
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2004, 2007. All Rights Reserved.