Friday 12 February 2016

Cluster Mode NetApp Snapvault example


. create vserverA and vserverB
cl1::> vserver create vserverA -rootvolume roota -aggregate aggr1_n1 -ns-switch file -nm-switch file -rootvolume-security-style unix
cl1::> vserver create vserverB -rootvolume rootb -aggregate aggr1_n2 -ns-switch file -nm-switch file -rootvolume-security-style unix
for vserverA
2. create a source datavolume in vserverA
cl1::> vol create -vserver vserverA -volume datasource -aggregate aggr1_n1 -size 100m -state online
3. create a destination datavolume in vserverB with type DP
1::> vol create -vserver vserverB -volume datadest -aggregate aggr1_n2 -size 100m -type DP
Using the 5min schedule for snapshots on the source
Create new snapshot-policy for vserverA with the 5min schedule and a count of 2.
Also specify the snapmirror-label for the snapshots.
4. cl1::> volume snapshot policy create -vserver vserverA -policy 5minpol -enabled true -schedule1 5min -count1 2 -prefix1 5min -snapmirror-label1 vserverA-vault-5min
Connect snapshot-policy to the vserverA datasource volume.
5. cl1::> volume modify -vserver vserverA -volume datasource -snapshot-policy 5minpol
for vserverB.
Create snapmirror policy and rule
6. cl1::> snapmirror policy create -vserver vserverB -policy vserverA-vault
7. cl1::> snapmirror policy add-rule -vserver vserverB -policy vserverA-vault -snapmirror-label vserverA-vault-5min -keep 40
Setup a peer relationship
8. cl1::> vserver peer create -vserver vserverA -peer-vserver vserverB -applications snapmirror
Create the snapmirror relation
9. cl1::> snapmirror create -source-path vserverA:datasource -destination-path vserverB:datadest -type XDP -policy vserverA-vault -schedule 5min
Initialize.
10. cl1::> snapmirror initialize -destination-path vserverB:datadest
Monitor:
View the lag time.
cl1::> snapmirror show -destination-path vserverB:datadest -field lag
View the relationship
cl1::> snapmirror show
View the snapshots
cl1::> snapshot show -vserver vserverA -volume datasource -instance
cl1::> snapshot show -vserver vserverB -volume datadest


Please leave your comments.. that would be helpful, Thanks for reading.

1 comment:

  1. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updatingHadoop Admin Online Training

    ReplyDelete

Featured post

Netapp monitoring solution from scratch

I created a netapp monitoring solution on a UNIX machine... and have uploaded the static files to a free php server for so that you under...