The resource '###' is in use.
Note: In this example, ### is the port-ID in use at that time. This could be any value.
VMware vSphere
In this scenario, the vCenter database will contain a record that indicates that a dvPort with the number '###' is "in use". This is why the vCenter is issuing this error message.
However, when examining the output from the command esxcfg-vswitch -l on the ESXi host, the "in use" value associated with that dvPort "###" may show "0", indicating that it is not currently in use. The vCenter is currently showing a stale entry tied to that dvPort.
The dvPort may be associated with:
The resolution will depend on the type of network connection associated with the dvPort "###" in the error message.
If it is determined that:
1. The dvPort "###" is associated with a virtual machine or a virtual machine template
AND
2. The Management vmkernel interface configured for the host is configured to use a standard switch (or a different vDS than the one in question).
Then follow the steps below:
1. Place the ESXi host in Maintenance Mode
2. Disconnect the ESXi host from vCenter: Home > Hosts and Clusters > Right-click on the ESXi host > Connection > Disconnect
3. Once the host is disconnected, remove the ESXi host from vCenter (which will also remove the ESXi host from any vDS it is connected to): vSphere client > vCenter > Hosts and Clusters icon > Right-click on the ESXi host > Remove from inventory
For all other scenarios, please open a Support Case with Broadcom Support, see Creating and managing Broadcom support cases.