VMware Cloud Community
PercaFluviatili
Enthusiast
Enthusiast

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

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?

10 Replies
rcporto
Leadership
Leadership

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

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
Reply
0 Kudos
PercaFluviatili
Enthusiast
Enthusiast

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)

1.JPG2.JPG3.JPG4.JPG5.JPG6.JPG7.JPG

Reply
0 Kudos
rcporto
Leadership
Leadership

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

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
Reply
0 Kudos
PercaFluviatili
Enthusiast
Enthusiast

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

8.JPG9.JPG

Reply
0 Kudos
rcporto
Leadership
Leadership

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

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
Reply
0 Kudos
PercaFluviatili
Enthusiast
Enthusiast

This is little embarrassing.

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

Thanks for the help rcporto!

Reply
0 Kudos
bmontalbanpm
Contributor
Contributor

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.

IETRT6
Contributor
Contributor

Any solution?

Reply
0 Kudos
Auxmann
Contributor
Contributor

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...

Reply
0 Kudos
grmccauley
Contributor
Contributor

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!!!

Reply
0 Kudos