This procedure requires a defined maintenance window as it involves VM downtime may include vCenter and host maintenance mode.
Warning: Replacement of both the switches for vSAN clusters would cause the hosts to get into network partition state and recovering when they were brought online with new switches. It is recommended to have a full backup of the data for the required VMs.
NOTICE: If vCenter is sitting on the same vSAN cluster which is undergoing the complete network change, it may require all the networking to be migrated to Standard vSwitch.
1. Pre-Maintenance Preparation
- Cluster Health: Verify the vSAN cluster is healthy with no active resyncs or degraded objects.
- Management Prep: Confirm ESXi vmk0 (Management) is configured with VLAN ID 0 (untagged). This ensures it inherits the new Native VLAN from the physical switch port immediately upon repatching.
2. Workload and Hypervisor Preparation
- vSphere DRS: Set to Manual.
- vSphere HA: Disable to prevent false isolation responses during the network cutover.
- VM Shutdown: Gracefully power off all guest Virtual Machines.
- vCLS Retreat Mode: Enable Retreat Mode to avoid manual power-off issues with vCLS VMs. (Navigate to Cluster > Configure > vSphere Cluster Services > Edit Mode > Retreat Mode).
- Maintenance Mode: Place all hosts into Maintenance Mode with the 'No Data Migration' option one at a time.(Any vSAN objects residing on the affected ESXi host that lack redundancy (e.g., FTT=0) will immediately become inaccessible).
3. Physical Network Cutover
- Shutdown Ports: Shutdown all the switch ports on legacy switches.
- Change Switches: Detach the cables for the existing switches and attach the new switches with fully configured.
4. vSphere Network Reconfiguration
- Verify connectivity for Management network: Verify the management network on each hosts and validate vCenter is able to talk to Hosts.
- Port Group Updates: When there is change of VLAN for other networks than management, while hosts are in Maintenance Mode, update the VLAN IDs for the Distributed Port Groups on the Distributed Virtual Switch (DVS) to match the new physical switch mapping.
- Example Mapping:
- Legacy VLAN 631 → New VLAN 3004
- Legacy VLAN 744 → New VLAN 2001
5. Validation and Recovery
- Host Connectivity: Verify hosts automatically reconnect to vCenter via the new Native VLAN.
- vSAN Health: From the ESXi CLI, verify connectivity using:
vmkping -I vmkX -s 8972 -d [Target_IP] - Health Check: Run esxcli vsan health cluster list to ensure no network partitions exist.
- Exit Maintenance: Take hosts out of Maintenance Mode.
- Finalize: Re-enable HA, set DRS to Fully Automated, and set vCLS back to System Managed mode.