Before upgrading a Cloud Director Availability instance that was previously upgraded from vCloud Availability 3.x, validate the state of the database on each appliance.
- SSH to the Cloud Director Availability appliance you wish to upgrade and log in as the root user.
- Run the following database queries for the corresponding appliance type and verify each command returns a count of 0.
Cloud Replication Management Appliance:
/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;"
- Confirm the version(s) of the installed VMware Postgres components and that there are no instances of 9.x present:
rpm -qa | grep VMware-Postgres
If the database queries have return a count greater than 0 or you have found VMware Postgres 9.x components installed on the appliances, contact VMware Support and note this Article ID (89426) in the problem description. For more information, see
How to Submit a Support Request.
If the database queries return a count of 0 and there are no VMware Postgres 9.x components installed on the appliances, then the appliances are in a healthy pre-upgrade state. To progress with the upgrade, perform the following steps:
- Take a backup or snapshot of each appliance in the event you continue to experience upgrade issues.
- SSH to the Cloud Director Availability appliance you wish to upgrade and log in as the root user.
- Move the all.sql.gz file to another directory:
mv /opt/vmware/h4/all.sql.gz /root/
- Upgrade the appliance as per the Upgrading in the Cloud section of the Cloud Director Availability documentation.