Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Read only DNS listener failover automation from primary to secondary

$
0
0
[font="Tahoma"]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 detailsx\a (current primary)y\2a (secondary)client access point (resource group): aglreadtestLet me know if any further info on this is reqd.Regards,Faisal[/font]

Viewing all articles
Browse latest Browse all 6525

Trending Articles