Guide · Cluster basics

Split brain in clusters: how quorum and fencing prevent it

Short answer

Split brain in a cluster happens when separated parts keep running independently and change the same data. Quorum prevents this: only the side holding a majority of votes may act. Fencing ensures a cut-off node has stopped writing before its VMs start elsewhere. A Proxmox cluster needs at least three nodes; two work only with an external quorum device.

Contents
  1. Quorum and majority
  2. Split brain
  3. Fencing
  4. Two nodes with a QDevice
  5. Two sites
  6. How we do it
  7. FAQ
  8. Sources

Cluster quorum: the majority of votes decides

Quorum is the minimum number of votes a part of the cluster needs before it is allowed to act. In Proxmox VE, every node has one vote by default. Only a group of nodes holding more than half of all votes may change the state of the cluster. Without that majority, the cluster switches to read-only mode.

The nodes communicate through the Corosync Cluster Engine. Its votequorum service counts the votes and, according to its documentation, exists specifically to avoid split brain. Terms such as Corosync and HA Manager are explained in our high availability glossary.

The majority rule: ⌊n/2⌋ + 1

Corosync uses a simple majority: half of the votes plus one, rounded down to whole votes. For n nodes with one vote each, the majority is ⌊n/2⌋ + 1, and at most n − (⌊n/2⌋ + 1) nodes can fail at the same time.

Cluster quorum Majority and failure tolerance by node count
NodesVotes needed for quorumNodes that can failWhat it means
220Any node failure costs quorum
321Smallest size for reliable quorum
431More capacity, yet no more failure tolerance than three nodes
532Two nodes can fail at the same time

One vote per node, simple majority per Corosync votequorum, no extra features. Our own calculation. As of October 2026.

One detail matters for planning: the majority refers to all expected votes, which Corosync sets at startup, not only to the votes currently reachable. If one node of a three-node cluster fails, the remaining two still need two votes. A second failure leaves the last node without a majority.

Why an even number of nodes works against you

A fourth node adds capacity, yet it does not add failure tolerance: four nodes need three votes and, like three nodes, survive only one failure. And if a four-node cluster breaks into two halves of two nodes each, neither half has a majority, and both lose quorum. For even node counts, Proxmox therefore supports an external quorum device whose extra vote breaks the tie.

Split brain in a cluster: what happens without quorum

A split brain cluster has fallen apart into parts that can no longer reach each other and keep running independently. Each part assumes the other has failed and takes over its work. The same virtual machines then run twice and write to the same data at the same time.

A network split is enough to cause it, for example a faulty switch or a broken link. The nodes keep running; only their connection to each other is gone. From the inside, this looks exactly like the other nodes failing.

Why split brain destroys data

If a VM starts on a second node while it is still running on the cut-off node, both instances write to the same virtual disk. The Proxmox documentation warns that such a race condition can destroy all of the VM's data and leave it unusable.

Quorum resolves the conflict with a simple rule: only the part holding a majority of votes may carry on. Because a majority means more than half, only one such part can exist. If the nodes split exactly in half, the cluster stays consistent, though it can no longer act.

In Proxmox VE, losing quorum makes the cluster file system pmxcfs, which holds the configuration of all nodes, read-only. The node waits for a new quorum. If highly available VMs are running on it, it fences itself.

Diagram 01 Network split in a three-node cluster
  • Cluster communication
  • Broken connection
  • Write access to storage
  • Fenced node
  • Node with quorum
  • Node without quorum
Diagram as text
  1. Three nodes with one vote each; the majority is two.
  2. The link to node 3 fails. Side A (nodes 1 and 2) holds two votes and keeps quorum; node 3 holds one.
  3. Node 3 can no longer reset its watchdog and reboots (fencing).
  4. Side A then restarts the VMs of node 3; only side A writes to the shared storage.
After a network split, the side with two of three votes keeps quorum. Node 3 is fenced by its watchdog; only then does the majority restart its VMs.

Cluster fencing: isolating a failed node safely

Fencing guarantees that a failed or cut-off node is really offline before its services start on another node. Only then is it certain that no VM runs twice. Without fencing, the node would remain in an unknown state and might still have access to shared storage.

Quorum and fencing work as a pair. Quorum decides which part of the cluster may act. Fencing makes sure the other part has actually stopped before the acting part takes over its services.

How Proxmox VE fences: self-fencing with a watchdog

