Share via


Prerequisites, Restrictions, and Recommendations for AlwaysOn Availability Groups (SQL Server)

This topic describes considerations for deploying AlwaysOn Availability Groups, including prerequisites, restrictions, and recommendations for host computers, Windows Server Failover Clustering (WSFC) clusters, server instances, and availability groups. For each of these components security considerations and required permissions, if any, are indicated.

Important

Before you deploy AlwaysOn Availability Groups, we strongly recommend that you read every section of this topic.

In this Topic:

  • .Net Hotfixes that Support AlwaysOn Availability Groups

  • Windows System Requirements and Recommendations

  • SQL Server Instance Prerequisites and Restrictions

  • Network Connectivity Recommendations

  • Client Connectivity Support

  • Prerequisites and Restrictions for Using a SQL Server Failover Cluster Instance (FCI) to Host an Availability Replica

  • Availability Group Prerequisites and Restrictions

  • Availability Database Prerequisites and Restrictions

  • Related Content

.Net Hotfixes that Support AlwaysOn Availability Groups

Depending on the SQL Server 2012 components and features you will use with AlwaysOn Availability Groups, you may need to install additional .Net hotfixes identified in the following table. The hotfixes can be installed in any order.

   

Dependent Feature

Hotfix

Link

Checkbox

Reporting Services

Hotfix for .Net 3.5 SP1 adds support to SQL Client for AlwaysOn features of Read-intent, readonly, and multisubnetfailover. The hotfix needs to be installed on each Reporting Services report server.

KB 2654347: Hotfix for .Net 3.5 SP1 to add support for AlwaysOn features

Windows System Requirements and Recommendations

