跳转到主内容

ONTAP 9 SnapMirror 策略规则中的 "schedule" 参数如何工作?

Views:
84
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
dp
Last Updated:

可不使用  

适用场景

  • ONTAP 9
  • SnapMirror
  • 长期保留快照

问题解答

  • SnapMirror关系更新可通过 schedule SnapMirror关系本身上的参数计划、如中所示 snapmirror show -instance

ClusterDR::> snapmirror show -instance

       Source Path: svmSrc:volSrc
    Destination Path: svmDst:volDst
    Relationship Type: XDP
Relationship Group Type: none
   SnapMirror Schedule: daily

  • 或者、也可以通过 -transfer-schedule-name SnapMirror策略中的参数计划SnapMirror
  • SnapMirror策略规则具有一个单独的计划参数 snapmirror policy show -instance 、可在中查看、并可在 使用 snapmirror policy add-rule 和创建或修改SnapMirror策略规则时选择此参数snapmirror policy modify-rule
  • 本文讨论此计划参数的使用

ClusterDR::> snapmirror policy show -policy CustomMirrorVault -instance

           Vserver: ClusterDR
   SnapMirror Policy Name: CustomMirrorVault
   SnapMirror Policy Type: vault
        Policy Owner: cluster-admin
         Tries Limit: 8
      Transfer Priority: normal
  Ignore accesstime Enabled: false
   Transfer Restartability: always
Network Compression Enabled: false
       Create Snapshot: false
           Comment: -
    Total Number of Rules: 2
         Total Keep: 15
            Rules:
SnapMirror Label        Keep Preserve Warn Schedule Prefix
----------------------------- ---- -------- ---- -------- ----------
 daily              10 false     0 -     -
 weekly              5 false     0 weekly  weekly

ClusterDR::> snapmirror policy add-rule ?
   -vserver           Vserver Name
  [-policy]           SnapMirror Policy Name
  [-snapmirror-label]      Snapshot Copy Label
  [-keep]            Snapshot Copy Retention Count
  [[-preserve] {true|false}]   Snapshot Copy Preserve Enabled
  [ -warn <integer> ]      Warning Threshold Count
  [ -schedule ]         Snapshot Copy Creation Schedule
  [ -prefix ]          Snapshot Copy Creation Prefix

  • 在SnapMirror策略规则中找到的此计划参数 不是 传输计划、 不会 触发SnapMirror更新
  • 而是控制一项称为长期保留(LTR)快照的功能
  • LTR Snapshot可直接在SnapMirror目标卷上创建独立的Snapshot副本、而无需在SnapMirror源卷上创建和传输相应的Snapshot副本
  • 如果在分配给SnapMirror关系的SnapMirror策略规则中使用计划、则该规则将在计划触发时在SnapMirror目标卷上创建快照。这些规则 不会 从源卷传输Snapshot
有关长期保留快照的其他注意事项
  • 确保为LTR Snapshot配置的计划不会与SnapMirror的实际传输计划重叠
  • 只有当目标卷不是源卷(级联)时、才支持长期保留快照。LTR快照仍可用于级联的最后一个卷
  • 此功能仅适用于 vault 和 mirror-vault 类型的SnapMirror策略
  • SnapMirror策略中必须至少有一个不带计划参数的规则
  • [1]  Cloud Backup Service下的FlexGroup和SnapMirror不支持此功能。一致性组SnapMirror也不支持此功能
  • 从ONTAP 9.14.1开始、 适用于SnapVault的SnapLock 配置支持LTR快照

 

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.