When attempting to start the vpxd service, the following error appears in the vpxd.log:
Log file: /var/log/vmware/vpxd/vpxd.log
Failed to connect to database: ODBC error: (08001) - [unixODBC] Could not connect to the server; --> Connection refused [XXX.X.X.XX:XXXX]
Additionally, the PostgreSQL logs indicate the following error
Log file: /var/log/vmware/vpostgres/postgresql.log
LOG: invalid primary checkpoint record
PANIC: could not locate a valid checkpoint record.
To resolve the issue, the Postgres transaction logs need to be reset.
Note: Shutdown and power off the vCenter Server appliance. Take a snapshot of the VM. This snapshot can be used to roll back any changes.
service-control --stop --all
su vpostgres -s /bin/sh
/opt/vmware/vpostgres/current/bin/pg_resetxlog -f /storage/db/vpostgres
/opt/vmware/vpostgres/current/bin/pg_resetwal -f /storage/db/vpostgres
exit
service-control --start --all