Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Creating a Failover Cluster under Windows Server 2012

Leer en espanol
Creating a Failover Cluster under Windows Server 2012

Table of contents

On this occasion we move a little away from our comfort zone (from the world of free software and GNU/Linux) for the implementation of a low high availability Cluster in a Windows Server 2012 environment.

Since in our work environment we have to deal with platforms with multiple operating systems and unfortunately not all of them are free software, I have decided to make this entry.

What is High Availability Cluster?

High Availability Cluster. To achieve redundancy and protection against system failures, the first measure usually taken is to replicate its most critical hardware components. For example, in the case of a server, RAID disk configurations, redundant power supplies, several network interfaces are used. bonding, etc. And the same concept of redundancy also applies to the rest of the components such as the network electronics or the electrical system.

These measures undoubtedly increase the availability level of a system, but to achieve an even higher level, advanced hardware and software configurations such as High Availability clusters are usually used.

A High Availability Cluster It is a set of two or more servers, which is characterized by sharing the storage system, and because they are constantly monitoring each other. If a hardware or service failure occurs on any of the machines that make up the cluster, the high availability software is capable of automatically restarting the services that have failed on any of the other computers in the cluster. And when the failed server recovers, services are migrated back to the original machine.

IP addressing

text
Windows IP Configuration
Host Name . . . . . . . . . . . . : winclus01
Ethernet adapter Red de almacenamiento:
IPv4 Address. . . . . . . . . . . : 192.168.2.100(Preferred)

Subnet Mask . . . . . . . . . . . : 255.255.255.0
Ethernet adapter Red de cluster:
IPv4 Address. . . . . . . . . . . : 192.168.3.100(Preferred)

Subnet Mask . . . . . . . . . . . : 255.255.255.0
Ethernet adapter Red de servicio:
IPv4 Address. . . . . . . . . . . : 192.168.1.100(Preferred)

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.180

192.168.1.170
text
Windows IP Configuration
Host Name . . . . . . . . . . . . : winclus02
Ethernet adapter Red de almacenamiento:
IPv4 Address. . . . . . . . . . . : 192.168.2.101(Preferred)

Subnet Mask . . . . . . . . . . . : 255.255.255.0
Ethernet adapter Red de cluster:
IPv4 Address. . . . . . . . . . . : 192.168.3.101(Preferred)

Subnet Mask . . . . . . . . . . . : 255.255.255.0
Ethernet adapter Red de servicio:
IPv4 Address. . . . . . . . . . . : 192.168.1.101(Preferred)

Subnet Mask . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.180

192.168.1.170

Network diagram:

Diagramaclusterwin

We proceed to configure the iSCSI disks (on both nodes), to do this we go to: Tools > iSCSI Initiator

Selección 027

In the Targets tab, we add the IP of our storage server and press Quick Connect.

Selección 028

Selección 029

We go to the Volumes And Devices tab and click on Auto Configure.

Selección 030

Once ISCSI is configured, we must activate the disks in Disk Management (on both nodes).

We activate and initialize the disk.

Selección 031

Selección 032

Selección 033

Selección 034

Now we need to install the Failover Cluster Feature on both nodes.

To do this we have to go to Add Roles and Features > Features > Remote Server Administration tools > failover Clustering Tools

Selección 035 Selección 036

Installation using Powershell

Install-WindowsFeature -Name Failover-Clustering –IncludeManagementTools

Check if it has been installed correctly:

Get-WindowsFeature Failover*

We move on to configure the cluster: Tools > Failover Cluster Manager

Selección 037

First of all we have to carry out the validation, to do this we press Validate Configuration

Selección 057

Following

Selección 058

We click on Browse and select the two nodes of the cluster.

Selección 059 Selección 060

Following.

Selección 061

Following

Selección 062

Following

Selección 063 Selección 064

We finish the installation and proceed to create the cluster.

Selección 065

The wizard opens to create the cluster.

Selección 066

We assign a cluster name and IP.

Selección 067

It shows us a small summary, Next.

Selección 068

Start creating the cluster.

Selección 069

We finish the creation of the cluster.

Selección 070

Finally we have to configure the cluster services. So that this tutorial does not take too long, I am only going to create a file server role.

To do this, click on Configure Role…

Selección 071

Following

Selección 072

We select the role we want to configure.

Selección 073

Following.

Selección 074

We give a name for that resource and an IP address

Selección 075

We select the unit.

Selección 076

It shows us a brief summary, following.

Selección 077

We finish.

Selección 078 Selección 079

All the best.

:wq!

Comments