Table of ContentsView in Frames

Releasing partners from a SnapMirror relationship

To permanently end a SnapMirror relationship between a source and destination pair of volumes or qtrees, you need to use the snapmirror release command on the source and the snapmirror break command on the destination.

About this task

Releasing a source from a destination volume or qtree allows the source to delete its base Snapshot copy for the SnapMirror relationship. After breaking the relationship, you need to take additional steps to scrub the destination. Unless these extra steps are performed, the Snapshot copies associated with the broken relationship remain stored on the destination system, and a snapmirror status command continues to list the former destination object as a current destination object.

Steps

  1. On the source system, enter the following command:snapmirror release {source_volume | qtree_path}[dest_system:]{dest_volume | qtree_path}
    source_volume or qtree_path is the name of the source volume or path to the qtree that you want to release from the destination.

    dest_system is the name of the system where the destination is located.

    dest_volume or qtree_path is the name of the volume or path to the qtree that is the destination.

    If you do not enter the name of the destination system, SnapMirror uses the name of the system on which you entered the command.

    Example
    For a SnapMirror volume relationship:
    systemA> snapmirror release vol0 systemB:vol2
    Example
    For a SnapMirror qtree relationship:
    systemA> snapmirror release vol/vol1/qtree2 systemB:/vol/vol2/qtree5
    SnapMirror frees all resources on the source system that had been dedicated to the SnapMirror relationship.
  2. On the destination system, enter the following command to break the SnapMirror relationship between the source and destination objects. snapmirror break {vol_name | qtree_path}
    vol_name is the name of the volume that you want to release from the relationship.

    qtree_path is the path of the qtree that you want to release from the relationship.

  3. On the destination system, use the snapmirror status -l command to determine which Snapshot copy basename is associated with the SnapMirror relationship that you just broke.
    • For a broken SnapMirror volume relationship:snapmirror status -l dest_vol
    • For a broken SnapMirror qtree relationship:snapmirror status -l /vol/dest_vol/dest_qtree

    In the detailed output that is displayed, note the Snapshot copy basename associated with the SnapMirror relationship that you just broke.

  4. On the destination system, use the following command to delete the Snapshot copy set that you displayed in the previous step.snap delete dest_vol snapshot_basename
  5. Through the Admin host client, edit the /etc/snapmirror.conf file on the destination system. Locate and delete the entry that specifies the SnapMirror relationship you want to end.