使用ONTAP功能计划SnapMirror更新的不同方式有哪些?
适用场景
- 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策略添加计划:
- 您可以通过命令行界面使用隐藏命令添加此功能
- 可以使用名为
transfer-schedule-name
的隐藏字段检查、添加或修改具有计划的SnapMirror策略:
cluster::> snapmirror policy show -fields transfer-schedule-name
transfer-schedule-name
字段 在ONTAP 9。11.1中为公共字段。有关详细信息、请参阅错误1349723 - SnapMirror关系中具有"Transfer _SCHEDURAE"和"-SCHEDUE"参数的SnapMirror策略的注意事项