Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 224018

Re: Issue with Remove-VDSwitchVMHost

$
0
0

This returns nothing when the freshly rebuilt host is reattached to vCenter:

 

get-vmhost $vmhost | Get-VDSwitch

Making it appear that the host has no vDS config (which is true at this point)

 

Querying the switch tells a different tale:

 

Get-VDSwitch -Name $vDSName | get-vmhost

Name                 ConnectionState PowerState NumCpu CpuUsageMhz CpuTotalMhz   MemoryUsageGB   MemoryTotalGB Version
----                 --------------- ---------- ------ ----------- -----------   -------------   ------------- -------
pbnesxt22.xxxxxxx... Connected       PoweredOn       8         751       19200          15.982          71.990   5.0.0
pbnesxt21.xxxxxxx... Connected       PoweredOn       8          40       19200           1.890          71.990   5.1.0

 

pbnesxt21 is the host I just rebuilt. remove-vdswitch doesn't work on it:

 

Get-VDSwitch -Name $vDSName | Remove-VDSwitchVMHost -VMHost $vmhost -confirm:$false

Remove-VDSwitchVMHost : 6/13/2013 2:25:43 PM    Remove-VDSwitchVMHost        VMHost 'pbnesxt21.xxxxxxxxx.pvt' is not a member of VDSwitch 'dvsQ92'

At line:1 char:31

+ Get-VDSwitch -Name $vDSName | Remove-VDSwitchVMHost -VMHost $vmhost -confirm:$fa ...

+                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (:) [Remove-VDSwitchVMHost], InvalidArgument

    + FullyQualifiedErrorId : VdsImpl_VDSwitchServiceImpl_VMHostNotAdded,VMware.VimAutomation.Vds.Commands.Cmdlets.RemoveVDSwitchVMHost


Viewing all articles
Browse latest Browse all 224018

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>