The age of orchestration: from Docker basics to cluster management
Hadr availability group-sql_server_denali
1. SQL Server Denali (2011) has introduced a new feature named "Availability Group"
"HADR" is a high-availability and disaster recovery solution introduced in SQL Server
2011 Named "Denali". Deploying "HADR" involves configuring one or more availability
groups.
Note :This Post is focused specifically on the "How to set up HADR", please check other
posts to understand concept of HADR.
Infrastructure Required To test the HADR / High Availability Group
1. Domain Controller for Authentication
2. Two Virtual Machines with Windows Server 2008 R2 with Failover Clustering
installed on each Node.
3. Local Instance of SQL Server (Not Clustered Instance) installed on Virtual
Machines with Windows Server 2008 R2 (which are mentioned in point 2)
In this Demo, this was the setup configuration, which I used
Configuration for Domain Controller
• RAM : 512 MB
• Windows Server Name : DC
• Domain Name : DEMO
• IP Address : 192.168.0.1
Configuration for Virtual Server - 1
• RAM : 1 GB
• Windows Server Name : DENALI-SQL
• Windows Failover Cluster Name : DENALI_CLUSTER
• SQL Instance Name : DENALI-SQLINST1
• Member of Domain : DEMO
• Note :
o This was One node Cluster
o As this a One node cluster no need to create a shared storage
o Server IP : 192.168.0.11
o Failover Clustering IP Address : 192.168.0.15
o SQL Server Cluster IP Address : 192.168.0.12
Configuration for Virtual Server - 2
• RAM : 1 GB
• Windows Server Name : DENALI-SQL2
• Windows Failover Cluster Name : DENALI_CLUSTER2
• SQL Instance Name : DENALI-SQLINST2
2. • Member of Domain : DEMO
• Note :
o This was again a single node Cluster
o As this a One node cluster no need to create a shared storage
o Server IP : 192.168.0.21
o Failover Clustering IP Address : 192.168.0.25
o SQL Server Cluster IP Address : 192.168.0.22
Note : All Servers are in same subnet of 255.255.255.0 and domain administrator account
is being to complete this configuration.
STEP By Step Guide to BUILD HADR in SQL Server DENALI
Step 1 : Enable the HADR service on both clustered DENALI instances
• Open SQL Server Configuration Manager
• Select SQL Server Services
• Right-click on your SQL Server, in my case SQL Server (INST1) and select
Properties
• Select the SQL HADR tab and click the checkbox Enable SQL HADR Service
4. • Restart your SQL Services (using Failover Cluster Manager, select your SQL
Server Instance, and take it offline. When everything is offline, bring it online
again)
Step 2 : Create an Availability Group
• Open SQL Server Management Studio on DENALI-SQLINST1
• Select Management
• Right-click Availability Groups and select New Availability Group
• Click Next
5. • Give your new Availability Group a name and click Next
6. • Select which user databases you want to add to your Availability Group. Then
click Next
7. Note : If your database is not listed, you can select Show user databases not meeting
requirements.
• In the Specify Replicas screen, you can add the instances you want to be enable
as HADR in the secondary role, after you have done this, click Next
8.
9. • Next you have the overview screen, click Finish to start configuring the HADR
setup
10. • click FINISH to finish the HADR setup, where you will get a progress screen