May 22, 2025
How to Configure SQL Server 2019 Failover Cluster

How to Configure Failover Cluster in SQL Server 2019 – Step by Step

In this tutorial, you will learn how to configure a failover cluster in Microsoft SQL Server 2019. We would cover the following topics

  1. Initial Network Setup
  2. Install SQL Failover Cluster on Node1
  3. Add Node2 to the Cluster
  4. Verify the Cluster is Working

 

1. Initial Network Setup

Creating Failover Cluster in SQL Server is quite clear and straightforward. However, before you can setup an SQL Server Failover cluster, you must have two or more computers on the network. In this demo, I’m using three computer:

  • SQLSERVER1 – first node of the cluster
  • SQLSERVER2 – second node of the cluster
  • SQLSERVER3 – storage node, contains iSCSI virtual disks

See How to Setup a Domain Network

 

2. Install Failover Cluster on SQLSERVER1

You have to first install SQL Failover Cluster on one of the nodes. Follow the steps below to do that:

Step 1 – Run the SQL Server Setup and choose ‘New SQL Server Failover Cluster installation’ as shown below

New SQL Server Failover Cluster Installation
New SQL Server Failover Cluster Installation

Step 2 – Follow the steps until you get to the ‘Install Failover Cluster Rules’, make sure that no test failed as shown below.

Ensure that none of the test failed
Ensure that none of the test failed

Step 3 – Continue on the the next step. In the Feature selection, ensure that Database Engine is selected

Ensure Database Engine is Selected
Ensure Database Engine is Selected

Step 4 – In the Instance Configuration, select Named Instance and give it a name. For me I called it SQLCLUSTER

Use named instance
Use named instance

Step 5 – You may receive the error below

“the given network name  is unusable….due to the following error: The network address is invalid”

To correct this error, just uninstall VirtualBox Guest Additions and restart

Step 6 – At the cluster resource group as shown below, click next

Cluster Resource Group
Cluster Resource Group

Step 7 – In the Cluster Disk Selection, select all the available storage as shown below

Cluster Disk Selection
Cluster Disk Selection

Step 8 – In Cluster Network Selection, select Ipv4 and DHCP

Cluster Network Configuration
Cluster Network Configuration

Step 9 – Specify the user account for the Agent and Database Engine

Server Configuration
Server Configuration

Step 10 – Add the server administrators

Specify the administrators
Specify the administrators

Step 11 – Follow the step and complete the installation

The final window is shown below

SQL Failover Cluster Successful Installation
SQL Failover Cluster Successful Installation

 

3. Add Node to the Cluster

Since we have successfully set up failover cluster from the first Node(SQLSERVER1), we would now go to the second node (SQLSERVER2)  so we can add the the node to the cluster. Follows the steps below

Step 1 – Launch the SQL Server Setup and choose ‘Add Node to SQL Server Failover Cluster”

Add Node to SQL Cluster
Add Node to SQL Cluster

Step 2 – You can see from the figure below the it detect the cluster we created in the first node (SQLCLUSTER01)

Cluster Node Configuration
Cluster Node Configuration

Step 3 – Follow the steps to complete the installation as shown below

 

4. Check that the Cluster Works Fine

Let’s now check that our failover cluster is working correctly.

Step 1 – Open Failover Cluster Manger in Node1 (where we installed the cluster). Click on Roles and you will see that the SQL Failover cluster is running as shown below

SQL Server Failover Cluster running
SQL Server Failover Cluster running

A little explanation

Now you see the the cluster is running on SQLSERVER1. So if a failure occurs, it would be migrated to the second node. So let’s see how this works

Step 3 – Right click on the cluster and choose Move > Best possible node as shown below. The would cause the cluster to switch to the second node.

Migrate Cluster to the second node
Migrate Cluster to the second node

Step 4 – Verify that the cluster would now be running on the second node (SQLSERVER2)

 

At this point, you have successfully completed creating and testing SQL Server Failover cluster. I do recommend you watch the video on my YouTube Channel as well. And if you have any challenges, please let me know.

5 2 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments