Skip to main content
RunBook Academy

← All runbooks in Linux

critical riskcluster affecting~30 min

Runbook: Fencing failure - recover a fenced node

1 · Prerequisites

Confirm every item is in place before any state change.

2 · Pre-checks

Read-only diagnostic commands. If any of these don't match expected output, stop and investigate further.

  • · Verify out-of-band access to the cluster
  • · Verify the BMC / iLO / iDRAC credential file exists and is mode 0600
  • · Identify which STONITH device covers the affected node, and record whether it currently responds (ipmitool ... chassis power status). A non-responsive device is the expected finding in this runbook, not a reason to stop

3 · Procedure

Execute each step in order. Verify the expected output of a step before moving to the next.

  1. 1Identify which node was fenced
  2. 2Check the STONITH device and logs
  3. 3Determine if the fencing was correct or accidental
  4. 4If accidental: investigate the cause (e.g. network blip, false positive)
  5. 5Power on the node manually via the BMC
  6. 6Wait for the node to rejoin the cluster
  7. 7Verify resources are correctly placed
  8. 8Document the incident

4 · Verification

Confirm the procedure actually fixed the problem.

  • Node has rejoined the cluster
  • STONITH device is functional
  • Cluster status is healthy
  • No data corruption

5 · Rollback

If verification fails, undo the procedure in reverse order.

  • If node does not rejoin, investigate the cluster logs
  • Do NOT force quorum until the other partition is PROVEN dead. Proof means: the BMC reports chassis power off for every node in the other partition, or shared-storage reservations confirm it has released them. Forcing quorum against a live partition creates split brain and corrupts data
  • Only once proven: sudo pcs quorum unblock --yes (this starts resources on this partition and is irreversible if the other partition is alive)
  • Verify with pcs quorum status and pcs status that exactly one partition owns each resource
  • Re-add the node to the cluster

6 · Escalation

When the runbook isn't enough, contact:

  • · If STONITH device is broken, escalate to hardware team
  • · If fencing is happening repeatedly, escalate to cluster team
  • · If data corruption is suspected, escalate to security and data teams

This runbook recovers from a fencing failure. Fencing can fail because of a broken STONITH device, a false positive, or a network issue. The recovery is to bring the node back into the cluster.

When to use this runbook

Use this runbook when:

  • A node is fenced and will not rejoin.
  • STONITH device is broken.
  • Fencing is happening repeatedly without quorum loss.

Inputs

Gather before starting:

  • Cluster name and node names.
  • The BMC / iLO / iDRAC credential file, /etc/pacemaker/bmc-pw, mode 0600 and owned by root. Not the password itself.
  • Network access to the BMC.
  • Recent cluster logs.

Procedure

Step 1: Identify the fenced node

Read-only / Safepcs status
# Cluster status
pcs status

# Or corosync status
corosync-cmapctl | grep members

Identify which node is offline.

Step 2: Check STONITH logs

Read-only / Safejournalctl
sudo journalctl -u pacemaker | grep -i stonith
sudo journalctl -u corosync | grep -i member

Look for:

  • Which device was used.
  • Why it triggered.
  • Errors.

Step 3: Check the STONITH device

Read the BMC password from the root-only credential file the cluster already uses. Do not type -P <password>: mid-incident is exactly when a password gets pasted into a shared terminal, where it enters ~/.bash_history and is visible in ps output to everyone else on the box.

Service impact possibleipmitool
# Test the device manually
sudo ipmitool -I lanplus -H <bmc-ip> -U admin \
  -f /etc/pacemaker/bmc-pw chassis power status

If the file is missing on this node, create it here rather than falling back to -P:

Configuration changeinstall
sudo install -d -m 0700 /etc/pacemaker
sudo install -m 0600 /dev/null /etc/pacemaker/bmc-pw
read -rs -p 'BMC password: ' BMC_PW; echo
printf '%s' "$BMC_PW" | sudo tee /etc/pacemaker/bmc-pw >/dev/null
unset BMC_PW

If the device is unresponsive:

  • Network issue (can the cluster reach the BMC?).
  • Credentials issue.
  • BMC hang (may need to be rebooted).

Step 4: Power on the node manually

Service impact possibleipmitool
sudo ipmitool -I lanplus -H <bmc-ip> -U admin \
  -f /etc/pacemaker/bmc-pw chassis power on

If the device is broken, use out-of-band access (rack PDU, cloud console, etc.) to power cycle.

Step 5: Wait for the node to rejoin

Read-only / Safesleep
sleep 60
pcs status

The node should rejoin the cluster once it is up and corosync is running.

Step 6: Verify

Read-only / Safepcs status
# Cluster status
pcs status

# Resource status
pcs resource status

# Quorum
pcs quorum status

pcs resource show was removed in pcs 0.11. Use pcs resource status for state and pcs resource config for configuration; the same split applies to pcs stonith and pcs constraint.

Verify:

  • All nodes online.
  • Quorum is healthy.
  • Resources are correctly placed.

Step 7: Document

In the incident log:

  • Which node was fenced.
  • Why (false positive, device failure, real failure).
  • Recovery time.
  • Improvements (replace STONITH device, fix false positive cause, etc.).

If the cluster is inquorate and will not start resources

This is the point where an operator, under pressure, searches for “force quorum” and finds pcs quorum unblock. Read this before running it.

Common patterns

SymptomCauseResolution
Node does not rejoinSTONITH device brokenRepair device, manual power on
Node repeatedly fencedFalse positive in STONITHInvestigate cause (network blip, etc.)
STONITH device unresponsiveNetwork issueRestore network, retry
Data corruption suspectedMultiple failuresEscalate to data team

Knowledge check

Knowledge check · 3 questions

  1. Q1. What is the first step when a node is fenced and not rejoining?

  2. Q2. Repeated fencing always indicates a hardware failure.

  3. Q3. Which of the following are valid STONITH failure causes? Select all that apply.

Passing score: 75%. Answers are checked in this browser.

References

  1. Pacemaker Explained - Fencing
  2. Pacemaker Administration - troubleshooting