Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Changing the default timeout for locked dvPorts

Details

In some cases, creating a host profile with multiple service console network adapters on a vNetwork Distributed Switch prevents you from removing the vNetwork Distribued Switch or associated dvPort groups even after all service console adapters have been removed or migrated from the vNetwork Distributed Switch. This happens when vCenter reserves dvPorts for the service console adapters, but does not receive a connection from the ESX/ESXi host, which causes vCenter to give a Ports in use error when you try to remove the vNetwork Distributed Switch or dvPort group.

Solution

Before you can remove a vNetwork Distribued Switch or dvPort group, all unused dvPort reservations must time out. You can either wait for the default 24-hour timeout period before removing the vNetwork Distributed Switch or dvPort group, or temporarily change the default timeout for dvPorts to free the ports before the default 24-hour timeout period. If you change the default timeout, be sure to change it back after the ports have been freed.
 
To remove a vNetwork Distributed Switch or dvPort group with locked dvPorts
  1. In vpxd.cfg, add the line <vpxd><dvs><portReserveTimeout>10</portReserveTimeout></dvs></vpxd> and save the file.
  2. Restart vCenter. The default timeout is now set to ten minutes.
  3. After the port reservation has timed out, remove the vNetwork Distributed Switch or dvPort group.
  4. Reset the default timout by removing the line you previous added to vpxd.cfg.
  5. Restart vCenter.

Tags

timeout-for-locked-dvport

Keywords

ports, dvports, dvPorts, vNetwork Distributed Switch, dvPort group

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback


Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
Actions