The vSphere Distributed Switch configuration on some hosts differed from that of the vCenter Server
VMware vCenter Server
VMware ESXi
The "Out of Sync" status is caused by a state mismatch between the vCenter Server database and the host proxy switch regarding specific Virtual Distributed Switch (VDS) ports.
The discrepancy arises because the VMs connected to the affected dvPorts are hosted on an inaccessible datastore. Because the VMs are inaccessible, the ESXi host cannot correctly fetch or synchronize the dvPort information for those specific ports, leading to a mismatch between the vCenter Server's central VDS and the ESXi host's local proxy VDS.
To resolve the synchronization error and clear the alarm, perform one of the following actions:
Option 1: Resolve Datastore Inaccessibility
Option 2: Unregister the Inaccessible Virtual Machines (If the VMs are no longer needed or the datastore cannot be recovered immediately)