I/O fencing
I/O fencing enforces exclusion of a node from shared storage so that recovery cannot be undermined by its continued access.
Failure detection and quorum decisions do not themselves block storage traffic. A fence may act through power control, fabric access or storage-enforced reservations. Its scope must cover the resources and paths used by recovery, and a storage-only fence need not stop the whole host. Use the supported cluster procedure and verify completion before proceeding. NVMe reservations require their own namespace policy and recovery checks, and SCSI fencing commands are not interchangeable with NVMe commands.
Fabric fencing cuts a node's access to a required capability, such as network or shared disk, rather than its power. After the cause is investigated and the node rejoins, some fabric devices need an explicit unfencing action before resources may start there. [1] A multipath reservation agent registers a per-node key on each device and fences by preempting the victim key with PREEMPT AND ABORT under reservation type 5, write exclusive for registrants only. It reports failure if that key is still registered on any device. [2]
Relations
- related
- SCSI persistent reservations, Fencing token, Multipath I/O, SAN, NVMe reservation, NVMe Host Identifier, Lock-delay, Network partition, Split brain, ALUA, Failover, Failback, Frangipani
Advantages
- A storage-enforced fence can stop a node's writes without cutting its power, leaving the host available for investigation. [1]
Limitations
- Quorum normally restricts fencing eligibility, with documented exceptions. Device retries share the action timeout; expiry does not prove successful exclusion, and a multi-step fencing operation can involve several timeouts. [1]
Citations
- ClusterLabs, Pacemaker Explained 3.0: Fencing, including Fencing and Quorum.
- ClusterLabs fence_mpath source and embedded documentation, commit 65a423c846a91deff49271ffaeb8f7d4ed90ce50.
Further reading
Sources & caveats
- cluster-fencing-guide, a cluster manager fencing guide, re-read 2026-10-23 for fabric fencing, unfencing, quorum rules and the reboot timeout and retry defaults.
- multipath-fence-agent, a multipath reservation fence agent, re-read at the pinned commit for registration, reservation type 5, preemption and the verification count.
- A companion analysis on stale writes after a lost heartbeat is listed but not used in prose.
- The nvme-host-identifier entry links here because reservation-based fencing on NVMe acts on the host whose controllers share a Host Identifier. nvme-host-identifier is added to related for the reciprocal relation.
- Pacemaker 3.0 sections 8.11-8.12 rechecked 2026-10-23: separate operation stages and a shared action-time budget do not guarantee successful fencing by a deadline.