How to Set Up and Configure Failover Cluster On Windows Server 2022

Loading

In this blog, we will take a look at how to create a two-node failover cluster configuration running Windows Server 2022 with a few shared disks mapped from our ISCSI san.

Blog Series

A failover cluster feature on Windows Server allows us to group a couple of servers into a single failover cluster thus providing higher resiliency, scalability and high availability for your backend servers.

Windows Server 2022 can provide cluster configuration for key services like ;

  • File Server
  • DFS Namespace Server
  • DHCP Server
  • iSNS Server
  • iSCSI Target Server
  • Distributed Transaction Coordinator (DTC)
  • Hyper-V Replica Broker
  • Message Queuing
  • WINS Server

Summary of Windows 2019/2022 Failover Cluster Deployment

The following are the high-level steps required for our Windows Cluster deployment.

  1. Deploy two Windows 2022 VM
  2. Finish all Windows Updates
  3. Join the domain if needed. This isn’t a mandatory requirement.
  4. Each VM will have two network interfaces –
    1. Management/Production Network
    2. Cluster Network
  5. Add 3 DNS records
    1. Primary Server
    2. Secondary Server
    3. Cluster Server Name ( VIP )
  6. Attach the same ISCSI disk/lun to the primary server & secondary server.
  7. Virtual disk formats should be thick provisioned eager zeroed.
  8. Install Failover clustering role on both servers
  9. Bring the disk online via computer management on the primary server.
  10. Run readiness check prior to joining them as a cluster
  11. Once passed, join nodes to the cluster
  12. Add roles if needed.

Management VM Sizing Requirements

VMIP Address
Primary – Production / Mgmt Network172.16.11.199
Primary – Cluster Network172.16.99.199
Secondary – Production / Mgmt Network172.16.11.200
Primary – Cluster Network172.16.99.200
Clustered Server Name – Production / Mgmt Network172.16.11.201

Add DNS records for the VM’s

Open Server Manager on both servers and install the Failover Cluster feature or we can also install this feature using the PowerShell command:

Install-WindowsFeature Failover-Clustering –IncludeManagementTools

You can install the same via the GUI by selecting failover clustering

Click Next to Continue

Choose Role Based Installation

Choose the server you wish to install the services on

Under Server Roles, we will click Next to continue

Under Features to be added select Failover Clustering

Click Install to begin the installation

Confirm if the installation has succeeded.

After a successful installation, it appears in the Server Manager, click Tools, and then Failover Cluster Manager.

In the next step, we will map an ISCSI Lun to both the servers . Both servers are mapped with the same ISCSI 10 GB lun

Likewise on the second VM, we’ve mapped the same lun

Failover Cluster readiness check on Primary

We will need to bring the disk online in one server and initialize the disk, however, we don’t need to do this process on the second server as it’s taken care of by the cluster configuration.

Let’s begin with the configuration on node 1.

Under computer management, we will select the disk and initialise the disk.

Choose the disk and Initialise the disk to create a new volume from the disk provisioned.

Click Next to continue

Choose a drive letter

Give the Volume a name

Finally, complete the wizard

Our volume is ready

Failover Cluster readiness check on Primary

So far we have mapped two nic’s to both servers, added the same ISCSI lun on both servers, formatted and got a volume up on one server.

Let’s verify if everything is set up correctly.

In Server Manager click Tools and Click Failover Cluster Manager.

This image has an empty alt attribute; its file name is image-180-1024x292.png

Under the Action menu click Validate Configuration.

failover cluster manager 2019

Click Next.

validation configuration wizard

Select the browse button.

validation select servers or cluster

Type name both the servers and click ok.

31- After Selecting the two-node servers for validation, click next.

Select Run all tests and click Next

cluster validation testing options

Review the configuration and click next.

Cluster validation tests will take a while

If errors are encountered, correct them before you proceed. Once validation completes, view the report and click Finish to continue

Create a Failover Cluster Server in Windows 2022

Under Action Menu so, select Create Cluster.

failover cluster manager 2019

Click Next.

create cluster wizard

Click the browse button and search for our servers

create cluster select servers

Add both servers into the selection list

Give the cluster a name, select the IP address and click next.

Click next to continue and wait

Cluster setup will take a while

Once done, click Finish

Verify the DNS Configuration and we can now see a VIP AD object being added for the cluster

Verify if the VIP address is pingable.

Both the Nodes are up now.

Under the Storage section, we can see disks being mapped

You can configure the quorum witness mode by right-clicking the cluster name and selecting More Actions > Configure Cluster Quorum Settings.

The presence of a quorum in a cluster for its proper operation is determined by the majority of voting members who are active members of the cluster.

To ensure correct operation of the cluster, you need to configure the quorum. By default, each cluster node has one quorum vote. In addition, a quorum witness (if configured) has one additional quorum vote. You can configure one quorum witness for each cluster. Each item can cast one vote to determine if a cluster can be started.

If there is a number of nodes in the cluster, you will need to configure the quorum witness resource. In Windows Server 2019/2022, you can use as a witness resource.

  • File Share witness — (shared SMB folder);
  • Disk Witness — shared disk (with simultaneous access to it from all nodes);
  • Cloud Witness — cloud disk resource in Azure (Blob storage).
windows 2016 file server cluster step by step

Adding Roles for Cluster

Now that our failover cluster is defined, we can add roles for any of these services as needed. Click Configure Role to add a service or role in HA mode.

Click Next to proceed

Choose the service you wish to configure High availability

References

https://docs.microsoft.com/en-us/answers/questions/589879/server-2022-cluster-validation-network-invalid-nam.html

(Visited 4,444 times, 1 visits today)

By Ash Thomas

Ash Thomas is a seasoned IT professional with extensive experience as a technical expert, complemented by a keen interest in blockchain technology.

Leave a Reply