Precautions and Procedures for Restarting Network Switches in a vSAN Environment
search cancel

Precautions and Procedures for Restarting Network Switches in a vSAN Environment

book

Article ID: 440335

calendar_today

Updated On:

Products

VMware vSAN VMware vSphere ESXi

Issue/Introduction

Symptoms

  • Management IP connectivity for one or more vSAN hosts is unavailable.

  • vSAN and vMotion networks remain functional, and virtual machines (VMs) are operational.

  • vCenter Server may show hosts as "Disconnected" or "Not Responding."

  • Network troubleshooting requires a physical switch restart or a stack reboot.

Environment

VMware vSAN 8.x

Cause

  • Management connectivity loss is typically caused by upstream physical switch configuration issues, hardware failure, or firmware hangs. While vSAN traffic is separate, a switch restart can inadvertently impact the storage fabric if the environment uses a converged network design.

Resolution

1. Pre-Check: Identify Network Architecture

Before restarting any hardware, determine if your environment uses Dedicated or Converged switches.

  • Dedicated Management Switches: Low risk. Restarting these will only impact vCenter management connectivity.
  • Converged Switches: High risk. These switches carry Management, vSAN, and VM traffic. A simultaneous reboot of both switches in a cluster will break the vSAN storage fabric, causing VMs to freeze or crash.

2. Procedures for Restarting Switches

Scenario A: Redundant Converged Switches (ToR/Stack)

  • Do not restart both switches or the entire stack simultaneously.
  • Verify Redundancy: Use Out-of-Band management (iLO/iDRAC) to access the ESXi CLI. Run esxcli network nic list to ensure uplinks are active on the redundant switch.
  • Rolling Restart:
    1. Restart Switch A.
    2. Wait for Switch A to come completely back online.
    3. Verify via ESXi shell (esxcli vsan network list) that vSAN is healthy and traffic is flowing.
    4. Only after Switch A is fully functional, proceed to restart Switch B.

Scenario B: Non-Redundant Switches If the network fabric must go down entirely, you cannot leave VMs running.

  1. Power Off VMs: Power of all running VMs.
  2. Maintenance Mode: Place all hosts into Maintenance Mode with the "No Action" (no data migration) policy: esxcli system maintenanceMode set -e true -m noAction
  3. Restart Switches: Perform the network maintenance.
  4. Recovery: Once network connectivity is restored, exit Maintenance Mode and power on VMs.

3. Precautions

  • vSphere HA: Ensure vSphere HA is monitored. If a host loses management and vSAN connectivity simultaneously, HA may attempt to restart VMs on other nodes, leading to unplanned downtime.
  • Management Agents: If hosts do not reconnect to vCenter after a management switch restart, restart the management agents via the DCUI or CLI (/etc/init.d/hostd restart and /etc/init.d/vpxa restart).