A node can be fenced with an external power switch, by cutting off all of its traffic at the network switch, or by self-fencing with a watchdog timer. Proxmox VE uses self-fencing because it needs no additional hardware; according to the documentation, external fence devices would be critical components in their own right.

During normal operation, the HA Manager resets the watchdog regularly. A node without quorum can no longer do so. If active highly available services run on it, the documentation states that the watchdog reboots the server after 60 seconds. By default, Proxmox VE uses the Linux kernel's software watchdog (softdog); a hardware watchdog has to be configured explicitly. The vendor describes the software watchdog as reliable, though not independent of the server hardware. Only once the cluster resource manager has acquired the node's lock does it count as fenced, and its VMs restart on the remaining nodes.

The load balancer removes a failed node from rotation within seconds. The node's virtual machines restart on another node after fencing; how long that takes depends on fencing and on the guest system's boot time.

Why the restart does not begin immediately

The wait until fencing completes is intentional, because it prevents VMs from running twice. Services that must stay reachable throughout run as several instances behind a load balancer. For the full sequence, see how failover works in a high availability cluster.

Proxmox two node cluster: only with an external quorum device

A two-node cluster has two votes, and its majority is also two. If either node fails, the remaining node loses quorum and the cluster can no longer act. A Proxmox two node cluster becomes highly available only with a third vote from outside: the external quorum device, or QDevice.

With a QDevice, the corosync-qdevice service runs on every node, and the corosync-qnetd arbitrator runs on an independent server outside the cluster. According to the Proxmox documentation, the arbitrator gives its vote to only one part of the cluster at a time, and only to a part that reaches a majority with it. It connects over TCP/IP, without the strict latency requirements of the cluster network. If the link between the two nodes breaks while both still reach the QDevice, only one of them gets the vote. According to the Corosync documentation, a tie is settled last by the tiebreaker, which by default favors the node with the lowest node ID.

QDevice Two nodes with and without a quorum device, compared with three nodes
Criterion2 nodes2 nodes + QDevice3 nodes
Total votes233
Votes needed for quorum222
Survives a failureNo no node may failYes of one node or the QDeviceYes of one node
After one node failsCluster loses quorumOne node carries all VMsTwo nodes take over the VMs
Additional componentnoneServer running corosync-qnetd outside the clusternone
Distributed Ceph storageNo too few nodesNo the QDevice holds no dataYes Ceph needs three or more nodes

Sources: Proxmox VE Administration Guide, Corosync votequorum; three-node minimum for Ceph per our Ceph design. As of October 2026.

Limits of a two-node cluster with a QDevice

  • Separate location: the QDevice runs on an independent server; otherwise it would fail with the very node it protects.
  • Its own failure: if the QDevice fails, the next node failure costs quorum, so it belongs in your monitoring.
  • One node carries everything: after a failure, the remaining node needs capacity for the load of both nodes.
  • Replication at intervals: without three nodes for Ceph, we usually recommend ZFS replication for compact setups, which syncs at fixed intervals; after a failover, Proxmox notes, data since the last sync may be lost. See our Ceph vs ZFS comparison.
  • Discouraged for odd node counts: there the QDevice would receive n − 1 votes and, according to Proxmox, act almost as a single point of failure; the vendor currently advises against it.

Two-node setups are possible with an external quorum device. For business-critical applications, we recommend three or more nodes.

Clusters across two sites: the deciding vote belongs at a third location

If you spread a cluster's nodes evenly across two sites, neither side holds a majority after a split. Four nodes, two per site, need three votes; each side has only two. Both sides lose quorum, and nodes running highly available VMs fence themselves. The fix is an arbitrator at a third site that gives its vote to exactly one side.

In Proxmox VE, the QDevice plays that role. With four nodes it adds the fifth vote, so the majority becomes three of five. When the sites split, the Corosync documentation states that the side with the most active nodes gets the vote; in a tie, the tiebreaker decides last. If an entire site fails, the other site also reaches three votes with the QDevice.

The third location is what makes this work: if the QDevice stood at one of the two sites, it would fail along with it, leaving the other side with two of five votes and no quorum. The same principle applies to any even node count split evenly across two sites.

Diagram 02 Two sites with an arbitrator at a third location
  • Cluster communication
  • Arbitrator at a third location
