SOP AlwaysOn
SOP AlwaysOn
Document Overview:
This SOP provides a step-by-step guide for setting up a 2-node AlwaysOn Availability Group cluster using
SQL Server 2022 and Windows Server 2022. The document covers prerequisites, installation,
configuration, and testing procedures to ensure high availability and disaster recovery.
Table of Contents
1. Introduction
2. Prerequisites
5. Configure Storage
13. Post-Deployment
14. Conclusion
1. Introduction
This Standard Operating Procedure (SOP) outlines the steps required to create a 2-node AlwaysOn Availability
Group cluster using SQL Server 2022 and Windows Server 2022. This setup will ensure high availability and
disaster recovery for critical database systems, minimizing downtime and improving business continuity.
2. Prerequisites
Before beginning the setup process, ensure the following prerequisites are in place:
1. Hardware Requirements:
Ensure both nodes meet the SQL Server 2022 hardware and performance requirements.
2. Operating System:
Both nodes should have Windows Server 2022 installed and configured.
3. SQL Server 2022:
Install SQL Server 2022 on both nodes. Both must have the same edition of SQL Server.
5. Network Configuration:
o Ensure you have a reliable, high-speed network connection between the nodes.
o The SQL Server and WSFC network settings should be configured with static IP addresses.
6. DNS Configuration:
You should have a domain DNS name for the AlwaysOn listener.
3.1 Install Windows Server Failover Clustering (WSFC) Feature on Both Nodes:
4. Select the server from the server pool and click Next.
3. Select both nodes to validate and run all the tests to ensure your hardware, networking, and
configuration are suitable for clustering.
4. Once the cluster is created, verify its health in Failover Cluster Manager.
5. Configure Storage
1. Set up shared storage if necessary (for data files, logs, or quorum). This storage must be available to
both cluster nodes and should be a supported type (e.g., iSCSI, Fibre Channel).
2. Choose New SQL Server stand-alone installation and select the necessary features.
3. Install SQL Server Engine and SQL Server Management Studio (SSMS).
4. Ensure that SQL Server is installed with the same version and edition on both nodes.
2. Under SQL Server Services, right-click on SQL Server (MSSQLSERVER) and choose Properties.
3. In the AlwaysOn High Availability tab, check Enable AlwaysOn Availability Groups.
1. Open SQL Server Management Studio (SSMS) and connect to one of the SQL Server instances.
2. Choose Add Database and select the databases to add to the group.
1. In SQL Server Management Studio, right-click the Availability Group and select Failover.
3. Verify that the database fails over to the secondary replica correctly and that the availability group
remains online.
2. Ensure that both nodes are involved in backup jobs (as required).
1. Validate that the secondary node is synchronized and can fail over correctly.
13. Post-Deployment
• Regular Checks: Monitor the SQL Server and WSFC logs regularly for any errors.
• Patching: Regularly patch both SQL Server instances and the Windows operating system to maintain
high availability and security.
• Backup Plan: Ensure that database backups are working correctly and that the backup strategy for the
AlwaysOn Availability Group is implemented properly.
14. Conclusion
This SOP outlines the process of setting up a 2-node AlwaysOn Availability Group cluster on SQL Server
2022 and Windows Server 2022. Following the steps above will ensure high availability for your SQL Server
databases and provide a resilient infrastructure capable of handling failover situations, minimizing
downtime, and improving the overall performance of mission-critical applications.