Table of ContentsLibraryView in Frames

Editing the snapmirror.conf file

If SnapMirror is enabled, changes to the /etc/snapmirror.conf file take effect within two minutes. If SnapMirror is not enabled, changes to the /etc/snapmirror.conf file take effect immediately after entering the snapmirror on command, to enable SnapMirror.

Considerations

You should edit the snapmirror.conf file when there are no active SnapMirror transfers for the source and destination relationships that you want to change.
Note: If you change the host name in a snapmirror.conf file entry, when there are more than one active SnapMirror transfers for that specific source and destination relationship, one or more of the transfers might be aborted.

Steps

  1. If you want to add comments to the /etc/snapmirror.conf file, precede the comment with a pound sign (#).

    Note: If it does not already exist, use a text editor to create a file called snapmirror.conf in the /etc directory on the root volume of the destination storage system.

    Example

    # Replicating from systemA

  2. For each destination volume or qtree that is to be located on this storage system, type an entry specifying the source, destination, characteristics and schedule of the data transfer on one line using the following syntax.source_system:{source_volume | /vol/volume_name/qtree_name} dest_system:{dest_volume | /vol/volume_name/qtree_name} arguments schedule

    Note: When you use a qtree as a source, you do not create another qtree to serve as the destination. SnapMirror automatically creates one for you, using the name you specify. However, you must specify the name of the qtree destination in the volume where you want it to be placed, either in the /etc/snapmirror.conf file or in the snapmirror initialize command.
    Note: Do not specify more than 254 destination qtrees for any one volume in your /etc/snapmirror.conf file entries.

    If you want to combine all non-qtree data in a volume into a qtree to use as a SnapMirror source, use this syntax.source_system:/vol/source_volume/- dest_system:/vol/dest_volume/qtree_name

    The hyphen (-) character indicates all non-qtree data in the specified volume.

    Note: The data in /vol/source_volume/- qtree can only be a SnapMirror source, never a destination. That is, after you create the /- qtree, you can copy data from it to another qtree you name, but you cannot copy data to it from another qtree.

  3. Save edits to the file.