In This Section:

  • Checklist: Requirements

  • Windows Hotfixes that Support AlwaysOn Availability Groups (Windows System)

  • Recommendations for Computers That Host Availability Replicas (Windows System

  • Permissions

  • Related Tasks

  • Related Content

Checklist: Requirements (Windows System)

To support the AlwaysOn Availability Groups feature, ensure that every computer that is to participate in one or more availability groups meets the following fundamental requirements:

   

Requirement

Link

Checkbox

Ensure that the system is not a domain controller.

Availability groups are not supported on domain controllers.

Checkbox

Ensure that each computer is running either x86 (non-WOW64) or x64 Windows Server 2008 or later versions.

WOW64 (Windows 32-bit on Windows 64-bit) does not support AlwaysOn Availability Groups.

Checkbox

Ensure that each computer is a node in a Windows Server Failover Clustering (WSFC) cluster.

Windows Server Failover Clustering (WSFC) with SQL Server

Checkbox

Ensure that the WSFC cluster contains sufficient nodes to support your availability group configurations.

A WSFC node can host only one availability replica for a given availability group. On a given WSFC node, one or more instances of SQL Server can host availability replicas for many availability groups.

Ask your database administrators how many WSFC nodes are required for to support the availability replicas of the planned availability groups.

Overview of AlwaysOn Availability Groups (SQL Server).

Checkbox

Ensure that all applicable Window hotfixes have been installed on every node in the WSFC cluster.

Important

A number of hotfixes are required or recommended for the nodes of a WSFC cluster on which AlwaysOn Availability Groups is being deployed. For more information, see Windows Hotfixes that Support AlwaysOn Availability Groups (Windows System), later in this section.

Important

Also ensure that your environment is correctly configured for connecting to an availability group. For more information, see AlwaysOn Client Connectivity (SQL Server).

Windows Hotfixes that Support AlwaysOn Availability Groups (Windows System)

Depending on your cluster topology, several additional Windows Server 2008 Service Pack 2 (SP2) or Windows Server 2008 R2 hotfixes might be applicable for supporting AlwaysOn Availability Groups. The following table identifies these hotfixes. They hotfixes can be installed in any order.

     

Applies to Windows 2008 SP2

Applies to Windows 2008 R2 SP1

Included in Windows 2012

To Support…

Hotfix

Link

Checkbox

    √

    √

Yes

Configuring optimal WSFC quorum

On each WSFC node, ensure that the hotfix described in Knowledge Base article 2494036 is installed.

This hotfix supports configuring optimal quorum with non-automatic failover targets. This functionality improves multi-site clusters by enabling you to select which nodes vote.

KB 2494036:  A hotfix is available to let you configure a cluster node that does not have quorum votes in Windows Server 2008 and in Windows Server 2008 R2

For information about quorum voting, see WSFC Quorum Modes and Voting Configuration (SQL Server)

Checkbox

    √

    √

Yes

More efficient use of network bandwidth

On each WSFC node, ensure that the hotfix described in Knowledge Base article 2616514 is installed.

Without this hotfix, the Cluster service sends unnecessary registry notifications among cluster nodes. This behavior limits network bandwidth, which is a serious issue for AlwaysOn Availability Groups.

KB 2616514:  Cluster service sends unnecessary registry key change notifications among cluster nodes in Windows Server 2008 or in Windows Server 2008 R2

Checkbox

    √

Not applicable

VPD storage testing on disks that are not available to all WSFC nodes

If a WSFC node is running Windows Server 2008 R2 Service Pack 1 (SP1) and the Validate SCSI Device Vital Product Data (VPD) storage test fails after incorrectly running on disks that are online and not available to all nodes in the WSFC cluster, install the hotfix described in Knowledge Base article 2531907.

This hotfix eliminates incorrect warnings or errors in the validation report when disks are online.

KB 2531907:  Validate SCSI Device Vital Product Data (VPD) test fails after you install Windows Server 2008 R2 SP1

Checkbox

    √

Yes

Faster failover to local replicas

If a WSFC node is running Windows Server 2008 R2 Service Pack 1 (SP1), ensure that the hotfix described in Knowledge Base article 2687741 is installed.

This hotfix improves the performance of AlwaysOn Availability Groups failover to local replicas.

KB 2687741:  A hotfix that improves the performance of the "AlwaysOn Availability Group" feature in SQL Server 2012 is available for Windows Server 2008 R2

Checkbox

    √

    √

Yes

Asymmetric storage—for Failover Cluster Instances (FCIs)

If any Failover Cluster Instance (FCI) will be enabled for AlwaysOn Availability Groups, install the Windows Server 2008 hotfix 976097.

This hotfix enables the Failover Cluster Management Microsoft Management Console (MMC) snap-in to support asymmetric storage—shared disks that are available on only some of the WSFC nodes.

KB 976097:  Hotfix to add support for asymmetric storages to the Failover Cluster Management MMC snap-in for a failover cluster that is running Windows Server 2008 or Windows Server 2008 R2

AlwaysOn Architecture Guide: Building a High Availability and Disaster Recovery Solution by Using Failover Cluster Instances and Availability Groups

Checkbox

    √

    √

Not applicable

Internet Protocol Security (IPsec)

If your environment uses IPsec connections, you could experience a long time delay (about two or three minutes) when a client computer reestablishes the IPsec connection to a virtual network name (in this context, to connect to the availability group listener). If you use IPsec connections, we recommend that you review the specific scenarios detailed in Knowledge Base article (KB 980915).

KB 980915:  A long time delay occurs when you reconnect an IPSec connection from a computer that is running Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7, or Windows Server 2008 R2

Checkbox

    √

    √

Yes

IPv6

If you use IPv6, we recommend that you review the specific scenarios detailed in Knowledge Base article 2578103 or 2578113, depending on your Windows Server operating system.

If your Windows Server topology uses IP version 6 (IPv6), the WSFC Cluster service requires about 30 seconds to fail over the IPv6 IP address. This causes clients to wait for about 30 seconds to reconnect to the IPv6 IP address.

Checkbox

    √

    √

Yes

No Router Between cluster and application server

If no router exists between the failover cluster and the application server, the Cluster service fails over network-related resources slowly. This delays client reconnections after an availability group fails over. In the absence of a router, we recommend that you review the specific scenarios detailed in Knowledge Base article 2582281 and install the hotfix, if applicable to your environment.

KB 2582281:  Slow failover operation if no router exists between the cluster and an application server

Arrow icon used with Back to Top linkTop

Recommendations for Computers That Host Availability Replicas (Windows System)

  • **Comparable systems: ** For a given availability group, all the availability replicas should run on comparable systems that can handle identical workloads.

  • **Dedicated network adapters: ** For best performance, use a dedicated network adapter (network interface card) for AlwaysOn Availability Groups.

  • **Sufficient disk space: ** Every computer on which a server instance hosts an availability replica must possess sufficient disk space for all the databases in the availability group. Keep in mind that as primary databases grow, their corresponding secondary databases grow the same amount.

Permissions (Windows System)

To administer a WSFC cluster, the user must be a system administrator on every cluster node.

For more information about the account for administering the cluster, see Appendix A: Failover Cluster Requirements.

Task

Link

Set the HostRecordTTL value.

Change the HostRecordTTL (Using Windows PowerShell)

Change the HostRecordTTL (Using Windows PowerShell)

  1. Open PowerShell window via Run as Administrator.

  2. Import the FailoverClusters module.

  3. Use the Get-ClusterResource cmdlet to find the Network Name resource, then use Set-ClusterParameter cmdlet to set the HostRecordTTL value, as follows:

    Get-ClusterResource “<NetworkResourceName>” | Set-ClusterParameter HostRecordTTL <TimeInSeconds>

    The following PowerShell example sets the HostRecordTTL to 300 seconds for a Network Name resource named "SQL Network Name (SQL35)".

    Import-Module FailoverClusters
    
    $nameResource = "SQL Network Name (SQL35)"
    Get-ClusterResource $nameResource | Set-ClusterParameter ClusterParameter HostRecordTTL 300
    

    Tip

    Every time you open a new PowerShell window, you need to import the FailoverClusters module.

Arrow icon used with Back to Top link[Top]

SQL Server Instance Prerequisites and Restrictions

Each availability group requires a set of failover partners, known as availability replicas, which are hosted by instances of SQL Server. A given server instance can be a stand-alone instance or a SQL Server failover cluster instance (FCI).

In This Section:

  • Checklist: Prerequisites

  • Restrictions

  • Thread Usage by Availability Groups

  • Permissions

  • Related Tasks

  • Related Content

Checklist: Prerequisites (Server Instance)

Prerequisite

Links

Checkbox

The host computer must be a Windows Server Failover Clustering (WSFC) node. The instances of SQL Server that host availability replicas for a given availability group must reside on separate nodes of a single WSFC cluster. The only exception is that while being migrated to another WSFC cluster, an availability group can temporarily straddle two clusters.

Windows Server Failover Clustering (WSFC) with SQL Server

Failover Clustering and AlwaysOn Availability Groups (SQL Server)

On each WSFC node that hosts an availability replica, ensure that the hotfix described in Knowledge Base article 2897554 is installed.

This hotfix ensures that the synchronization state of each availability replica is properly updated, which helps avert unexpected data loss from an automatic failover.

KB 2897554: FIX: Synchronization state of an AlwaysOn Availability Group replica may not be updated if primary is unhealthy

Checkbox

If you want an availability group to work with Kerberos:

  • All server instances that host an availability replica for the availability group must use the same SQL Server service account.

  • The domain administrator needs to manually register a Service Principal Name (SPN) with Active Directory on the SQL Server service account for the virtual network name (VNN) of the availability group listener. If the SPN is registered on an account other than the SQL Server service account, authentication will fail.

Important

If you change the SQL Server service account, the domain administrator will need to manually re-register the SPN.

Register a Service Principal Name for Kerberos Connections

Brief explanation:

Kerberos and SPNs enforce mutual authentication. The SPN maps to the Windows account that starts the SQL Server services. If the SPN is not registered correctly or if it fails, the Windows security layer cannot determine the account associated with the SPN, and Kerberos authentication cannot be used.

Note

NTLM does not have this requirement.

Checkbox

If you plan to use a SQL Server failover cluster instance (FCI) to host an availability replica, ensure that you understand the FCI restrictions and that the FCI requirements are met.

Prerequisites and Requirements on Using a SQL Server Failover Cluster Instance (FCI) to Host an Availability Replica (later in this topic)

Checkbox

Each server instance must be running the Enterprise Edition of SQL Server 2012.

Features Supported by the Editions of SQL Server 2012

Checkbox

All the server instances that host availability replicas for an availability group must use the same SQL Server collation.

Set or Change the Server Collation

Checkbox

Enable the AlwaysOn Availability Groups feature on each server instance that will host an availability replica for any availability group. On a given computer, you can enable as many server instances for AlwaysOn Availability Groups as your SQL Server installation supports.

Enable and Disable AlwaysOn Availability Groups (SQL Server)

Important

If you delete and re-create a WSFC cluster, you must disable and re-enable the AlwaysOn Availability Groups feature on each server instance that was enabled for AlwaysOn Availability Groups on the original WSFC cluster.

Checkbox

Each server instance requires a database mirroring endpoint. Note that this endpoint is shared by all the availability replicas and database mirroring partners and witnesses on the server instance.

If a server instance that you select to host an availability replica is running under a domain user account and does not yet have a database mirroring endpoint, the New Availability Group Wizard (or Add Replica to Availability Group Wizard) can create the endpoint and grant CONNECT permission to the server instance service account. However, if the SQL Server service is running as a built-in account, such as Local System, Local Service, or Network Service, or a nondomain account, you must use certificates for endpoint authentication, and the wizard will be unable to create a database mirroring endpoint on the server instance. In this case, we recommend that you create the database mirroring endpoints manually before you launch the wizard.

Security noteSecurity Note

Transport security for AlwaysOn Availability Groups is the same as for database mirroring.

The Database Mirroring Endpoint (SQL Server)

Transport Security for Database Mirroring and AlwaysOn Availability Groups (SQL Server)

Checkbox

If any databases that use FILESTREAM will be added to an availability group, ensure that FILESTREAM is enabled on every server instance that will host an availability replica for the availability group.

Enable and Configure FILESTREAM

Checkbox

If any contained databases will be added to an availability group, ensure that the contained database authentication server option is set to 1 on every server instance that will host an availability replica for the availability group.

contained database authentication Server Configuration Option

Server Configuration Options (SQL Server)

Thread Usage by Availability Groups

AlwaysOn Availability Groups has the following requirements for worker threads:

  • On an idle instance of SQL Server, AlwaysOn Availability Groups uses 0 threads.

  • The maximum number of threads used by availability groups is the configured setting for the maximum number of server threads ('max worker threads') minus 40.

  • The availability replicas hosted on a given server instance share a single thread pool.

    Threads are shared on an on-demand basis, as follows:

    • Typically, there are 3–10 shared threads, but this number can increase depending on the primary replica workload.

    • If a given thread is idle for a while, it is released back into the general SQL Server thread pool. Normally, an inactive thread is released after ~15 seconds of inactivity. However, depending on the last activity, an idle thread might be retained longer.

  • In addition, availability groups use unshared threads, as follows:

    • Each primary replica uses 1 Log Capture thread for each primary database. In addition, it uses 1 Log Send thread for each secondary database. Log send threads are released after ~15 seconds of inactivity.

    • Each secondary replica uses 1 redo thread for each secondary database. Redo threads are released after ~15 seconds of inactivity.

    • A backup on a secondary replica holds a thread on the primary replica for the duration of the backup operation.

For more information, see AlwaysON - HADRON Learning Series: Worker Pool Usage for HADRON Enabled Databases (a CSS SQL Server Engineers Blog).

Permissions (Server Instance)

Task

Required Permissions

Creating the database mirroring endpoint

Requires CREATE ENDPOINT permission, or membership in the sysadmin fixed server role. Also requires CONTROL ON ENDPOINT permission. For more information, see GRANT Endpoint Permissions (Transact-SQL).

Enabling AlwaysOn Availability Groups

Requires membership in the Administrator group on the local computer and full control on the WSFC cluster.

Task

Topic

Determining whether database mirroring endpoint exists

sys.database_mirroring_endpoints (Transact-SQL)

Creating the database mirroring endpoint (if it does not yet exist)

Enabling AlwaysOn Availability Groups

Enable and Disable AlwaysOn Availability Groups (SQL Server)

Arrow icon used with Back to Top link[Top]

Network Connectivity Recommendations

We strongly recommend that you use the same network links for communications between WSFC cluster members and communications between availability replicas. Using separate network links can cause unexpected behaviors if some of links fail (even intermittently).

For example, for an availability group to support automatic failover, the secondary replica that is the automatic-failover partner must be in the SYNCHRONIZED state. If the network link to this secondary replica fails (even intermittently), the replica enters the UNSYNCHRONIZED state and cannot begin to resynchronize until the link is restored. If the WSFC cluster requests an automatic failover while the secondary replica is unsynchronized, automatic failover will not occur.

Arrow icon used with Back to Top link[Top]

Client Connectivity Support

For information about AlwaysOn Availability Groups support for client connectivity, see AlwaysOn Client Connectivity (SQL Server).

Arrow icon used with Back to Top link[Top]

Prerequisites and Restrictions for Using a SQL Server Failover Cluster Instance (FCI) to Host an Availability Replica

In This Section:

  • Restrictions

  • Checklist: Prerequisites

  • Related Tasks

  • Related Content

Restrictions (FCIs)

  • **The cluster nodes of an FCI can host only one replica for a given availability group: ** If you add an availability replica on an FCI, the WSFC cluster nodes that are possible FCI owners cannot host another replica for the same availability group.

    Furthermore, every other replica must be hosted by an instance of SQL Server 2012 that resides on a different WSFC node in the same WSFC cluster. The only exception is that while being migrated to another WSFC cluster, an availability group can temporarily straddle two clusters.

  • **FCIs do not support automatic failover by availability groups: ** FCIs do not support automatic failover by availability groups, so any availability replica that is hosted by an FCI can be configured for manual failover only.

  • **Changing FCI network name: ** If you need to change the network name of an FCI that hosts an availability replica, you will need to remove the replica from its availability group and then add the replica back into the availability group. You cannot remove the primary replica, so if you are renaming an FCI that is hosting the primary replica, you should fail over to a secondary replica and then remove the former primary replica and add it back. Note that renaming an FCI might alter the URL of its database mirroring endpoint. When you add the replica ensure that you specify the current endpoint URL.

Checklist: Prerequisites (FCIs)

Prerequisite

Link

Checkbox

Before you use an FCI to host an availability replica, ensure that your system administrator has installed the Windows Server 2008 hotfix described in Knowledge Base article KB 976097. This hotfix enables the Failover Cluster Management Microsoft Management Console (MMC) snap-in to support asymmetric storage—shared disks that are available on only some of the WSFC nodes.

KB 976097:  Hotfix to add support for asymmetric storages to the Failover Cluster Management MMC snap-in for a failover cluster that is running Windows Server 2008 or Windows Server 2008 R2

Checkbox

Ensure that each SQL Server failover cluster instance (FCI) possesses the required shared storage as per standard SQL Server failover cluster instance installation.

Task

Topic

Installing a SQL Server Failover Cluster

Create a New SQL Server Failover Cluster (Setup)

In-place upgrade of your existing SQL Server Failover Cluster

Upgrade a SQL Server Failover Cluster Instance (Setup)

Maintaining your existing SQL Server Failover Cluster

Add or Remove Nodes in a SQL Server Failover Cluster (Setup)

Arrow icon used with Back to Top link[Top]

Availability Group Prerequisites and Restrictions

In This Section:

  • Restrictions

  • Requirements

  • Security

  • Related Tasks

Restrictions (Availability Groups)

  • **Availability replicas must be hosted by different nodes of one WSFC cluster: ** For a given availability group, availability replicas must be hosted by server instances running on different nodes of the same WSFC cluster. The only exception is that while being migrated to another WSFC cluster, an availability group can temporarily straddle two clusters.

    Note

    Virtual machines on the same physical computer can each host an availability replica for the same availability group because each virtual machine acts as a separate computer.

  • **Unique availability group name: ** Each availability group name must be unique on the WSFC cluster. The maximum length for an availability group name is 128 characters.

  • Availability replicas: Each availability group supports one primary replica and up to four secondary replicas. All of the replicas can run under asynchronous-commit mode, or up to three of them can run under synchronous-commit mode.

  • Maximum number of availability groups and availability databases per computer: The actual number of databases and availability groups you can put on a computer (VM or physical) depends on the hardware and workload, but there is no enforced limit. Microsoft has extensively tested with 10 AGs and 100 DBs per physical machine. Signs of overloaded systems can include, but are not limited to, worker thread exhaustion, slow response times for AlwaysOn system views and DMVs, and/or stalled dispatcher system dumps. Please make sure to thoroughly test your environment with a production-like workload to ensure it can handle peak workload capacity within your application SLAs. When considering SLAs be sure to consider load under failure conditions as well as expected response times.

  • Do not use the Failover Cluster Manager to manipulate availability groups:

    For example:

    • Do not change any availability group properties, such as the possible owners.

    • Do not use the Failover Cluster Manager to fail over availability groups. You must use Transact-SQL or SQL Server Management Studio.

Prerequisites (Availability Groups)

When creating or reconfiguring an availability group configuration, ensure that you adhere to the following requirements.

Prerequisite

Description

Checkbox

If you plan to use a SQL Server failover cluster instance (FCI) to host an availability replica, ensure that you understand the FCI restrictions and that the FCI requirements are met.

Prerequisites and Restrictions for Using a SQL Server Failover Cluster Instance (FCI) to Host an Availability Replica (earlier in this topic)

Security (Availability Groups)

  • Security is inherited from the Windows Server Failover Clustering (WSFC) cluster. WSFC provides two levels of user security at granularity of entire WSFC cluster APIs:

    • Read-only access

    • Full control

      AlwaysOn Availability Groups needs full control, and enabling AlwaysOn Availability Groups on an instance of SQL Server gives it full control of the WSFC cluster (through Service SID).

      You cannot directly add or remove security for a server instance in the WSFC Failover Cluster Manager. To manage WSFC security sessions, use the SQL Server Configuration Manager or the WMI equivalent from SQL Server.

  • Each instance of SQL Server must have permissions to access the registry, cluster, and so forth.

  • We recommend that you use encryption for connections between server instances that host AlwaysOn Availability Groups availability replicas.

Permissions (Availability Groups)

Task

Required Permissions

Creating an availability group

Requires membership in the sysadmin fixed server role and either CREATE AVAILABILITY GROUP server permission, ALTER ANY AVAILABILITY GROUP permission, or CONTROL SERVER permission.

Altering an availability group

Requires ALTER AVAILABILITY GROUP permission on the availability group, CONTROL AVAILABILITY GROUP permission, ALTER ANY AVAILABILITY GROUP permission, or CONTROL SERVER permission.

In addition, joining a database to an availability group requires membership in the db_owner fixed database role.

Dropping/deleting an availability group

Requires ALTER AVAILABILITY GROUP permission on the availability group, CONTROL AVAILABILITY GROUP permission, ALTER ANY AVAILABILITY GROUP permission, or CONTROL SERVER permission. To drop an availability group that is not hosted on the local replica location you need CONTROL SERVER permission or CONTROL permission on that Availability Group.

Task

Topic

Creating an availability group

Modifying the number of availability replicas

Creating an availability group listener

Create or Configure an Availability Group Listener (SQL Server)

Dropping an availability group

Remove an Availability Group (SQL Server)

Arrow icon used with Back to Top link[Top]

Availability Database Prerequisites and Restrictions

To be eligible to be added to an availability group, a database must meet the following prerequisites and restrictions.

In This Section:

  • Requirements

  • Restrictions

  • Recommendations for Computers That Host Availability Replicas (Windows System

  • Permissions

  • Related Tasks

Checklist: Requirements (Availability Databases)

To be eligible to be added to an availability group, a database must:

Requirements

Link

Checkbox

Be a user database. System databases cannot belong to an availability group.

Checkbox

Reside on the instance of SQL Server where you create the availability group and be accessible to the server instance.

Checkbox

Be a read-write database. Read-only databases cannot be added to an availability group.

sys.databases (is_read_only = 0)

Checkbox

Be a multi-user database.

sys.databases (user_access = 0)

Checkbox

Not use AUTO_CLOSE.

sys.databases (is_auto_close_on = 0)

Checkbox

Use the full recovery model (also known as, full recovery mode).

sys.databases (recovery_model = 1)

Checkbox

Possess at least one full database backup.

Note

After setting a database to full recovery mode, a full backup is required to initiate the full-recovery log chain.

Create a Full Database Backup (SQL Server)

Checkbox

Not belong to any existing availability group.

sys.databases (group_database_id = NULL)

Checkbox

Not be configured for database mirroring.

sys.database_mirroring (If the database does not participate in mirroring, all columns prefixed with "mirroring_" are NULL.)

Checkbox

Before adding a database that uses FILESTREAM to an availability group, ensure that FILESTREAM is enabled on every server instance that hosts or will host an availability replica for the availability group.

Enable and Configure FILESTREAM

Checkbox

Before adding a contained database to an availability group, ensure that the contained database authentication server option is set to 1 on every server instance that hosts or will host an availability replica for the availability group.

contained database authentication Server Configuration Option

Server Configuration Options (SQL Server)

Note

AlwaysOn Availability Groups works with any supported database compatibility level.

Restrictions (Availability Databases)

  • If the file path (including the drive letter) of a secondary database differs from the path of the corresponding primary database, the following restrictions apply:

    • **New Availability Group Wizard/Add Database to Availability Group Wizard: ** The Full option is not supported (on the Select Initial Data Synchronization Page page),

    • **RESTORE WITH MOVE: ** To create the secondary databases, the database files must be RESTORED WITH MOVE on each instance of SQL Server that hosts a secondary replica.

    • **Impact on add-file operations: ** A later add-file operation on the primary replica might fail on the secondary databases. This failure could cause the secondary databases to be suspended. This, in turn, causes the secondary replicas to enter the NOT SYNCHRONIZING state.

      Note

      For information about responding to a failed ad-file operation, see Troubleshoot a Failed Add-File Operation (AlwaysOn Availability Groups).

  • You cannot drop a database that currently belongs to an availability group.

Follow Up for TDE Protected Databases

If you use transparent data encryption (TDE), the certificate or asymmetric key for creating and decrypting other keys must be the same on every server instance that hosts an availability replica for the availability group. For more information, see Move a TDE Protected Database to Another SQL Server.

Permissions (Availability Databases)

Requires ALTER permission on the database.

Task

Topic

Preparing a secondary database (manually)

Manually Prepare a Secondary Database for an Availability Group (SQL Server)

Joining a secondary database to availability group (manually)

Join a Secondary Database to an Availability Group (SQL Server)

Modifying the number of availability databases

Arrow icon used with Back to Top link[Top]

Arrow icon used with Back to Top link[Top]

See Also

Concepts

Overview of AlwaysOn Availability Groups (SQL Server)

Failover Clustering and AlwaysOn Availability Groups (SQL Server)

AlwaysOn Client Connectivity (SQL Server)