snapmirror protect
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
Start protection for volumes
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
Description
The snapmirror protect
command establishes SnapMirror protection for a list of volumes. For each volume, the command creates a data protection destination volume in the Vserver specified by the -destination-vserver
parameter, creates an extended data protection (XDP) SnapMirror relationship, and starts the initialization of the SnapMirror relationship. This command must be used from the destination Vserver or cluster. This command is not supported for FlexGroup volume constituents, Vserver endpoints or non ONTAP endpoints.
Parameters
-path-list {<[vserver:][volume]>|<[[cluster:]//vserver/]volume>|<hostip:/lun/name>|<hostip:/share/share-name>}
- Path List-
This parameter specifies the list of volumes to be protected. The list is a comma separated list of paths of the form
vserver:volume
, for examplevs1.example.com:dept_eng1, vs1.example.com:dept_eng2
[-destination-vserver <vserver name>]
- Destination Vserver-
This parameter specifies the Vserver in which to create the destination volumes of the SnapMirror relationships.
[-schedule <text>]
- SnapMirror Schedule-
This optional parameter designates the name of the schedule which is used to update the SnapMirror relationships.
-policy <sm_policy>
- SnapMirror Policy-
This parameter designates the name of the SnapMirror policy which is associated with the SnapMirror relationships.
[-auto-initialize {true|false}]
- Auto Initialize-
This optional parameter specifies whether or not initializes of the SnapMirror relationships should be started after the relationships are created. The default value for this parameter is
true
. [-destination-volume-prefix <text>]
- Destination Volume Name Prefix-
This optional parameter designates the prefix for the destination volume name. For example if the source path is of the form
vserver:volume
and the destination-volume-prefix specified isprefix
and no destination-volume-suffix is specified, then the destination volume name will be_prefix_volume_dst
or possiblyprefix_volume_1_dst
if a name conflict is encountered. If both prefix and suffix are specified asprefix
and__suffix
, then the destination volume name will beprefix_volume_suffix
orprefix_volume_1_suffix
, if a name conflict is encountered. [-destination-volume-suffix <text>]
- Destination Volume Name Suffix-
This optional parameter designates the suffix for the destination volume name. If you do not desginate a suffix, a destination volume name with suffix
dst_
will be used. For example if the source path is of the formvserver:volume
, and the suffix specified isDP_
, the destination volume will be created with the namevolume_DP
orvolume_1_DP
if a name conflict is encountered. If both prefix and suffix are specified asprefix
andsuffix
, then the destination volume name will beprefix_volume_suffix
orprefix_volume_1_suffix
, if a name conflict is encountered. [-support-tiering {true|false}]
- Provision Destination Volumes on FabricPools-
This optional parameter specifies whether or not FabricPools are selected when provisioning a FlexGroup during protection workflows. When this parameter is set to true, only FabricPools are used; when set to false, only non-FabricPools are used. Tiering support for a FlexGroup can be changed by moving all of the constituents to the required aggregates. The default value is
false
. This parameter is supported only for FlexGroups. [-tiering-policy {snapshot-only|auto|none|backup}]
- Destination Volume Tiering Policy-
This optional parameter specifies the tiering policy to apply to the destination FlexGroup. This policy determines whether the user data blocks of a FlexGroup in a FabricPool will be tiered to the capacity tier when they become cold. FabricPool combines flash (performance tier) with an object store (external capacity tier) into a single aggregate. The default tiering policy is 'none' for a FlexGroup. The temperature of a FlexGroup block increases if it is accessed frequently and decreases when it is not.
The available tiering policies are:
-
snapshot-only - This policy allows tiering of only the FlexGroup Snapshot copies not associated with the active file system. The default minimum cooling period is 2 days. The
-tiering-minimum-cooling-days
parameter can be used to override the default using thevolume modify
command after the destination FlexGroup has been created. -
auto - This policy allows tiering of both snapshot and active file system user data to the capacity tier. The default cooling period is 31 days. The
-tiering-minimum-cooling-days
parameter can be used to override the default using thevolume modify
command after the destination FlexGroup has been created. -
none - FlexGroup blocks will not be tiered to the capacity tier.
-
backup - On DP FlexGroup this policy allows all transferred user data blocks to start in the capacity tier.
This parameter is supported only for FlexGroups.
-
Examples
To establish SnapMirror protection for the source volumes vs1.example.com:dept_eng1
and vs1.example.com:dept_eng2
using destination-vserver vs2.example.com
and policy MirrorAllSnapshots
type the following command:
vs2.example.com::> snapmirror protect -path-list vs1.example.com:dept_eng1,vs1.example.com:dept_eng2 -destination-vserver vs2.example.com -policy MirrorAllSnapshots