Create a Two-Node Windows Cluster

How to create a Two-Node Windows Cluster for storage servers and host Hyper-V VMs.

This article describes the steps to create a Two-Node Windows 2012r2 Cluster to be used for services as well as host VMs.

Prerequisites

  1. Both nodes should be domain joined
  2. Prerequisite Roles and Features installed (see Windows Cluster and Storage Spaces Prerequisite Roles and Features)
  3. Multipath IO must be installed and configured (see Configuring Multipath IO on Windows Cluster Systems)
  4. The initial configuration should be complete. Additional networks can be added at anytime.
    1. Interconnection networks should be configured and active
    2. One port common to all cluster members should be configured and active (see Configure network ports on Windows Clustered Systems)
    3. Mellanox cards should be available to support RDMA
  5. Pools and Virtual Disks should be configured and active
    1. Create Storage Pool on Windows Storage Spaces Standard
    2. Create a Virtual Disk on Windows Storage Spaces Standard

Validate the Cluster

Log onto one of the systems using a domain administrator account. This procedure is run on only one node.

Run PowerShell command which runs the Cluster Validation:

Test-Cluster –Node node-1,node-2

Info

This procedure can be run from the Cluster Manager console. If there are errors in the validation, from the Cluster Failover Manager console is a simpler process.

Cluster Validation Command Output

This process will typically report completion with warning messages.  We can still continue on and create the cluster.  We will come back at the end and handle outstanding warning issues. The warnings in this case say that we have only single network connections to Node-1 and Node-2 which is not .  This will be remedied as soon as more networks are added If the warnings look more severe, then this process can be run from the Cluster Manager Console which will display complete error and warning reports interactively.

Create the Cluster

Run the following command to create the cluster.

New-Cluster -Name MyCluster -Node node-1,node-2 -NoStorage -StaticAddress 172.101.3.1

Notes

  • Select relevant node names, addresses and cluster names for your environment.
  • The NoStorage parameter was selected so we can include only the relevant storage resources. By default New-Cluster will move all discovered storage to the cluster as a resource and often create a on whatever disks or virtual disks it finds, which is likely not desirable.
  • This can be completed from the Failover Cluster Manager console, but be sure to NOT select the add storage checkbox.
Create Cluster Output

The screen above shows the output of the New-Cluster command.

When you bring up the Failover Cluster Manager GUI you should see a functioning cluster.

Failover Cluster Manager screenshot

The next steps will be to configure the storage and networks as cluster resources.

Leave a Reply

Your email address will not be published. Required fields are marked *