Setting up Always on Availability Group

Published Mar 13 2019 10:03 AM 761 Views
First published on MSDN on Dec 20, 2017

Authored by Gunjan Jain

Note: It is expected that reader has basic understanding of Always On Availability groups.

Pre-requisites :- Setting up Windows Server Failover Cluster (WSFC)

  1. Installation of Windows Server edition (2008 R2 or higher), SQL Server 2012, Windows Cluster + KB for quorum voting configuration, SQL Light Speed and DFS.

  2. The primary and the secondaries on the primary data center and disaster recovery data center should be part of the windows failover cluster configuration.

3. Once the servers are joined to the windows failover cluster manager, the quorum is set. The vote for the primary nodes are set to 1 and for disaster recovery is set to 0, with a file share having vote to 1. (The file share is kept in order to maintain odd number of votes and node majority in the case of disaster on one of the nodes).

Enabling Always On Availability group

4.  After the installation of failover cluster, enable Always On Availability Group and add the nodes to primary, secondary and the disaster recovery nodes to the Availability  Group.

Note: While the availability group appears as a resource in the WSFC, you should not attempt to manage it with Failover Cluster Manager or WSFC-scoped interfaces. Instead, manage the availability group within the context of the SQL Server instance via SQL Server Management Studio, Transact-SQL, or Windows PowerShell. For more information about why you should not use Failover Cluster Manager or other WSFC-scoped interfaces, see the blog post DO NOT use Windows Failover Cluster Manager to perform Availability Group Failover .

The AlwaysOn Dashboard is a recommended way to quickly view the health of a specific availability group. In it you can see the location of the primary instance, the failover mode of the replicas, the synchronization state of the replicas, and the failover readiness of the various replicas. You can also access the AlwaysOn Health Events Extended Events session data directly from the dashboard in order to view recent availability group activity, state changes, and events.

Version history
Last update:
‎Mar 13 2019 10:03 AM
Updated by: