Infrastructure Notes

The Risks of High Availability Automation During Network Instability

By Nikhil Bhangale··7 min read

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.

The Risks of High Availability Automation During Network Instability

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:

  1. 00:00 - Node A runs a production PostgreSQL VM on a shared SAN volume (or unisolated DRBD resource).
  2. 00:04 - A switch line card resets, severing Node A's Corosync VLAN for six seconds while its storage path stays online.
  3. 00:07 - Nodes B and C retain 2 of 3 quorum votes, declare Node A dead, and boot a second copy of the same VM disk on Node B without cutting Node A's power.
  4. 00:08 - Two independent QEMU processes hold separate kernel page caches and write conflicting ext4 or XFS metadata 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:

bash · terminal
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:

output / text
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 pairs pve-ha-lrm with hardware watchdog timers (iTCO_wdt or IPMI BMC timers; avoid software-only softdog if kernel I/O hangs). If a host loses quorum while holding active HA guests, it stops updating /dev/watchdog and 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

DimensionActive/Active (Ceph / Galera / Sync Quorum)Active/Passive (Fenced Shared HA)Deliberate DR Promotion (Async Standby)
Network baselineSub-millisecond RTT, near-zero loss, dual redundant switchesDual-ring heartbeat + isolated out-of-band fencingTolerates WAN jitter, packet loss, and brief drops
Impact of 15% packet lossCluster-wide write stalls, OSD peering churn, cascading latencyRisk of false failover or watchdog reset if token is tightPrimary continues serving; async replication lag grows briefly
Storage corruption riskLow (quorum freezes writes), high availability loss during freezeSevere if hardware STONITH or SCSI-3 PR fencing is missingMinimal when failover requires explicit operator promotion
Typical recovery timeSeconds on healthy fabric60 to 180 seconds (watchdog reset + guest boot)5 to 15 minutes (verification + DNS or VIP switch)
Best workload fitRedundant dual-switch 25/100 GbE enterprise racksSingle-datacenter clusters with tested IPMI/watchdog fencingCross-datacenter VPS setups, budget racks, or lossy links

Practical Engineering Rules for Safer HA

  1. Audit switch packet loss before turning HA on. Run mtr --udp and inspect switch port CRC and discard counters for a full week before marking stateful VMs as HA-managed.
  2. Test fencing by pulling physical cables. Disconnect link 0 during a maintenance window to verify seamless knet failover to link 1, then disconnect both rings on one node to verify hardware watchdog or IPMI power-off fires cleanly before guests start elsewhere.
  3. Prefer application-level async replication over stretched clusters on questionable links. PostgreSQL streaming replication or ZFS syncoid snapshots with human-verified promotion preserve data integrity every time, whereas premature failover automation turns temporary network blips into storage outages.
#High Availability#Networking#Failover#Disaster Recovery
← Back to all posts

Related Articles

Browse all articles →
Infrastructure Notes12 min read

Moving to a CDN Without Overwhelming Your Origin (or Blocking Googlebot)

Learn how to migrate to a CDN like Cloudflare without triggering cache-miss storms on your Linux origin, breaking real visitor IPs, or accidentally blocking Googlebot.

Read article →
Infrastructure Notes11 min read

Microsoft Outlook Outage November 2026: What Broke, Who Was Hit, and How to Respond

How the November 2026 Exchange Online cascading server failure appeared on downstream Linux mail relays, with hands-on Postfix transport throttling, cPanel Exim triage, swaks diagnostics, and DKIM queue safety.

Read article →
Infrastructure Notes7 min read

How to Handle a SYN Attack on a Hosting Server Without Taking Down the Customer Website

When a SYN flood hits one customer IP, null routing stops the attack but also takes the site offline. Here's a practical hosting workflow: confirm the attack, protect first, migrate when needed, and only blackhole as a last resort.

Read article →
Chat on WhatsApp