vSAN Cluster Partitioning: VM Restarts During Network Upstream Failures.
search cancel

vSAN Cluster Partitioning: VM Restarts During Network Upstream Failures.

book

Article ID: 438968

calendar_today

Updated On:

Products

VMware vSAN VMware vSphere ESXi

Issue/Introduction

During physical network maintenance or an upstream switch upgrade (e.g., Cisco Core), VMware Cloud Foundation (VCF) or vSAN clusters experience unexpected virtual machine restarts and vSphere HA triggers. 

Symptoms:

  • Virtual machines on vSAN cluster may show I/O errors at OS layer and read-only filesystem.
  • vCenter events: vim.event.NotEnoughResourcesToStartVmEvent. (Reason: The host(s) cannot access virtual machine components).

  • vSAN UI: Stretched clusters report a loss of connectivity to the Witness host or data nodes.
  • Log Evidence: In /var/run/log/vsansystem.log, rapid membership fluctuations are seen as the node count drops despite physical links remaining "Up":

    2026-04-17T00:31:57.449Z ... nodeCount: 17 2026-04-17T00:32:48.046Z ... nodeCount: 3 (Partition detected)

  • Host State: Physical uplinks on the ESXi host show a state of "Up" but no vSAN traffic is passing.

Example:

    • On vSAN Host, /var/run/log/vbd.log show the below link flap event from when hosts may failed to communicate with vSAN nodes on vSAN vmkernel.. 

2026-05-09T19:16:59.011Z: [netCorrelator] 33953414822407us: [vob.net.vmnic.linkstate.up] vmnic vmnic0 linkstate up - vSAN communication stopped when we see the flap

    • At the same time, /var/run/log/vmkernel.log would show the host lost contact with leader.

2026-05-09T19:17:06.557Z cpu92:2099188)CMMDS: CMMDSAgentlikeCheckNode:3118: 52f32996-2fc9-c8d3-7ac2-#####: Lost contact with leader

    • However, the actual link would report down event later.

2026-05-09T19:21:38.260Z: [netCorrelator] 33953694048827us: [vob.net.vmnic.linkstate.down] vmnic vmnic2 linkstate down

Environment

  • VMware Cloud Foundation (VCF) 9.0.x

  • VMware vSAN 8.0.x/9.0.x (OSA and ESA)

  • Cisco Core / Dell TOR Switching environment.

Cause

The ESXi hosts are configured with Link Status Only failure detection. This mechanism only detects failures at the immediate physical point-to-point connection (ESXi to the Access/TOR switch). If a failure occurs upstream (e.g., between the TOR and the Core switch), the ESXi host perceives the local link as "Up" and continues to send traffic into a "black-hole". This leads to vSAN heartbeat loss, cluster partitioning, and HA isolation events.

Resolution

To prevent "black-hole" failures, implement hardware-based link state synchronization on the physical switch infrastructure:

  1. To prevent a "premature failback" where ESXi moves traffic back to a primary uplink before the switch's control plane (STP/VLANs) has fully converged, the following teaming policy is recommended for all vSAN-tagged VMkernel ports:

    • Load Balancing Policy: Use "Route based on originating virtual port" or "Route based on physical NIC load" (depending on your vDS configuration).

    • Network Failure Detection: Link status only.

    • Failback: No (Crucial for maintenance windows).

    • Failover Order: Ensure you have a clear Active/Standby or Active/Active priority.

    Technical Justification: Setting Failback: No ensures that once a failover to a healthy secondary switch occurs, the traffic remains on that stable path even if the primary link reports a physical "Link Up" state during its boot sequence. This prevents a "race condition" where the ESXi host's sub-second link detection outpaces the physical switch's multi-second port initialization, effectively avoiding a cluster partition and subsequent HA VM restarts.

  2. Configure Link State Tracking:

    • Cisco Switches: Implement link-state track. Bind the state of the Core-facing (upstream) ports to the Host-facing (downstream) ports.

    • Dell Switches: Implement Link Dependency.

    • Result: If the upstream link fails, the switch automatically disables the host-facing port, forcing the ESXi host to detect a "Link Down" state.
  3. Verify ESXi Failover:

    • Once the switch disables the port, the ESXi Link Status Only mechanism will trigger a failover to a surviving redundant uplink.

  4. Enable PortFast: Ensure PortFast or Edge Port is enabled on all host-facing ports so that the link returns to a forwarding state immediately upon recovery, avoiding 30-second Spanning Tree (STP) delays.

  5. Audit Health Checks: Before and after maintenance, verify vSAN health checks for "Smallest MTU" and "Network Latency" are green.

Additional Information


Comparison of Detection Methods:
 
FeatureLink Status OnlyBeacon Probing
Detection BasisPhysical NIC Link StateBroadcast packets (beacons)
Upstream DetectionNo (Requires Link State Tracking)Yes
LACP SupportYes (Required)No
vSAN RecommendedYes

No (High risk of split-brain)

Note: Beacon Probing is discouraged for vSAN due to risks of MAC flapping and "VM freezing" during component re-evaluation. Hardware-based Link State Tracking is the preferred enterprise solution.


Related KBs: