Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4532

Primary not failing over to secondary in always on availabilty group in sql server 2012

$
0
0

Hi,

In lab I created always on Availability group in Sql Server 2012 with VMware

I created a domain controller and attached 2 sql2012 nodes to it(All in windows server 2008R2 with SP1). Had opened ports 1433 and 5022. But I could not connect the instance  in Sql01 from Sql02 thru SSMS . So I disabled the firewall in Sql01 and Sql02 and the always on availability group worked. Just added one database and on update of data into it found the database in the secondary fully synchronized.

In the cluster manager I moved the services which was in Sql01  to  Sql02 and was able to access the database from an application in another m/c through the listener. However when the primary was in Sql01, I shut down to see if proper failover would occur to Sql02. But in Sql02 I found that the 'recovery of the database was pending' and in the availability group , inventory was 'resolving'. Had ticked the checkbox of automatic failover (up to 2) in the specify replicas option while creating availability group through wizard. In this context my 2 questions are:

1) If I enable the firewall which all ports I have to open  for the always on availability group to function?

2) Why the primary is not failing over to the secondary when the primary is shut down although I was able to move the service from one node to the other in the cluster manager?

Thanking you in anticipation,

Binny Mathew.


Viewing all articles
Browse latest Browse all 4532

Trending Articles



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