Setting up 7 to 7 SnapMirror with Local and Replicated Vaults

In the following blog post, we run through the steps to setup a Data ONTAP 7-Mode SnapMirror-ed Production and DR setup, additionally with a SnapVault of the primary volume at the local site, and further mirror the volume with the SnapVaults to a DR site.

In the lab, I have two sites - A and B - with the below named 7-Mode systems. We will create 3 volumes on the Production controller (N7A01) that we want to protect.

N7A01 - (Site A) Production Volumes
N7B01 - (Site B) DR of Production Volumes
N7A01 - (Site A) SnapVault of Production Volumes
N7B01 - (Site B) DR SnapVault of Production Volumes

IP Addressing:

N7A01: 10.10.10.101
N7A02: 10.10.10.104
N7B01: 10.10.10.201
N7B02: 10.10.10.204

Image: 7 to 7 SnapMirrors with Local and Replicated Vaults


Workflow

Note: The version of Data ONTAP 8 (Operating in 7-Mode) used in the lab is 8.1.2P4.

Step 1) Licensing Work

Here we add licenses for SnapMirror and SnapVault (Primary or Secondary) as required (Licenses have been XXXXXXX’d out!)

N7A01> license add XXXXXXX # snapmirror
N7A01> license add XXXXXXX # sv_ontap_pri

N7A02> license add XXXXXXX # snapmirror
N7A02> license add XXXXXXX # sv_ontap_sec

N7B01> license add XXXXXXX # snapmirror

N7B02> license add XXXXXXX # snapmirror

2) Volume Work

Here we create volumes; restrict volumes where they will be VSM (Volume SnapMirror) destinations; and disable the SnapShot schedule on the primary and secondary SnapVault volumes, since we’ll be using SnapVault snap sched to manage our SnapShots.

N7A01>
vol create vol01 -s none aggr1 2g
vol create vol02 -s none aggr1 2g
vol create vol03 -s none aggr1 2g
snap sched vol01 0 0 0
snap sched vol02 0 0 0
snap sched vol03 0 0 0

N7A02>
vol create vol010203 -s none aggr1 6g
snap sched vol010203 0 0 0

N7B01>
vol create vol01 -s none aggr1 2g
vol create vol02 -s none aggr1 2g
vol create vol03 -s none aggr1 2g
vol restrict vol01
vol restrict vol02
vol restrict vol03

N7B02>
vol create vol010203 -s none aggr1 6g
vol restrict vol010203

Note: SnapVault in 7-Mode uses the Qtree SnapMirror engine (QSM) - this gives the option of a volume fan-in relationship. Here we take all 3 source volumes and SnapVault them into our one Vault volume.

3) Hosts Files Work (Optional)

This step optional, you can let your external DNS handle this (if configured).

N7A01>
wrfile -a /etc/hosts 10.10.10.104 N7A02
wrfile -a /etc/hosts 10.10.10.201 N7B01

N7A02>
wrfile -a /etc/hosts 10.10.10.101 N7A01
wrfile -a /etc/hosts 10.10.10.204 N7B02

N7B01>
wrfile -a /etc/hosts 10.10.10.101 N7A01

N7B02>
wrfile -a /etc/hosts 10.10.10.104 N7A02

4) SnapVault Work

Here we setup the SnapVault from N7A01 to N7A02. N7A01 keeps 7 (bi) hourly snapshots, 6 nightly and 2 weekly. N7A02 also keeps 7 (bi) hourly snapshots, then 12 nightly and 5 weekly.

N7A01>
ndmpd on
options snapvault.enable on
options snapvault.access host=N7A02

N7A02>
ndmpd on
options snapvault.enable on
options snapvault.access host=N7A01
snapvault start -S N7A01:/vol/vol01/- /vol/vol010203/q_vol01
snapvault start -S N7A01:/vol/vol02/- /vol/vol010203/q_vol02
snapvault start -S N7A01:/vol/vol03/- /vol/vol010203/q_vol03

N7A01>
snapvault snap sched vol01 sv_hourly 7@mon-fri@7-19/2
snapvault snap sched vol01 sv_nightly 6@mon-fri@21
snapvault snap sched vol01 sv_weekly 2@fri@23
snapvault snap sched vol02 sv_hourly 7@mon-fri@7-19/2
snapvault snap sched vol02 sv_nightly 6@mon-fri@21
snapvault snap sched vol02 sv_weekly 2@fri@23
snapvault snap sched vol03 sv_hourly 7@mon-fri@7-19/2
snapvault snap sched vol03 sv_nightly 6@mon-fri@21
snapvault snap sched vol03 sv_weekly 2@fri@23

N7A02>
snapvault snap sched -x vol010203 sv_hourly 7@mon-fri@7-19/2
snapvault snap sched -x vol010203 sv_nightly 12@mon-fri@21
snapvault snap sched -x vol010203 sv_weekly 5@fri@23

5) SnapMirror Work

Here we first SnapMirror the production data on N7A01 to DR and N7B01 - we SnapMirror hourly at 30 past the hour.

N7A01>
options snapmirror.access host=N7B01
snapmirror on

N7B01>
options snapmirror.access host=N7A01
snapmirror on
wrfile -a /etc/snapmirror.conf N7A01:vol01 N7B01:vol01 - 30 * * *
wrfile -a /etc/snapmirror.conf N7A01:vol02 N7B01:vol02 - 30 * * *
wrfile -a /etc/snapmirror.conf N7A01:vol03 N7B01:vol03 - 30 * * *
snapmirror initialize N7B01:vol01
snapmirror initialize N7B01:vol02
snapmirror initialize N7B01:vol03

And then we setup SnapMirrors of the SnapVault-ed data on N7A02 to DR SnapVault - N7B02.

N7A02>
options snapmirror.access host=N7B02
snapmirror on

N7B02>
options snapmirror.access host=N7A02
snapmirror on
wrfile -a /etc/snapmirror.conf N7A02:vol010203 N7B02:vol010203 - 30 * * *
snapmirror initialize N7B02:vol010203

THE END

Comments