ontap9 svmdr

Set up , manage and delete an svmdr pair.

Two clusters - cluster1 and cluster2
snapmirror license on both clusters
peering of the two clusters

cluster1 will be the source cluster2 will be the destination.
vserver src (source) and dest (destination).

1. create vserver src on cluster1.

cluster1::> vserver create -vserver src -subtype default -rootvolume rv -aggregate n1_aggr1 -rootvolume-security-style unix

2. create a datavolume for src.

cluster1::> vol create -vserver src -volume data -aggregate n1_aggr1 -size 500m -state online -junction-path /data

3. create destination vserver on cluster2.

cluster2::> vserver create -vserver dest -subtype dp-destination

4. peer the two vservers.

cluster2::> vserver peer create -vserver dest -peer-vserver src -applications snapmirror -peer-cluster cluster1

cluster1::> vserver peer accept -vserver src -peer-vserver dest

5. create a snapmirror relationship.

cluster2::> snapmirror create -source-vserver src -destination-vserver dest -type DP -schedule hourly -identity-preserve true

cluster2::> snapmirror initialize -destination-path dest:

6. check the vservers

cluster1::> vserver show

src data default running running rv n1_aggr1

cluster2::> vserver show

dest data dp-destination stopped - -

Perform a failover:

1. stop the source vserver.

cluster1::> vserver stop -vserver src

2. run a snapmirror update.

cluster2::> snapmirror update -destination-path dest:

3. quiesce the relationship and break it.

cluster2::> snapmirror quiesce -destination-path dest:
cluster2::> snapmirror break -destination-path dest:

4. start the vserver

cluster2::> vserver start -vserver dest

5. create a new relationship

cluster1::> snapmirror create -source-path dest: -destination-path src: -type DP -throttle unlimited -identity-preserve true

6. resync the relationship.

cluster1::> snapmirror resync -destination-path src:

7. stop the destination vserver

cluster2::> vserver stop -vserver dest

8. update the source , quiesce and break.

cluster1::> snapmirror update src:
cluster1::> snapmirror quiesce -destination-path src:
cluster1::> snapmirror break -destination-path src:

9. start the source vserver.

cluster1::> vserver start -vserver src

10. resync the original relationship.

cluster2::> snapmirror resync -destination-path dest:

11. delete the temporary relationship.

cluster1::> snapmirror delete -destination-path src:

12. release the destination.

cluster2::> snapmirror release -destination-path src:

Get rid of everything.

cluster2::> snapmirror delete -destination-path dest:
cluster1::> snapmirror release dest:
cluster2::> vol offline -vserver dest -volume data
cluster2::> snapmirror break -destination-path dest:
cluster2::> vol destroy -vserver dest -volume data
cluster2::> vol offline -vserver dest -volume rv
cluster2::> vol destroy -vserver dest -volume rv
cluster2::> vserver peer delete -vserver dest -peer-vserver src
cluster1::> vol offline data -vserver src
cluster1::> vol destroy -vserver src -volume data
cluster1::> vol offline -vserver src rv
cluster1::> vol destroy -vserver src rv
cluster1::> vserver delete src
cluster2::> vserver delete -vserver dest

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.