Creating a SQL Server Availability Group
Before you begin
BMC Database Automation (BDA) can discover SQL Server Availability Groups which you can then approve to use in BDA. For a walkthrough, see Walkthrough-Discovering-and-approving-SQL-Server-Availability-Groups.
Prerequisites for creating a SQL Server Availability Group
The following are Microsoft's prerequisites for creating Availability Groups:
- Availability Groups can only be created for SQL Server 2012 or later.
- Computers hosting the SQL Server instance that is part of the Availability Group must be nodes in the same Windows Server Failover Cluster (WSFC).
- You cannot have more than one instance on the same node participating in an Availability Group.
- Each instance participating in an Availability Group can only host one replica of the Availability Group.
- Only a single SQL Server instance can host the primary replica of the databases in an Availability Group at one time.
- You cannot have instances of different SQL Server versions in the same Availability Group, and Microsoft only supports SQL Server Enterprise Edition Instances for creating Availability Groups.
To create a SQL Server Availability Group
- From the Management Console, navigate to the cluster on which you want to add an Availability Group.
- Select Provision > Add SQL Server Availability Group.
In the Naming page, populate the following fields, and click Next.
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
In the Databases Selection page, populate the following fields, and click Next.
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
In the Replicas Selection page, populate the following fields, and click Next.
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
In the Endpoints page, configure the endpoint settings for the selected instances and click Next.
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
In the Backup Settings and Priorities page, populate the following fields, and click Next.The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
In the Listener Configuration page, configure the Availability Group listener, and click Next.
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
In the Synchronization Settings page, select what type of synchronization is used to create the Availability Group, and click Next.
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
In the Custom Scripts Configuration page, select any pre-provisioning or post-provisioning scripts that you want to run as follows, and click Next.
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
In the Job Options page, specify any of the following Job options, and click Next.
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
If the Change Control page displays, populate the following fields, and click Next.
The [confluence_table-plus] macro is a standalone macro and it cannot be used inline.
- In the Summary page, review the provisioning information.
To make changes, do the following:- Click Go to to return to the provisioning step that you want to edit.
- Make your changes.
- Click Save and Review to return to the Summary page.
- Specify your verification preferences.
For additional information, see Understanding-pre-verification-tests.- To continue creating the Availability Group after the pre-verification tests have been successfully run without manual intervention, select Automatically Continue If All Tests Succeed.
To create the Availability Group without having to first run the pre-verification steps, select Skip Pre-Verification Tests.
Click Create SQL Server Availability Group.
A progress page appears followed by a success message upon completion. The databases, replicas, and listeners now appear in the Contents page for this SQL Server Availability Group. The new Availability Group appears as a child of a Windows Cluster in the Grid, designated by a double-database icon (
). For more information about the information on the Availability Group Configuration page, see Walkthrough-Discovering-and-approving-SQL-Server-Availability-Groups.To add a database to an Availability Group, see Adding-a-database-to-a-SQL-Server-Availability-Group. To configure failover, see Failing-over-a-SQL-Server-Availability-Group.