7, 8
To narrow down which host is causing the issue, you need to disconnect all hosts from the vCenter database and then add them back one by one until you locate the faulty one for closer inspection.
service-control --stop vmware-vpxd
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres -c "UPDATE vpx_host SET enabled=0"
/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -xc "select * from vpx_host;" | grep "enabled "/opt/vmware/vpostgres/current/bin/psql -U postgres -d VCDB -xc "select * from vpx_host;" |egrep "id |dns_name |enabled "/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres -c "UPDATE vpx_host SET enabled = 0 where id = <host-id>;"Start the vpxd service : service-control --start vmware-vpxd$password = "EXAMPLE_PASSWORD"
get-vmhost | % {
$view = get-view $_.id
$arg = new-object VMware.Vim.HostConnectSpec
$arg.userName = "root"
$arg.password = $password
$arg.force = $true
$view.ReconnectHost_Task($arg,$null)
}
Disconnect-VIServer -Confirm:$false