Disconnect hosts from vCenter via database when vCenter fails to start
book
Article ID: 321930
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
vCenter continually crashes while trying to start.
Environment
VMware vCenter Server 6.x
VMware vCenter Server 7.x
VMware vCenter Server 8.x
Cause
vCenter is stopping due to issues at the host level.
Resolution
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.
Please take the snapshop for the vCenter (offline snapshots for the vCenters in linked mode)
Take the vCenter database backup.
Stop the vpxd service : service-control --stop vmware-vpxd
To disconnect all hosts connected to vCenter:
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres -c "UPDATE vpx_host SET enabled=0"
Validate the changes by running the below command.