- 1. Intro
- 2. Creating the Load Balancer
- 3. AD Delegated Permissions
- 4. Windows Failover Cluster
- 5. Configuring the Nodes - Security
- 6. Configuring the Nodes - Shared Location
- 7. AlwaysOn Configuration - Enable AlwaysOn
- 8. AlwaysOn Configuration - Initial Creation
- 9. AlwaysOn Configuration - Initial Creation - Full
- 10. AlwaysOn Configuration - Initial Creation - Join
- 11. AlwaysOn Configuration - Initial Creation - Skip
- 12. Adding the Listener
AlwaysOn Configuration - Enable AlwaysOn
Click on AlwaysOn High Availability, click on the checkbox that says Enable AlwaysOn Availability Groups and enter a Windows failover cluster name. Click OK to close.
Browse to the service called SQL Server (MSSQLSERVER) > Right Click > restart.
Always on has 3 different ways of adding databases. Full, Join and Skip sync
I suggest performing this step logged in as the service account. That way, all tasks get performed with elevated privelages
Connect to Node A, Launch SQL Server Management Studio
Connect to the first Node
Press the connect () icon and connect to the second (or however many nodes there are).
This displays all nodes have been added to the console.
Here I created 3 sample databases. But in a live environment, this will be whatever you want it to be.
We need to backup the databases first. AlwaysON won’t be able to add a database without it.
The script below will help you with that.
BACKUP DATABASE [DB Name Here]
TO DISK = N'L:\SQLBackup\DB Name Here.bak'
WITH NOFORMAT, NOINIT, NAME = N'DB Name Here-Full Database Backup',
SKIP, NOREWIND, NOUNLOAD, STATS = 10