跳转到主内容

使用 ONTAP 功能计划 SnapMirror 更新的方式有哪些不同?

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

适用场景

  • ONTAP 9.7及更高版本
  • SnapMirror
  • SnapVault

问题解答

  • 自ONTAP 9.7以来、可通过两种方法按计划进行SnapMirror更新:
将计划作为SnapMirror关系的参数:
  • 在创建关系期间、可以将cron计划设置为SnapMirror变量:

 cluster1::> snapmirror create -source-path test: ?
  { [-destination-path] {<[vserver:][volume]>|<[[cluster:]//vserver/]volume>|<hostip:/lun/name>|<hostip:/share/share-name>|<[vserver:]/cg/[cgname]>}  Destination Path
  | [ -destination-cluster <cluster_name> ]    Destination Cluster (default: cluster1)
   [-destination-vserver] <vserver name>    Destination Vserver
   [[-destination-volume] <volume name>] }   Destination Volume (default: "")
  [[-type] {DP|LS|XDP|RST|TDP}]          Relationship Type
  [ -vserver <vserver name> ]          Managing Vserver
  [ -schedule <text> ]              SnapMirror Schedule
  [ -policy <snapmirror policy> ]         SnapMirror Policy
  [ -tries {<integer>|unlimited} ]         Tries Limit
  [ -throttle|-k {<integer>|unlimited} ]      Throttle (KB/sec) (default: unlimited)
  [ -cg-item-mappings {<source volume>:@<destination volume>|<source item path>:@<destination item path>}, ... ]                                Consistency Group Item Mappings
  [ -identity-preserve {true|false} ]       Identity Preserve Vserver DR (default: false)
  [ -is-auto-expand-enabled {true|false} ]    Is Auto Expand Enabled

  • 在通过命令行界面修改关系期间、可以将cron计划设置为SnapMirror变量:

cluster1::> snapmirror modify -source-path test: ?
  { [-destination-path] {<[vserver:][volume]>|<[[cluster:]//vserver/]volume>|<hostip:/lun/name>|<hostip:/share/share-name>|<[vserver:]/cg/[cgname]>}  Destination Path
  | [ -destination-cluster <cluster_name> ]   Destination Cluster
   [-destination-vserver] <vserver name>    Destination Vserver
   [-destination-volume] <volume name> }    Destination Volume
  [[-vserver] <vserver name>]          Managing Vserver
 [ -schedule <text> ]              SnapMirror Schedule
  [ -policy <snapmirror policy> ]        SnapMirror Policy
  [ -tries {<integer>|unlimited} ]        Tries Limit
  [ -throttle|-k {<integer>|unlimited} ]      Throttle (KB/sec)
  [ -is-auto-expand-enabled {true|false} ]    Is Auto Expand Enabled
  [ -foreground|-w [true] ]           Foreground Process

将 计划置于SnapMirror策略之上:
  • 您可以在 ONTAP系统管理器中为SnapMirror策略添加计划:

clipboard_eb110d355812557aee3b60ae0c34db662.png  

  • 您可以通过命令行界面使用隐藏命令添加此功能
  • 可以使用名为""transfer-schedule-name的隐藏字段检查、添加或修改具有计划的SnapMirror策略:

cluster::> snapmirror policy show -fields transfer-schedule-name

  • 此命令将在未来的ONTAP版本中公开列出
注: 
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.