fencing
termKept in this browser · My desk
Making a cluster node unable to run resources, even when it no longer answers the cluster, usually by cutting its power or its access to something it needs, so that a node cut off from its peers cannot act as a second active member.
Pacemaker's documentation also calls it STONITH, shoot the other node in the head, and requires that fence devices not depend on the cluster network or share power with the node they fence. Majority voting cannot settle a two-node cluster, because the majority of two is two; fencing, a witness vote or a second independent heartbeat path is what stops both nodes running at once. Firewall pairs rarely fence: they rely on second heartbeat paths and on rules for which member steps aside.
Methods. Pacemaker distinguishes power fencing, the most common, from fabric fencing, which cuts the node's access to something it needs to run resources, such as network access or a shared disk. Quorum. Corosync's votequorum manual describes a startup race in which, as soon as five of eight nodes become quorate, the three still offline are fenced; its two_node option sets quorum artificially to 1 and turns on wait_for_all, so that a two-node cluster first becomes quorate only after both nodes have seen each other. Microsoft's failover clustering adds a witness vote, a disk, a file share or a cloud storage account, and its guidance is to always configure one. Firewalls. Juniper's chassis cluster takes a secondary out of service when it hears the fabric link but not the control link, and lets it take over only when both links are lost.
Also known as: STONITH, node fencing, fence device, fence agent, power fencing, fabric fencing
Sources
- ClusterLabs, Pacemaker Explained 3.0, chapter 8, Fencing (read 2026-11-16): fencing defined, also known as STONITH; power and fabric fencing; fence devices must not depend on the cluster network or share power with the node they fence; split brain and an IP address brought up on two hosts
- Debian manual page, votequorum(5), corosync 3.1.7 (read 2026-11-16): two_node sets quorum artificially to 1 and enables wait_for_all; the startup race in which nodes still offline are fenced
- Microsoft Learn, Deploy a quorum witness (Windows Server failover clustering) (read 2026-11-16): a disk, file share or cloud witness adds a vote, and the guidance is to always configure a witness
- Juniper Networks, Configure Cluster Failover Parameters (read 2026-11-16): heartbeats every 1,000 ms with a threshold of 3; a secondary that loses the control link but hears the fabric becomes ineligible, then disabled after 180 seconds; both links lost, it becomes primary