Table of ContentsLibraryView 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 different commands on the source and destination storage systems.

Considerations

  • Source system—Use the snapmirror release command. Releasing a source from a destination volume or qtree allows the source to delete its base Snapshot copy for the SnapMirror relationship.
  • Destination system—Use the snapmirror break command. After breaking the relationship, you need to scrub the destination with additional steps. Unless these extra steps are taken, the Snapshot copies associated with the broken relationship remain stored on the destination system, and a snapmirror status command will continue 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 relationshipsnapmirror status -l dest_vol
    • For a broken SnapMirror qtree relationshipsnapmirror 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 Adminhost 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.