ONTAPの機能を使用してSnapMirrorの更新をスケジュールするには、どのような方法がありますか。
環境
- ONTAP 9.7以降
- SnapMirror
- SnapVault
回答
ONTAP 9以降のスケジュールでSnapMirrorを更新するには、次の2つの方法があります。7
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スケジュールは 、CLIで関係を変更する際に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 System ManagerでSnapMirrorポリシーのスケジュールを追加できます。
- CLIで非表示のコマンドを使用してこの機能を追加できます。
- スケジュールが設定されたSnapMirrorポリシーは、
transfer-schedule-name
という非表示のフィールドを使用して、チェック、追加、または変更できます。
cluster::> snapmirror policy show -fields transfer-schedule-name
- Field
transfer-schedule-name
は ONTAP 9 .11.1で公開されています。詳細については、バグ1349723「SnapMirror関係に「transfer_schedule」パラメータと「-schedule」パラメータを含むSnapMirrorポリシーに関する考慮事項」を参照してください。