The Risks of High Availability Automation During Network Instability
When network connectivity degrades, HA clusters cannot distinguish between a dead server and a flapping switch port. Learn how split-brain happens in Corosync, Pacemaker, and Proxmox HA, why missing hardware fencing corrupts shared storage, and how to build safer failover architectures.
A three-node Proxmox VE cluster ran without a single unplanned outage for eighteen months, right up until a top-of-rack switch firmware bug started dropping 18% of UDP frames on the cluster VLAN. Not a single hypervisor crashed, power supplies stayed nominal, and every NVMe drive remained healthy. Within ninety seconds, automated high-availability recovery fenced two production hosts, restarted stateful database virtual machines mid-transaction, and turned a minor switch hiccup into a four-hour recovery.
High-availability automation is built as insurance against dead hardware. What catches operations teams off guard in production is that Linux cluster managers rarely fail during clean server power-offs; they fail most destructively during switch brownouts, asymmetric VLAN loss, and congested links.
Why HA Clusters Confuse Packet Loss With Dead Hardware
Every distributed cluster stack on Linux, including Corosync with Kronosnet (knet), Pacemaker, Patroni, and Proxmox pve-ha-manager, faces an unavoidable network constraint. Across an IP fabric, a server whose motherboard just lost power looks identical to a live server whose UDP heartbeat frames are stuck behind a flapping LACP bond, spanning-tree reconvergence, or an unthrottled backup saturating a shared 10 GbE NIC.
Corosync nodes exchange UDP heartbeat tokens (port 5405 by default) every few hundred milliseconds. When valid tokens fail to arrive within the configured token window (typically 1000 to 3000 milliseconds), the cluster layer removes that peer from active membership and recalculates quorum.
During genuine hardware failure, fast detection keeps downtime short. During brownouts where 15% to 30% of frames drop intermittently, rapid automation creates its own outage:
- Nodes drop out and rejoin the ring repeatedly, triggering premature VM evacuations.
- Automated live migrations and Ceph backfill storms saturate degraded switch links even further.
- Isolated hosts continue flushing guest disk caches locally while peer nodes prepare replacement instances.
Even mature scheduling features like Proxmox VE 9.2's Dynamic Load Balancer depend on clean Corosync rings and predictable migration bandwidth. Automating failover atop a lossy network multiplies instability rather than hiding it.
Anatomy of a Split-Brain Storage Disaster
The most expensive failure mode in automated HA is split-brain on shared or replicated storage. Watch what happens when an administrator sets stonith-enabled=false in Pacemaker during initial setup, or runs dual-primary DRBD (allow-two-primaries), shared iSCSI/FC LVM, or NFS virtual disks without hardware fencing:
- 00:00 - Node A runs a production PostgreSQL VM on a shared SAN volume (or unisolated DRBD resource).
- 00:04 - A switch line card resets, severing Node A's Corosync VLAN for six seconds while its storage path stays online.
- 00:07 - Nodes B and C retain
2of3quorum votes, declare Node A dead, and boot a second copy of the same VM disk on Node B without cutting Node A's power. - 00:08 - Two independent QEMU processes hold separate kernel page caches and write conflicting
ext4orXFSmetadata blocks to identical disk sectors at the same instant.
Within seconds, filesystem journals and database write-ahead logs are destroyed. Ceph RBD avoids dual-write corruption better than raw iSCSI because ceph-osd enforces epoch maps and client blocklisting when quorum holds, yet flapping cluster networks still stall Ceph placement groups (peering / slow ops) and freeze guest I/O across every VM simultaneously. Recovering from un-fenced dual mounts means restoring from offsite backups or performing deep surgical work like recovering a broken KVM virtual machine via chroot.
Checking Quorum and Redundant Corosync Rings
Before enabling HA on any workload, verify vote counts and physical link redundancy using pvecm status and corosync-quorumtool:
pvecm status | grep -A 8 "Votequorum information"
# Votequorum information
# ----------------------
# Expected votes: 3
# Highest expected: 3
# Total votes: 3
# Quorum: 2
# Flags: Quorate Qdevice
corosync-quorumtool -s
# Quorum information
# ------------------
# Quorum provider: corosync_votequorum
# Nodes: 3
# Ring ID: 1.8a4
# Quorate: Yes
#
# Membership information
# ----------------------
# Nodeid Votes Qdevice Name
# 0x00000001 1 A,V,NMW 10.20.10.11 (local)
# 0x00000002 1 A,V,NMW 10.20.10.12
# 0x00000003 1 A,V,NMW 10.20.10.13
# 0x00000000 1 Qdevice
Next, confirm with corosync-cfgtool -s that Corosync has at least two physically separate Kronosnet (knet) rings on distinct NICs and switches. Never run cluster heartbeats over a single interface shared with Ceph replication or nightly backups. In /etc/pve/corosync.conf (or /etc/corosync/corosync.conf), assign explicit link priorities and widen token timeouts if switches experience occasional microbursts:
totem {
cluster_name: prod-virt-01
config_version: 6
interface {
linknumber: 0
knet_link_priority: 100
}
interface {
linknumber: 1
knet_link_priority: 50
}
token: 5000
token_retransmits_before_loss_const: 6
transport: knet
}
On two-node clusters, deploy corosync-qdevice (corosync-qnetd on an external third witness host) so losing one node or cable leaves a clear 2 of 3 majority instead of forcing unsafe two_node: 1 tie-breakers.
Hardware IPMI Fencing (STONITH) and Watchdogs
Quorum decides which partition may run workloads; fencing (STONITH) guarantees the unreachable host cannot write another byte to shared storage. Production clusters rely on two independent mechanisms:
- Out-of-band power fencing (
fence_ipmilan, iDRAC, iLO, or switched PDUs): Surviving quorum nodes instruct the suspect host's BMC to cut chassis power (off) and confirm power-down status before starting VMs elsewhere. - Hardware watchdog self-fencing (
/dev/watchdog+watchdog-mux): Proxmox VE pairspve-ha-lrmwith hardware watchdog timers (iTCO_wdtor IPMI BMC timers; avoid software-onlysoftdogif kernel I/O hangs). If a host loses quorum while holding active HA guests, it stops updating/dev/watchdogand hard-resets the motherboard before peer nodes take over locks.
Avoid a classic wiring mistake: connecting IPMI / iDRAC interfaces to the same top-of-rack switch carrying your Corosync VLAN. When that switch drops packets, Pacemaker's IPMI fence call fails over the exact same broken switch, stalling recovery completely. Wire BMC ports to a dedicated management switch on separate power.
Architecture Comparison Under Network Instability
| Dimension | Active/Active (Ceph / Galera / Sync Quorum) | Active/Passive (Fenced Shared HA) | Deliberate DR Promotion (Async Standby) |
|---|---|---|---|
| Network baseline | Sub-millisecond RTT, near-zero loss, dual redundant switches | Dual-ring heartbeat + isolated out-of-band fencing | Tolerates WAN jitter, packet loss, and brief drops |
| Impact of 15% packet loss | Cluster-wide write stalls, OSD peering churn, cascading latency | Risk of false failover or watchdog reset if token is tight | Primary continues serving; async replication lag grows briefly |
| Storage corruption risk | Low (quorum freezes writes), high availability loss during freeze | Severe if hardware STONITH or SCSI-3 PR fencing is missing | Minimal when failover requires explicit operator promotion |
| Typical recovery time | Seconds on healthy fabric | 60 to 180 seconds (watchdog reset + guest boot) | 5 to 15 minutes (verification + DNS or VIP switch) |
| Best workload fit | Redundant dual-switch 25/100 GbE enterprise racks | Single-datacenter clusters with tested IPMI/watchdog fencing | Cross-datacenter VPS setups, budget racks, or lossy links |
Practical Engineering Rules for Safer HA
- Audit switch packet loss before turning HA on. Run
mtr --udpand inspect switch port CRC and discard counters for a full week before marking stateful VMs as HA-managed. - Test fencing by pulling physical cables. Disconnect
link 0during a maintenance window to verify seamlessknetfailover tolink 1, then disconnect both rings on one node to verify hardware watchdog or IPMI power-off fires cleanly before guests start elsewhere. - Prefer application-level async replication over stretched clusters on questionable links. PostgreSQL streaming replication or ZFS
syncoidsnapshots with human-verified promotion preserve data integrity every time, whereas premature failover automation turns temporary network blips into storage outages.