Few ESXi hosts were removed from the cluster for hardware maintenance activities and unable to re-add them to the same cluster and observed below error for two VDS configured on the cluster
vCenter Server 7.0 Update 3t build 24322018
Vmware ESXi 7.0.3 , 24585291
NSX 3.2.2.0.0.20737185
TCP 2.2
The ESXi host's local networking configuration has lost synchronization with the vCenter Server database. An orphaned Distributed Virtual Switch (DVS) proxy switch remains active on the host. vCenter Server is prevented from automatically removing this stale proxy switch because the host's management network and physical uplink are still actively bound to it.
To resolve this issue, the management network and uplinks must be manually migrated to a standard vSwitch via the ESXi command line. This releases the lock on the stale DVS, allowing it to be removed.
Prerequisites: Ensure out-of-band management access (e.g., ILO, iDRAC, IMM) to the ESXi host console, as network connectivity will drop during these steps.
esxcli system coredump network get -- to see if vmk0 is listed as configures network interface and if the service is enabled esxcli system coredump network set --enable false --- to disable the service esxcfg-vswitch -lesxcli network ip interface remove --interface-name=<VMK_ID>esxcfg-vswitch -Q <VMNIC_ID> -V <dvport_ID> <DVS_NAME>esxcli network vswitch standard uplink add --uplink-name=<VMNIC_ID> --vswitch-name=<STANDARD_VSWITCH_NAME>esxcli network ip interface add --interface-name=<VMK_ID> --portgroup-name="<PORTGROUP_NAME>"esxcli network ip interface ipv4 set --interface-name=<VMK_ID> --ipv4=<IP_ADDRESS> --netmask=<NETMASK> -g=<GATEWAY_IP> --type=staticesxcfg-vswitch -lIf required enable the coredump network configuration after the ESXi host is successfully added to the cluster
esxcli system coredump network set --enable true -- to enable the service if the target server Ip address and VMkernel interface are configured already.For any additional information refer KB 431992