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 previous posts to understand concept of HADR or Download the Microsoft Presentation .
Infrastructure Required To test the HADR / High Availability Group
- Domain Controller for Authentication
- Two Virtual Machines with Windows Server 2008 R2 with Failover Clustering installed on each Node.
- 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-SQL\INST1
- Member of Domain : DEMO
- Note :
- This was One node Cluster
- As this a One node cluster no need to create a shared storage
- Server IP : 192.168.0.11
- Failover Clustering IP Address : 192.168.0.15
- 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-SQL2\INST2
- Member of Domain : DEMO
- Note :
- This was again a single node Cluster
- As this a One node cluster no need to create a shared storage
- Server IP : 192.168.0.21
- Failover Clustering IP Address : 192.168.0.25
- 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 (AlwaysON) in SQL Server DENALI
Step 1 : Enable the HADR (AlwaysON) 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
- Click Ok on the warning dialog box
- 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-SQL\INST1
- Select Management
- Right-click Availability Groups and select New Availability Group
Click Next
- Give your new Availability Group a name and click Next
- Select which user databases you want to add to your Availability Group. Then click Next
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
- Next you have the overview screen, click Finish to start configuring the HADR setup
- click FINISH to finish the HADR setup, where you will get a progress screen
This Completes you HADR Implementation.

How are you supposed to restart the SQL Services with the Failover Cluster Manager when the SQL was installed as a NON-Clustered resource?
Thanks!
A Great writeup is being posted by one of community member Remus at :
http://rusanu.com/2010/11/11/alwayson-high-availability-and-reads-scale-out