| Index | Top - Up | Data ONTAP 8.3 |
Create a new SnapMirror policy
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
The snapmirror policy create command creates a SnapMirror policy. When applied to a SnapMirror relationship, the SnapMirror policy controls the behavior of the relationship and specifies the configuration attributes for that relationship. The policies DPDefault, MirrorAllSnapshots, MirrorAndVault, MirrorLatest and XDPDefault are created by the system.
-vserver <vserver name> - Vserver Name
-policy <sm_policy> - SnapMirror Policy Name
[-type {vault|async-mirror|mirror-vault}] - Snapmirror Policy Type
If the type is set to async-mirror then the policy is for Disaster Recovery. When the policy type is associated with extended data protection (XDP) relationships, snapmirror update and snapmirror resync operations transfer selected Snapshot copies from the primary volume to the secondary volume. The selection of Snapshot copies is governed by the rules in the policy. However snapmirror initialize and snapmirror update operations on data protection (DP) relationships ignore the rules in the policy and transfer all Snapshot copies of the primary volume which are newer than the common Snapshot copy on the destination. For both data protection (DP) and extended data protection (XDP) relationships, the Snapshot copies are kept on the secondary volume as long as they exist on the primary volume. Once a protected Snapshot copy is deleted from the primary volume, it is deleted from the secondary volume as part of the next transfer. The policy type supports rules with certain pre-defined label names only. Refer to the man page for the snapmirror policy add-rule command for the details.
If the type is set to vault then the policy is used for Backup and Archive. The rules in this policy type determine which Snapshot copies are protected and how long they are retained on the secondary volume. This policy type is supported by extended data protection (XDP) relationships only.
If the type is set to mirror-vault then the policy is used for unified data protection which provides both Disaster Recovery and Backup using the same secondary volume. This policy type is supported by extended data protection (XDP) relationships only.
[-comment <text>] - Comment
[-tries <unsigned32_or_unlimited>] - Tries Limit
[-transfer-priority {low|normal}] - Transfer Scheduling Priority
[-ignore-atime {true|false}] - Ignore File Access Time
[-restart {always|never|default}] - Restart Behavior
[-is-network-compression-enabled {true|false}] - Is Network Compression Enabled
vs0.example.com::> snapmirror policy create -vserver vs0.example.com
-policy TieredBackup -type vault -tries 10 -restart never| Index | Top - Up | Data ONTAP 8.3 |
Copyright © 1994-2015 NetApp, Inc. Legal Information