Failover clustering: build a two-node cluster
-
Phase 0: Before you start
-
Phase 1: The foundation
-
Phase 2: Core administration and security
-
Phase 3: Enterprise infrastructure
-
Phase 4: Troubleshooting step by step
-
Phase 5: Final project and career
Some services can’t sit and wait while you swap a motherboard or install updates. Failover clustering runs them on a group of servers, so when one server fails or needs a restart another one takes over within seconds, using the same shared storage and the same name.
You’ll add NODE2, validate both nodes and build a two-node cluster on the iSCSI storage from Lesson 36. After adding a disk witness, you’ll make a file server highly available and move it between nodes, and then you’ll pull the plug, first on a node and then on quorum.
| Time | You need | By the end you can |
|---|---|---|
| About 2 hours | DC01, SRV01 (iSCSI target) and NODE1 from Lesson 36, plus a new NODE2 like NODE1 | Validate and create a failover cluster, configure storage and quorum, deploy a clustered file server, test failover and read cluster events |
What it is, in one line
Failover clustering is the Windows Server feature that joins servers (called nodes) into a cluster, so that roles such as file servers, SQL Server or Hyper-V VMs move to a healthy node on their own when one fails.
In Simple Words
Two pilots in one cockpit
A passenger plane has two pilots. Only one of them flies at any moment, but both can see the same instruments and reach the same controls, so if the captain falls ill the first officer takes over and the passengers never know. In a cluster, the nodes are the pilots, the shared disk is the instrument panel they can both reach, and the clustered role is the job of flying the plane. When the pilots can’t agree on who’s in charge, somebody has to cast the deciding vote, and that’s the witness; the rule that settles who’s allowed to fly is called quorum.
Engineer's View
Nodes, quorum, storage and roles
Basics: every node runs the Cluster service and sends heartbeats over each cluster network. A role (or clustered group) is a bundle of resources: a network name, an IP address, a disk and the service itself. If the node that owns a role fails, the cluster starts the role up again on another node.
Quorum is what decides whether the cluster is allowed to run, and the rule is that more than half of the votes must be present. Each node gets a vote and a witness (disk, file share or cloud) adds one more, which is how a two-node cluster with a witness survives losing a node. Dynamic quorum adjusts the votes as nodes leave.
Storage: cluster disks are shared (iSCSI, Fibre Channel or SAS) and only one node owns a disk at a time. Cluster Shared Volumes (CSV) let every node use a disk at once, which is what Hyper-V and Scale-Out File Server rely on, and S2D builds the shared storage out of local disks.
AD and tools: the cluster gets its own computer object (the CNO) and each role gets a VCO, and if those are deleted the roles go offline. Run validation (Test-Cluster) before anything else. Cluster-Aware Updating patches one node at a time by draining its roles first, and Server 2025 supports workgroup clusters with live migration.
How it works, step by step
Here’s what happens when the node running the file server fails:
Users get a pause of a few seconds while NODE2 takes the disk, brings the IP address and name online and starts the file server. With continuously available shares, most applications won’t even notice.
This is the cluster you’ll build:
- NODE2: a second node like NODE1, connected to the same iSCSI target.
- Witness LUN: a small 1 GB disk on SRV01 for quorum.
- Validate with Test-Cluster, then create CLUSTER1 (10.0.0.45).
- Quorum: disk witness.
- Role: FS-CLUSTER (10.0.0.46) with a continuously available Projects share.
- Move the role between nodes.
About memory: DC01, SRV01, NODE1 and NODE2 at 2 GB each add up to 8 GB, plus whatever your laptop needs for itself, so drop NODE1 and NODE2 to 1.5 GB if you have to.
Hands-on Lab: failover clustering with NODE1 and NODE2
Before you run any command, double-check it
Read every command twice before you press Enter. Check the target: the system or account, the IDs, the names and the sizes. These commands are for learning and were tested in our lab, not on your system. At work, run the read-only list commands first, follow your change process, make sure a backup exists, and ask a second person to check anything that changes or deletes data. You run them at your own risk.
Start DC01, SRV01 and NODE1. Unless a step tells you otherwise, work from DC01 as SAATLAB\adm.rahul in PowerShell as administrator.
1Build NODE2 and add a witness LUN
Build NODE2 the same way as NODE1 in Lesson 36, with two NICs on LabNet and LabNet2 and the addresses 10.0.0.42 and 10.0.1.42. Join it to the domain in the Servers OU, install Multipath-IO and run Enable-MSDSMAutomaticClaim -BusType iSCSI.
On SRV01, allow NODE2 and add a 1 GB witness disk to the same target:
Set-IscsiServerTarget -TargetName NodeTarget -InitiatorIds 'IQN:iqn.1991-05.com.microsoft:node1.saatlab.internal', 'IQN:iqn.1991-05.com.microsoft:node2.saatlab.internal'
New-IscsiVirtualDisk -Path D:\iSCSI\Witness.vhdx -SizeBytes 1GB | Out-Null
Add-IscsiVirtualDiskTargetMapping -TargetName NodeTarget -Path D:\iSCSI\Witness.vhdxOn NODE2, connect both paths (and refresh on NODE1 so it picks up the new LUN):
Set-Service MSiSCSI -StartupType Automatic; Start-Service MSiSCSI
New-IscsiTargetPortal -TargetPortalAddress 10.0.0.20 -InitiatorPortalAddress 10.0.0.42 | Out-Null
New-IscsiTargetPortal -TargetPortalAddress 10.0.1.20 -InitiatorPortalAddress 10.0.1.42 | Out-Null
$iqn = (Get-IscsiTarget).NodeAddress
Connect-IscsiTarget -NodeAddress $iqn -TargetPortalAddress 10.0.0.20 -InitiatorPortalAddress 10.0.0.42 -IsPersistent $true -IsMultipathEnabled $true | Out-Null
Connect-IscsiTarget -NodeAddress $iqn -TargetPortalAddress 10.0.1.20 -InitiatorPortalAddress 10.0.1.42 -IsPersistent $true -IsMultipathEnabled $true | Out-Null
Get-Disk | Where-Object BusType -eq 'iSCSI' | Select-Object Number, Size, OperationalStatusYou should see something like this on NODE2:
Number Size OperationalStatus
------ ---- -----------------
1 10737418240 Offline
2 1073741824 OfflineThe disks show as offline on NODE2 because Windows won’t bring shared disks online by itself, since two servers writing to one NTFS volume outside a cluster would corrupt it. On NODE1, initialize the 1 GB disk as GPT with a single NTFS partition, and then take both iSCSI disks offline so the cluster can claim them.
✅ Checkpoint: Both nodes see the 10 GB and 1 GB iSCSI disks over two paths.
2Install the feature and validate
On DC01:
Install-WindowsFeature RSAT-Clustering-PowerShell, RSAT-Clustering-Mgmt | Out-Null
Invoke-Command -ComputerName NODE1, NODE2 -ScriptBlock { Install-WindowsFeature Failover-Clustering -IncludeManagementTools | Select-Object Success }
Test-Cluster -Node NODE1, NODE2 -ReportName C:\Temp\Cluster-ValidationYou should see something like this:
WARNING: Network - Validate Network Communication: The test reported some warnings..
WARNING:
Test Result:
HadUnselectedTests, ClusterConditionallyApproved
Testing has completed for the tests you selected. You should review the warnings in the Report. A cluster solution is
supported by Microsoft only if you run all cluster validation tests, and all tests succeed (with or without warnings).
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 20/10/2026 00:41 702114 Cluster-Validation.htmOpen the HTML report. In a lab you’ll usually get some warnings (for example because the storage network has no gateway, or both NICs sit on similar networks), but any failure under Storage or Network has to be fixed before you create the cluster.
Microsoft only supports a cluster that has passed validation, warnings or not.
✅ Checkpoint: Validation finished with “ClusterConditionallyApproved” (warnings only) and a report in C:\Temp.
3Create the cluster and set quorum
On DC01:
New-Cluster -Name CLUSTER1 -Node NODE1, NODE2 -StaticAddress 10.0.0.45 -NoStorage | Out-Null
Get-ClusterAvailableDisk -Cluster CLUSTER1 | Add-ClusterDisk -Cluster CLUSTER1 | Select-Object Name, State, OwnerNode
Set-ClusterQuorum -Cluster CLUSTER1 -DiskWitness 'Cluster Disk 2' | Select-Object Cluster, QuorumResource
Get-ClusterNode -Cluster CLUSTER1 | Select-Object Name, State, NodeWeightYou should see something like this:
Name State OwnerNode
---- ----- ---------
Cluster Disk 1 Online NODE1
Cluster Disk 2 Online NODE1
Cluster QuorumResource
------- --------------
CLUSTER1 Cluster Disk 2
Name State NodeWeight
---- ----- ----------
NODE1 Up 1
NODE2 Up 1Before you make the 1 GB disk the witness, check that it’s really Cluster Disk 2 by looking at its size in Failover Cluster Manager. Two node votes plus the witness make three, so the cluster keeps going as long as any two are there. The cluster has also created a computer object called CLUSTER1 beside the nodes in AD.
✅ Checkpoint: CLUSTER1 has two Up nodes, two cluster disks, and Cluster Disk 2 as its disk witness.
4Make a file server highly available
On DC01:
Add-ClusterFileServerRole -Cluster CLUSTER1 -Name FS-CLUSTER -Storage 'Cluster Disk 1' -StaticAddress 10.0.0.46 | Out-Null
$owner = (Get-ClusterGroup -Cluster CLUSTER1 -Name FS-CLUSTER).OwnerNode.Name
Invoke-Command -ComputerName $owner -ScriptBlock {
New-Item -ItemType Directory S:\Projects -Force | Out-Null
New-SmbShare -Name Projects -Path S:\Projects -ScopeName FS-CLUSTER -ContinuouslyAvailable $true -FullAccess 'SAATLAB\Domain Admins' -ChangeAccess 'SAATLAB\Domain Users' | Out-Null
}
Get-ClusterGroup -Cluster CLUSTER1 | Select-Object Name, OwnerNode, StateYou should see something like this:
Name OwnerNode State
---- --------- -----
Available Storage NODE1 Online
Cluster Group NODE1 Online
FS-CLUSTER NODE1 OnlineThe 10 GB disk keeps the drive letter S: from Lesson 36 on whichever node owns it. Users and scripts connect to \\FS-CLUSTER\Projects and never to a node’s own name, because the share belongs to the role and follows it from one node to the other.
✅ Checkpoint: FS-CLUSTER is Online and the Projects share is reachable as \\FS-CLUSTER\Projects from CL01.
5Move the role between nodes
On DC01:
Measure-Command { Move-ClusterGroup -Cluster CLUSTER1 -Name FS-CLUSTER -Node NODE2 | Out-Null } | Select-Object TotalSeconds
Get-ClusterGroup -Cluster CLUSTER1 -Name FS-CLUSTER | Select-Object Name, OwnerNode, StateYou should see something like this:
TotalSeconds
------------
4.8732
Name OwnerNode State
---- --------- -----
FS-CLUSTER NODE2 OnlineCluster-Aware Updating does this same planned move for every role before it patches a node. Try copying a large file to the share from CL01 while you move the role back to NODE1: with a continuously available share, the copy pauses for a moment and then carries on.
✅ Checkpoint: FS-CLUSTER moved to NODE2 in a few seconds and stayed Online.

