跳转到主内容

SnapMirror 策略类型有哪些?它们意味着什么?

Views:
446
Visibility:
Public
Votes:
0
Category:
snapmirror
Specialty:
dp
Last Updated:

 

适用于

  • 集群模式 Data ONTAP 8.3
  • ONTAP 9 

问题解答

SnapMirror 策略类型从集群模式 Data ONTAP 8.3 开始引入,用于版本灵活的 SnapMirror 关系(在 ONTAP 9 及更高版本中也称为统一复制)。这些策略类型对 SnapMirror 关系的行为有显著影响,并在选择要复制和保留的数据时提供更大的灵活性。此外,还创建了其他默认策略来使用新的策略类型。

策略类型 定义
async-mirror 行为类似于 DP 镜像。此策略类型不支持带有用户定义 Snapshot 标签的规则。它仅允许两个预定义标签
sm_created 和 all_source_snapshots 策略规则仅支持这些标签的两种组合,要么仅 sm_created,要么 sm_created 和 all_source_snapshots。 

mirror-vault

允许在同一卷中进行灾难恢复和数据保管。将源卷的活动文件系统复制到目标卷,并允许目标卷将数据保留更长时间。数据复制遵循sm_created或系统定义/自定义规则,并根据用户自定义的快照标签,使用用户定义的规则延长保留时间。 
vault 仅限保管库和备份。此策略类型将关系定义为 SnapVault,而不是版本灵活的 SnapMirror。
sync-mirror 和 strict-sync-mirror 这些策略类型用于同步灾难恢复,并且仅受 FlexVol 卷之间的扩展数据保护 (XDP) 关系支持。所有对主节点的写入操作都会在写入确认给客户端之前复制到辅助节点。strict-sync-mirror 变体会在复制失败时限制主节点上的客户端进一步 IO,而 sync-mirror 变体则不会。这些策略类型不支持复制用户 Snapshot 副本

默认策略:

clusterA::> snapmirror policy show
Vserver Policy             Policy Number         Transfer
Name    Name               Type   Of Rules Tries Priority Comment
------- ------------------ ------ -------- ----- -------- ----------
clusterA
        DPDefault         async-mirror  1     8  normal  Default policy for DP relationship.
  SnapMirror Label: sm_created                         Keep:       1
                                                Total Keep:       1
 
clusterA
        MirrorAllSnapshots async-mirror  2     8  normal  Asynchronous SnapMirror policy for mirroring all snapshots and the latest active file system.
  SnapMirror Label: sm_created                        Keep:       1
                    all_source_snapshots                           1
                                                 Total Keep:       2
 
clusterA
        MirrorAndVault    mirror-vault  3     8  normal  A unified Asynchronous SnapMirror and SnapVault policy for mirroring the latest active file system and daily and weekly snapshots.
  SnapMirror Label: sm_created                         Keep:       1
                    daily                                          7
                   weekly                                        52
                                                 Total Keep:      60
 
clusterA
        MirrorLatest      async-mirror  1     8  normal  Asynchronous SnapMirror policy for mirroring the latest active file system.
  SnapMirror Label: sm_created                         Keep:       1
                                                 Total Keep:       1
 
clusterA
        XDPDefault        vault         2     8  normal  Default policy for XDP relationship with daily and weekly rules.
  SnapMirror Label: daily                              Keep:       7
                    weekly                                       52
                                                 Total Keep:      59

 

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.