Prerequisites for Installing SQL Server AlwaysOn

 Windows:

Windows Server 2008 R2. Windows Server 2008R2 is the minimum Windows Server edition allowed for deploying AlwaysOn. However, it is strongly recommended that you use Windows Server 2012 instead, as there are many issues and headaches associated with 2008R2.
Windows Server Failover Cluster. WSFC must be installed on every replica (primary and secondaries) in the AlwaysOn group. And each SQL Server that hosts an availability group replica must reside on separate nodes of a single WSFC cluster.
.Net 3.5.1 or greater. If .net 3.5.1 or greater is not already installed on your primary and secondary replicas, you will need to install this.
Windows hotfixes. You need to install all available windows hotfixes on every replica prior to deploying AlwaysOn. This is particularly important if you are using Windows Server 2008R2, as most of the hotfixes are aimed toward that version.   Again, it is strongly recommended that you use Windows Server 2012 on all of your replicas instead.
Windows Domain.   All replicas in your AlwaysOn group must be in the same windows domain. They must be able to communicate with each other.
No domain controller. None of your replicas can be a domain controller. AlwaysOn groups are not supported on a domain controller.
Windows Firewall. Most likely you will need to adjust your Windows Firewall setting to allow the replicas to communicate with each other.
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.
Sufficient Resources. Again, you don’t have to have identical hardware on each of your replicas, but you need to have sufficient resources on your secondaries to handle the same workload as your primary.

Instance:
SQL Server 2012 or 2014 Enterprise Edition. For testing or development purposes, you can install Developer or Evaluation edition, but for a production environment, you must install Enterprise edition. Standard edition will not work.
Database Collation. Databases in your AlwaysOn group must use the same collation…they cannot differ across replicas.
SQL Server Collation. All replicas in your AlwaysOn group must use the same SQL Server collation.
Active Directory Services. No replicas can run Active Directory services. This is not supported with AlwaysOn.
Database Mirroring Endpoint. Each instance needs a database mirroring endpoint. If you have more than one instance on your server, you will need to create an additional endpoint so the instances can communicate with each other.
SQL Service Account. Your account that runs SQL Services must be a domain account. Do not use the local machine service account. The SQL service account must be able to access every replica, and therefore must be a domain account.
Also, this account must belong to the Administrators Group on each of the replicas.
And this SQL service account needs connect permissions (given through SSMS). Right click on the SQL Service login to open the properties dialog box, go to the Securables page, and make sure the ‘Connect SQL’ Grant box is checked. Do this on all your instances:

Databases:
Full Recovery Model. Make sure your databases are in Full Recovery Mode, not Simple or Bulk Logged. Also, these databases must be taken out of any tlog backup maintenance process while the AlwaysOn group is being created.
User database. Databases included in your AlwaysOn group must be user databases. System databases cannot participate in AlwaysOn Availability Groups.
Read/Write database. Read-only databases cannot belong to an AlwaysOn group.
Multi-user database. Databases must be in multi-user mode, they can’t be in single user mode.
Don’t use AUTO_CLOSE. Check the properties of your databases, and make sure this option is set to ‘False’.
DB in only one Availability Group. Databases may only belong to one availability group at a time. You can have more than one AlwaysOn Availability Group on your instance, but databases cannot belong to more than one group.
Not configured for database mirroring. Your databases cannot be enabled for database mirroring. Make sure this feature is not enabled.
Full Backups. Make sure full backups of each of your databases are made prior to installing AlwaysOn.
Allow Remote Connections. This can be done in SSMS either through the Instance properties, or by using sp_configure, which ever you prefer.

No comments:

Post a Comment

Popular Posts