Break It, Then Fix It
A cluster proves its worth when things fail, so now you’ll kill a node, and after that take away enough votes to lose quorum.
1Break it: a node dies
Check that FS-CLUSTER is running on NODE1, then hard power-off NODE1 from your laptop:
VBoxManage controlvm NODE1 poweroffOn DC01, give it about 30 seconds and then run:
Get-ClusterNode -Cluster CLUSTER1 | Select-Object Name, State
Get-ClusterGroup -Cluster CLUSTER1 -Name FS-CLUSTER | Select-Object OwnerNode, State
Get-WinEvent -ComputerName NODE2 -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-FailoverClustering'; Id=1135} -MaxEvents 1 | Select-Object Id, Message | Format-ListYou’ll see something like this:
Name State
---- -----
NODE1 Down
NODE2 Up
OwnerNode State
--------- -----
NODE2 Online
Id : 1135
Message : Cluster node 'NODE1' was removed from the active failover cluster membership. The Cluster service on this
node may have stopped. This could also be due to the node having lost communication with other active nodes
in the failover cluster. ...Nobody touched anything. NODE2 noticed the heartbeats had stopped, took the disk and brought FS-CLUSTER online. After an unexpected failover, event 1135 is the first thing to look for, and the cause (power, network or a crash) will be on the node that dropped out.
To fix it, start NODE1 and check that it rejoins:
VBoxManage startvm NODE1 # on your laptop
Get-ClusterNode -Cluster CLUSTER1 | Select-Object Name, State # on DC01, after a few minutes✅ Checkpoint: FS-CLUSTER failed over to NODE2 automatically, event 1135 was logged, and NODE1 shows Up again after starting.
2Break it: lose quorum
With FS-CLUSTER on NODE2, power off NODE1 again and then cut off the witness disk on SRV01:
VBoxManage controlvm NODE1 poweroff # on your laptop
Remove-IscsiVirtualDiskTargetMapping -TargetName NodeTarget -Path D:\iSCSI\Witness.vhdx # on SRV01On DC01, wait a minute and run:
Get-ClusterNode -Cluster CLUSTER1 -ErrorAction SilentlyContinue | Select-Object Name, State
Get-WinEvent -ComputerName NODE2 -FilterHashtable @{LogName='System'; ProviderName='Microsoft-Windows-FailoverClustering'; Id=1177} -MaxEvents 1 | Select-Object Id, Message | Format-ListYou’ll see something like this:
Id : 1177
Message : The Cluster service is shutting down because quorum was lost. This could be due to the loss of network
connectivity between some or all nodes in the cluster, or a failover of the witness disk. ...Dynamic quorum often keeps a two-node cluster running when a node leaves cleanly. This time NODE1 vanished and the witness went with it, so NODE2 on its own couldn’t be sure it was the “real” cluster, and it stopped and took FS-CLUSTER offline. It stops on purpose, to stop two halves from writing to the same disks (split-brain).
To fix it, give the votes back: restore the witness, start NODE1 and check:
Add-IscsiVirtualDiskTargetMapping -TargetName NodeTarget -Path D:\iSCSI\Witness.vhdx # on SRV01
VBoxManage startvm NODE1 # on your laptop
Get-ClusterGroup -Cluster CLUSTER1 | Select-Object Name, OwnerNode, State # on DC01If you ever have to run with too few votes, Start-ClusterNode -FixQuorum (force quorum) starts a node regardless. Only do it when you’re certain the other side is down, because otherwise you can end up with split-brain.
✅ Checkpoint: NODE2 logged event 1177 and stopped; after restoring the witness and NODE1, all roles are Online.

This happened at work
The cleanup that deleted a cluster
A junior admin was asked to tidy up Active Directory. He came across computer objects named SQLCLU01, SQL-AG-LST and FS-CL02 that didn’t match anything in the server inventory, and nobody had signed in to them for months, so they looked abandoned and he deleted them. They were in fact the cluster name object and two virtual computer objects belonging to production clusters. A few hours later, after a routine failover, the SQL listener and file server roles wouldn’t come online, and the events said the network name resource couldn’t find its computer object.
The team got the three objects back from the AD Recycle Bin and brought the roles online, but only after a morning of degraded service.
The fix: cluster computer objects now carry a description (“Failover cluster CNO, do not delete”) and are protected from accidental deletion, and the cleanup scripts skip any object whose servicePrincipalName shows MSClusterVirtualServer. The lesson: cluster names live in AD as computer objects, and since they never sign in like servers they look stale, but deleting them breaks the cluster.
Common mistakes and troubleshooting
| Mistake or symptom | What happens | What to do instead |
|---|---|---|
| Skipping validation | Unsupported cluster; hidden storage or network problems | Run Test-Cluster and fix failures before creating |
| No witness on a two-node cluster | Losing one node can stop the cluster | Disk, file share or cloud witness |
| Event 1135 after a failover | A node left membership | Check that node’s power, network and crash logs |
| Event 1177 quorum lost | Cluster stops to avoid split-brain | Restore votes (nodes, witness); force quorum only if sure |
| Deleting cluster CNO or VCO objects | Roles fail to come online | Protect and describe them; restore from the Recycle Bin |
| Bringing shared disks online on two nodes outside the cluster | NTFS corruption | Let the cluster own shared disks |
| Users connecting to node names | No failover for them | Always use the role’s network name |
| Patching nodes by hand at the same time | Both nodes down | Cluster-Aware Updating or one node at a time |
| Single network for everything | Heartbeats lost under load | Separate networks for clients, storage and cluster traffic |
Interview questions
Click a question to open it. Each one is worded the way an interviewer would ask it, and underneath you’ll find why they ask it and one way you could answer in your own words.
Fresher level
1. How would you explain a failover cluster to someone who has never seen one?
Why they ask this: Before they get into quorum and logs, they want to hear you explain the core idea in plain words.
How you might answer: I’d say it’s a group of servers that work together and keep an eye on each other. If one fails, the clustered roles, like a file server or a VM, move to another server automatically, and users might see a short pause but the service keeps running.
2. Can you explain in simple words what quorum is and why a cluster needs it?
Why they ask this: They’re checking that you understand the voting idea and the split-brain problem it prevents.
How you might answer: Quorum is the rule that more than half the votes have to be available for the cluster to keep running, and those votes come from the nodes plus a witness. It prevents split-brain, where both halves of a cluster think they own the same roles and both write to the same data.
3. A user has mapped a drive to the node name instead of the clustered role name. Why is that a problem?
Why they ask this: They want to know you understand how clients reach a clustered role and why it survives a failover.
How you might answer: The role’s network name and IP move with the role to whichever node owns it, but a node name stays on that one node. So after a failover, the user pointing at the node name loses access while everyone using the role name carries on. I’d change the drive mapping to use the role name.
2–5 years experience
4. What kinds of witness can a cluster use, and how would you choose one?
Why they ask this: They want to see you know the quorum options and choose one that suits the real environment.
How you might answer: There are three kinds: a disk witness, a file share witness, or a cloud witness in Azure storage. I’d pick based on how many sites we have and what storage is available, and for a stretched cluster I’d want the witness in a third location, which a cloud witness gives you easily.
5. You open Event Viewer on a cluster node and see events 1135 and 1177. What do they tell you?
Why they ask this: They want to find out whether you’ve read cluster logs during a real incident.
How you might answer: Event 1135 means a node was removed from cluster membership, and 1177 means the Cluster service stopped because quorum was lost. Seeing both together tells me the cluster lost too many votes, so I’d look at the network between the nodes and at the witness.
6. What is a Cluster Shared Volume, and where would you use one?
Why they ask this: They’re checking that you understand CSV and why Hyper-V clusters depend on it.
How you might answer: A CSV is a cluster disk that all the nodes can read and write at the same time, with one node acting as the coordinating owner. I’d use it for Hyper-V VMs, so any VM can run on any node, and for a Scale-Out File Server.
Senior level
7. Say you need a highly available file service for 2,000 users. How would you design it?
Why they ask this: They want to see you think the whole thing through, from storage and quorum to patching and backup.
How you might answer: I’d build a two- or three-node failover cluster running the file server role with continuously available shares, redundant storage paths and a witness in a third location. I’d put DFS namespaces in front so users get simple paths, and set up backups and Cluster-Aware Updating (CAU) for patching.
8. A cluster keeps failing over every few days, and nobody knows why. How would you investigate?
Why they ask this: They’re looking for a structured approach that gathers evidence before changing anything.
How you might answer: I’d start by running Get-ClusterLog on all nodes and reading the window around each failover, along with event 1135 and any network warnings, and I’d check the heartbeat thresholds. After that I’d look at NIC drivers and firmware, storage latency and antivirus exclusions, and finally the logs for whichever resource failed.
9. What has changed for failover clusters in recent Windows Server releases?
Why they ask this: They want to know you keep up with the platform and can say which changes are worth having.
How you might answer: The first one I’d mention is that Server 2025 supports workgroup clusters with live migration, so a cluster doesn’t always need AD. S2D has improved too, and Cluster-Aware Updating can now work with Azure Arc, which helps if you manage hybrid servers.
Quick quiz
Q1. How many votes does a two-node cluster with a witness have?
- Two
- Three
- Four
Show answer
B — Two nodes plus the witness.
Q2. What happened when NODE1 was powered off in Break It step 1?
- Users lost the share for hours
- FS-CLUSTER moved to NODE2 automatically
- The cluster was deleted
Show answer
B — That’s failover.
Q3. Which event means quorum was lost?
- 1135
- 1177
- 4624
Show answer
B — The Cluster service stops to avoid split-brain.
Q4. Why are shared disks offline on NODE2 before clustering?
- They’re broken
- To prevent two servers writing to the same volume
- To save power
Show answer
B — The cluster takes ownership.
Q5. In the work story, what broke the clusters?
- A failed disk
- Deleted cluster computer objects in AD
- A bad patch
Show answer
B — Protect CNO and VCO objects.
Quick recap
- Failover clustering moves roles to a healthy node when one fails.
- Validate with
Test-ClusterbeforeNew-Cluster. - Quorum needs more than half the votes, so give two-node clusters a witness.
- Roles have their own name and IP, and clients should use those instead of node names.
- Event 1135 means a node left, and 1177 means quorum was lost.
- Protect cluster computer objects in AD and patch nodes one at a time.
Next lesson
Lesson 38: Backup and DR → Next you’ll back up SRV01 with Windows Server Backup, restore single files and a whole volume, practise a bare-metal recovery and plan a 3-2-1 backup strategy.
Further reading: failover clustering
Want to go deeper into failover clustering? Microsoft’s failover clustering overview covers the feature, and the cluster quorum guide explains votes and witnesses. You can also see the full plan for this course on the Windows Server Administration course page.
