Quantcast
Viewing all articles
Browse latest Browse all 4532

Read only DNS listener failover automation from primary to secondary

Ok...so here is the requirement. I have a 2 node cluster with 2 standalone 2k14 instances having alwayson setup. As per client requirement we have created a client access point with a cname alias in dns to connect to secondary replica. Now, everytime whenerver the roles switch over one has to manually move this resource from the previous secondary node to the new secondary node. This is tedious, and should not be done manually either, so I am looking for a way to automate it so that as soon as the role switches over, the resource group after some time should also switch over to the current secondary. 

I'm not sure how I can achieve this whether it's possible through tsql or we need to use powershell for the same. I'm not an expert in any of these, so would request the forum members to put some light on how this could be achieved, and if possible provide a script to do it. I appreciate all the help.

Env details
x\a (current primary)
y\2a (secondary)

client access point (resource group): aglreadtest

Let me know if any further info on this is reqd.

Regards,
Faiz

Viewing all articles
Browse latest Browse all 4532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>