Restoring PostgreSQL database(s) after upgrade...
('/usr/bin/sudo', '-u', 'h4postgres', '/usr/bin/bash', '-c', "/opt/vmware/vpostgres/current/bin/initdb -D '/opt/vmware/h4/db' --no-locale -E UTF8")
Job for h4postgresql.service failed because the control process exited with error code.
See "systemctl status h4postgresql.service" and "journalctl -xe" for details.
psql.bin: error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
gzip: stdout: Broken pipe
COULD NOT RESTORE THE PGSQL DATABASE. CONTACT SUPPORT IMMEDIATELY!
This issue occurs when there is a database backup file, /opt/vmware/h4/all.sql.gz
, from a previous upgrade still present on the appliance when you initiate an upgrade from Cloud Director Availability 4.0.x.
/opt/vmware/vpostgres/current/bin/psql -U h4postgres h4manager -c "select count(*) from pg_largeobject;"
/opt/vmware/vpostgres/current/bin/psql -U h4postgres h4cloud -c "select count(*) from pg_largeobject;"
Cloud Replicator Appliance:
/opt/vmware/vpostgres/current/bin/psql -U h4postgres h4replicator -c "select count(*) from pg_largeobject;"
Cloud Tunnel Appliance:
/opt/vmware/vpostgres/current/bin/psql -U h4postgres h4tunnel -c "select count(*) from pg_largeobject;"
rpm -qa | grep VMware-Postgres
all.sql.gz
file to another directory:mv /opt/vmware/h4/all.sql.gz /root/