when I run esxcfg-vswitch -l I get the following: (you can see that pesky DVPort ID 1421 claims to be in use... How do I get rid of that?)
DVS Name Num Ports Used Ports Configured Ports Uplinks
dvSwitch 256 2 256
DVPort ID In Use Client
Have you tried deleting the vDS using CLI? Sometimes there's just something hanging or buggy, leaving crap behind at your ESX server.
I'll be hearing from you!
If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!
You probably managed to remove vDswitch and port group from "vCenter -> Home -> Inventory -> Networking" but I doubt it will automatically remove your existing "virtual port" (vmkernel).
Have you check if anything left behind under "vCenter -> ESX host -> Configuration -> Network -> Distributed Switch -> Managed Adapter?
rbos3 - I'm not all to familiar with how to remove vDS using the CLI, I was trying to search google but came up empty handed. Any ideas on how I can go about doing that?
athlon_crazy - Under the host config for the vDS it states "No physical adapters from this host are connected to this distributed virtual switch.
As well, before I removed anything, I moved all Service Consoles and vmk's back to the vSwitch0 on each host.
This is still a problem. For some reason I just can't get it to drop that port.
The dvSwitch will not remove this host...
Guess I will have to schedule some downtime to reboot this ESX host. Any other ideas?
I experienced the exact same problem, but was able to remove the dvSwitch after I had removed any trace of it from the Virtual Machines. Thoroughly check all your VM network configurations and make sure none of them are still configured to use the "Invalid backing" device which relates to the old dvSwitch you're trying to remove. Until all your VMs on the host have been reconfigured to use a vSwitch, you'll struggle to remove the dvSwitch completely.
Let me know how you get on.
1 person found this helpful
try this using vmware client and log in to that ESX host (root - pass) and try remove the host from its vDS configuration
sometimes vCenter has too much authority and won't let you remove a host just be carefull and if this is a production enviroment move theVMs
Choose Host > Configuration > Networking > Distributed Virtual Switch and click Remove.
I went through all of those VMs on the remaining host... they are all configured to use the local vSwitch. I can't find any hosts set to use the dvSwitch and none claim they are using any ports.
kopper27, I attempted that a few days ago and it wouldn't remove it, Same error.
When I am connected directly to the ESX host, I notice in the recent tasks... every 5 minutes on the second, this message appears: Delete ports - Error during the configuration of the host: Unable to delete DVPort "", for the following reasons:
That's it, no reason.
Any more ideas?
There must be some sort of way to kill an open port on a vDS, dont you think? I can barely find any documentation on this stuff, like the net-dvs command...
Any other ideas guys. I'm super lost.
3 people found this helpful
I was getting the same message "The resource 119 is still in use. DVS dvSwitch1 port "119" is still in use on host esx-host port <not-found>" when trying to remove my host from the DVS switch so I went around it by right click on the ESX host and disconnect then I was able to remove the host from the DVS switch
If this was helpful please assign points--
Yes! This helped me too. Disconnected the host and delete the vdswitch. Great!
Glad to hear it worked for you as well. Let's continue help each other, don't forget to assign points =)
Appreciate all of the input and sorry for abandoning the post for a while.
I attempted some of the remedies that everyone submitted and none of them worked for me. I was still unable to remove the dvSwitch regardless of what I did.
I ended up rebooting the host and voila, dvSwitch was able to be removed. I didn't want to get to that step, but it was a last resort effort that needed to be done.
Thanks again for all the input.