ONTAP Discussions

SVR-DR scripting / tool to automate failover/failback

joshbishop1982
1,068 Views

I would like to automate my SVM-DR failover with a script but I would also like to build in the option to SVM-DR snapmirror back to the original source SVM. This would be used for business continuity testing where I would failover the SVM to its DR cluster and then eventually failback to the original SVM once the test is over.

 

The order of events I am interested in would be:

Phase 1 - failover
1. (Cluster1) Stop SVM
2. (Cluster2) Break SVM-DR
3. (Cluster1) Release SVM-DR
4. (Cluster2) Start SVM
5. (Cluster1) Create SVM-DR relationship

Phase 2 - failback

1. (Cluster2) Stop SVM
2. (Cluster1) Break SVM-DR
3. (Cluster2) Release SVM-DR
4. (Cluster1) Start SVM
5. (Cluster2) Create SVM-DR relationship

 

Is there any tool out there that I can play around with that would allow me to perform these steps. I read about WFA, is that still relevant and actively used in 2024? i'd like to thin that NetApp have developed some type of tool that handles this via an API.

2 REPLIES 2

TMACMD
1,036 Views

Personally I would add a snapmirror update after the svm stop in both directions

joshbishop1982
1,030 Views

Yep 100%, I would also do that but I just forgot it in the steps above. I got in touch with my account rep at NetApp and he's going to chat to some SME's about my query. I don't think there is an easy way of doing this without some fancy script writing which I have no experience in. WFA might be the way forward which is something I was hoping to avoid.

Public