VCF 9.0
The vCenter server has been marked in an ERROR state from the SDDC manager Database.
psql -h localhost -U postgres -d platform -c "select id, status, vm_hostname from vcenter where status!='ACTIVE';"psql -h localhost -U postgres -d platform -c "update vcenter set status='ACTIVE' where id='<id from step #2>';"
/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh
Using the VCF Diagnostic Tool for vSphere (VDT) we can identify the inventory state to check if a component is in ACTIVE or ERROR state.
INVENTORY STATUS
[FAIL] vCenter Status Check
####-####-#### | vcsa_fqdn | ERROR
[FAIL] Domain Status Check
####-####-#### | domain_name | ERROR
[PASS] Host Status Check
All vCenters are in an ACTIVE state.
[PASS] PSCs Status Check
All PSCs are in an ACTIVE state.
[PASS] Cluster Status Check
All Clusters are in an ACTIVE state.
[PASS] NSX Manager Status Check
All NSX Managers are in an ACTIVE state.
[PASS] NSX Edge Status Check
All NSX Edges are in an ACTIVE state.
Based on what components are in ERROR state, the SDDC manager database should be updated to make the component into an ACTIVE state. Ensure to take a snapshot before the change.