Diagram as text
  1. Site A runs nodes 1 and 2, site B nodes 3 and 4, each node with one vote.
  2. A QDevice at a third site connects to both and adds the fifth vote; the majority is three.
  3. If A and B lose contact, the QDevice votes for one side only. That side keeps quorum with three votes; the other loses it.
Principle: four nodes across two sites and a QDevice at a third location. When the sites split, exactly one side receives the QDevice's vote and with it three of five votes.

The same principle applies to distributed storage. For two data centers, the Ceph documentation has each site hold all of the data. A tiebreaker monitor in a third zone decides which side carries on when the sites lose contact.

Latency limits the distance

According to the Proxmox documentation, the Proxmox VE cluster stack needs latencies under five milliseconds between all nodes to run stably; with more than three nodes and latencies above roughly ten milliseconds, stable operation becomes unlikely. Whether one cluster can span two sites, or two separate clusters with replication fit better, therefore also depends on the distance.

How we implement quorum and fencing in a managed Proxmox cluster

By default, our managed Proxmox clusters consist of three nodes, which form quorum through Corosync. Quorum planning and split brain protection are part of the written redundancy plan we prepare during the design phase. Before go-live, we run a full failover test, followed by regular tests documented in a written log.

  • N+1 design: the remaining nodes have headroom for the VMs of a failed node
  • Fencing before restart: the HA Manager restarts VMs on another node only afterwards
  • Ceph with three replicas of every block on different nodes, standard in Essentials and Business
  • Redundant network: bonding/LACP per node, redundant switches, separate networks for management, storage and public traffic
  • 24/7 monitoring with on-call alerting and a post-incident report on cause and remediation
  • Written documentation of architecture, configuration and emergency plan, which belongs to you

If an environment is to span more than one site, the location of the deciding vote belongs in that plan from day one. We describe the process in high availability cluster design and setup and failover testing and emergency runbooks.

Quorum and fencing do not replace backups

An accidentally deleted record or a faulty update lands on all replicas at once. That is what separate backups with restore tests are for.

FAQ

Frequently asked questions about quorum, split brain and fencing

How many nodes does a Proxmox cluster need?

At least three if it is meant to be highly available. Then the two remaining nodes keep quorum with two of three votes after one node fails; Proxmox lists three nodes as the requirement for reliable quorum. Two nodes work only with an external quorum device.

Does a two-node Proxmox cluster work?

Yes, though it is highly available only with an external quorum device (QDevice). Without one, the remaining node loses quorum when the other fails. For business-critical applications, we recommend three or more nodes.

What is fencing in a cluster?

Fencing is the safe isolation of a failed or cut-off node before its services start on another node, so that no VM runs twice. Proxmox VE uses a watchdog that reboots a node without quorum if it runs highly available services.

Why is an even number of nodes a problem?

Because it adds no failure tolerance and allows a split right down the middle. Four nodes, like three, survive only one failure, and with two equal halves neither has a majority. An external quorum device breaks that tie.

What happens when a cluster loses quorum?

The affected part may no longer change the state of the cluster. In Proxmox VE, the cluster file system becomes read-only. Nodes running highly available services fence themselves with their watchdog, so that the majority can take over their VMs.

Sources

Retrieved on October 9, 2026; Proxmox VE Administration Guide, version 9.2.13. The tables are our own calculations based on Corosync votequorum.

  1. Proxmox Server Solutions GmbH: Proxmox VE Administration Guide, chapter “Cluster Manager”, sections Requirements, Quorum, Network Requirements and Corosync External Vote Support. pve.proxmox.com
  2. Proxmox Server Solutions GmbH: Proxmox VE Administration Guide, chapter “High Availability”, sections Requirements, How It Works, Fencing and Recover Fenced Services. pve.proxmox.com
  3. Proxmox Server Solutions GmbH: Proxmox VE Administration Guide, chapter “Storage Replication”. pve.proxmox.com
  4. Corosync project: votequorum(5), Votequorum Configuration Overview, corosync 3.1.9. manpages.debian.org
  5. Corosync project: corosync-qdevice(8), sections Configuration (tie_breaker) and Model Net Algorithms, corosync-qdevice 3.0.3. manpages.debian.org
  6. Ceph project: Ceph Documentation, “Stretch Clusters”. docs.ceph.com

Related

Cluster planning

Plan for quorum and fencing from the start

Tell us about your application, load profile and availability target. We define node count, quorum and fencing in a written design proposal at a fixed price and test failover before handover.

Request a project