VMware vSphere

 View Only
  • 1.  The resource '24' is in use. But its not?! Cant delete VDSwitch.

    Posted Jun 24, 2014 06:23 PM

    First of, I am very new to vCenter...

    I have created a dSwitch, and when I am going to delete it and start over I am getting this error:

    The resource '24' is in use.

    vDS ProductiondvSwitch port 24 is reserved by entity esxi1.xyz.local Virtual NIC vmk0, type:hostVmkVnic

    Port 24 is my dManagement Port group.

    When I go to Distributed Switch /.... / Manage / Ports I only see my Port gorups created and its "Blank".

    When I go to the Settings tab. I see that the Switch dont have any NIC on its uplinks.

    I can delete all Port Groups BUT dManagement.

    All NICs stand Unused on dManagement.

    The hosts are disconnected...

    Anyone who can assist me?



  • 2.  RE: The resource '24' is in use. But its not?! Cant delete VDSwitch.

    Posted Jun 24, 2014 06:49 PM

    The vmk0 are still on the distributed switch port group ? If yes, migrate the vmk0 to a standard switch port group.



  • 3.  RE: The resource '24' is in use. But its not?! Cant delete VDSwitch.

    Posted Jun 24, 2014 07:09 PM

    Adding some images of my configuration. Maybe helps out to find out what I am making wrong.

    I cant see vmk0 on any distributed switch in my setup. If I read it correctly vmk0 is connected to vSwitch1 and not a VDSwitch? (see last images)



  • 4.  RE: The resource '24' is in use. But its not?! Cant delete VDSwitch.

    Posted Jun 24, 2014 07:19 PM

    Try remove the host from Distributed Switch and then delete de vDS.



  • 5.  RE: The resource '24' is in use. But its not?! Cant delete VDSwitch.

    Posted Jun 24, 2014 08:19 PM

    I have tried that. And there is nothing to remove, but I can add the hosts back in if I want to.



  • 6.  RE: The resource '24' is in use. But its not?! Cant delete VDSwitch.

    Posted Jun 24, 2014 09:01 PM

    Check if the solution provided in this another thread helps you: Re: Unable to Remove vDS from vCenter 5.5



  • 7.  RE: The resource '24' is in use. But its not?! Cant delete VDSwitch.

    Posted Jun 24, 2014 09:01 PM

    This is little embarrassing.

    I restarted the vCenter server, and after that I was able to remove the DSSwitch.

    Thanks for the help rcporto!



  • 8.  RE: The resource '24' is in use. But its not?! Cant delete VDSwitch.

    Posted Jun 08, 2018 02:09 PM

    Yes. This solution also worked for me. Something probably was stuck/cached regarting ports in use. I rebooted the Vcenter Appliance and was able to delete the distributed port group, then the whole distributed switch soon after.

    Yes, I did remove all my hosts and vms from the distributed switch beforehand.

    I was on Vsphere 6.5 fyi...



  • 9.  RE: The resource '24' is in use. But its not?! Cant delete VDSwitch.

    Posted Jul 13, 2017 05:31 PM

    I had a similar issue in my new 6.5 deployment. After removing a host and migrating VMK adapters, it still showed that there were active ports. My workaround was to edit the port group and block all ports. That released the ghost "active" ports and then I was able to delete the port group and VDswitch.



  • 10.  RE: The resource '24' is in use. But its not?! Cant delete VDSwitch.

    Posted Feb 26, 2019 03:47 AM
    I had a similar issue in my new 6.5 deployment. After removing a host and migrating VMK adapters, it still showed that there were active ports. My workaround was to edit the port group and block all ports. That released the ghost "active" ports and then I was able to delete the port group and VDswitch.

    This worked for me!!!



  • 11.  RE: The resource '24' is in use. But its not?! Cant delete VDSwitch.

    Posted Jan 18, 2018 02:27 PM

    Any solution?