跳转到主内容

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

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

可不使用  

适用场景

  • ONTAP 9
  • SnapVault
  • 长期保留/二级存储快照
  • 仅限FlexVol

问题解答

  • 在 ONTAP 9中,所有类型的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

  • 在ONTAP 9中、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策略规则中找到的此计划参数 不是 传输计划、 不会 触发备份。而是控制一项称为二级SnapVault Snapshot副本的新功能。此功能可 在SnapVault二级卷上创建独立的Snapshot副本、而无需在SnapVault主系统上创建和维护相应的Snapshot副本。如果在分配给SnapMirror关系的SnapMirror策略规则中使用计划、则该规则将在计划触发时在SnapVault二级卷上创建快照。这些规则 不会 触发更新、也 不会 从主卷备份具有已配置标签的快照。如果您希望规则从SnapVault主卷备份快照、请重新创建不带计划参数的规则。有关二级SnapVault Snapshot副本功能的其他详细信息和需要说明的事项:

  • 此功能仅适用于 vault 和 mirror-vault 类型的SnapMirror策略。
  • SnapMirror策略中必须至少有一个不带计划参数的规则。
  • 此功能仅在ONTAP 9及更高版本中可用。
  • 不支持在目标卷上使用SnapMirror策略的Snapshot副本
  • 目标系统需要运行、否则不会在计划时间创建Snapshot

注意: [1]  Cloud Backup Service下的FlexGroup和SnapMirror不支持此功能、 也不支持一致性组。

 

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.