ONTAP 9 Manuals ( CA08871-402 )

Create a custom replication policy

You can use a default or custom policy when you create a replication relationship. For a custom unified replication policy, you must define one or more rules that determine which Snapshot copies are transferred during initialization and update.

You can create a custom replication policy if the default policy for a relationship is not suitable. You might want to compress data in a network transfer, for example, or modify the number of attempts SnapMirror makes to transfer Snapshot copies.

About this task

The policy type of the replication policy determines the type of relationship it supports. The table below shows the available policy types.

Policy type

Relationship type

async-mirror

SnapMirror DR

mirror-vault

Unified replication

Step
  1. Create a custom replication policy:

    snapmirror policy create -vserver SVM -policy policy -type async-mirror|mirror-vault -comment comment -tries transfer_tries -transfer-priority low|normal -is-network-compression-enabled true|false

    For complete command syntax, see the man page.

    You can specify the schedule for creating a common Snapshot copy schedule for SnapMirror Synchronous relationships by using the -common-snapshot-schedule parameter. By default, the common Snapshot copy schedule for SnapMirror Synchronous relationships is one hour. You can specify a value from 30 minutes to two hours for the Snapshot copy schedule for SnapMirror Synchronous relationships.

    The following example creates a custom replication policy for SnapMirror DR that enables network compression for data transfers:

    cluster_dst::> snapmirror policy create -vserver svm1 -policy DR_compressed -type async-mirror -comment “DR with network compression enabled” -is-network-compression-enabled true

    The following example creates a custom replication policy for unified replication:

    cluster_dst::> snapmirror policy create -vserver svm1 -policy my_unified -type mirror-vault
After you finish

For “mirror-vault” policy types, you must define rules that determine which Snapshot copies are transferred during initialization and update.

Use the snapmirror policy show command to verify that the SnapMirror policy was created. For complete command syntax, see the man page.

Top of Page