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:
- Restart Switch A.
- Wait for Switch A to come completely back online.
- Verify via ESXi shell (
esxcli vsan network list) that vSAN is healthy and traffic is flowing. - 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.
- Power Off VMs: Power of all running VMs.
- Maintenance Mode: Place all hosts into Maintenance Mode with the "No Action" (no data migration) policy:
esxcli system maintenanceMode set -e true -m noAction - Restart Switches: Perform the network maintenance.
- 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).