跳转到主内容

This Site will be down for up to 3 hours on December 2, 2023 from 8 PM - 11 PM PST, to deploy an infrastructure update.

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

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

可不使用  

适用场景

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

问题解答

  • 在ONTAP 9中、所有类型的SnapMirror关系仍通过scheduleSnapMirror关系本身的参数进行计划、如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 主卷备份快照、请重新创建不带 schedule 参数的规则。有关二级 SnapVault Snapshot 副本功能的其他高级详细信息和注意事项:

  • 此功能仅可用于vaultmirror-vault类型 SnapMirror 策略。
  • SnapMirror 策略中必须至少有一条规则、没有 schedule 参数。
  • 此功能仅在 ONTAP 9 和更高版本中可用。
  • 使用 SnapMirror 策略的目标卷上的 Snapshot 副本为 不支持
  • 目标系统需要运行、否则不会在计划时间执行任何快照

注意: Cloud Backup Service 下、FlexGroupSnapMirror不支持此功能

 

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.
Scan to view the article on your device