When you select the Summary tab in vCenter when focused on a vDS in the Networking view, "The vSphere Distributed Switch configuration on some hosts differed from that of VMware vCenter" is often referred to as an "Out of Sync" condition.
The "Out of Sync" condition means that one or more database tables associated with the affected vDS within the vCenter database are inconsistent with one another, regarding one or more fields and/or rows in one or more of the tables.
This is often referred to as a "vDS" "Out of Sync" condition.
Symptoms:
Summary tab for a vSphere Distributed Switch (vDS) shows: The vSphere Distributed Switch configuration on some hosts differed from that of the vCenter Server.Rectify option is greyed out or fails to clear the alert."Cannot complete a vSphere Distributed switch operation for one or more host members"VCDB) and the ESXi host's proxy copy of the vDS configuration become inconsistent. This can be caused by:dvPort.The solution is to get the database tables back in a logically consistent state within the vCenter database.
Before performing database scripts, verify if the issue is caused by a stale port reference:
vCenter > Networking > vDS > Ports.Connectee column. If a VM is listed, remove the NIC from that VM and add a new NIC associated with the port.Statistics tab for the affected Port Group and toggle Auto-refresh to force a synchronization task.If Phase 1 does not resolve the alert, follow the scripted remediation provided below.
STEPS:
dvportOutOfSyncSupportV4.tar file (attached to this KB) into the /root directory of the vCenter server. If the vCenter server is part of a linked mode configuration, this need only be done on the vCenter where the issue is observed./root.dvportOutOfSyncSupportV4.tar file by the command:tar xf dvportOutOfSyncSupportV4.tarshell at the initial command prompt if needed).service-control --stop vmware-vpxd
service-control --stop vmware-content-library/root, then change ("cd") into the directory dvportOutOfSyncSupport that was created by the "untar" command in Step 2../dvportOutOfSyncSupport.sh"overallStatus": "Bad" is the expected confirmation of this issue.dvportOutOfSyncSupport that was created by the "untar" command in Step 2../workaround.shrebootvCenter > networking icon View > vDS > Summary)IMPORTANT NOTES: