You can create backups that you can use to restore your VMware Cloud Director environment after a failure.
Back Up the Embedded Database of the VMware Cloud Director Appliance
You can use the VMware Cloud Director appliance management user interface to back up the primary appliance.
Prerequisites
HEALTHY
status. See
View the VMware Cloud Director Appliance Cluster Health and Failover Mode.
Procedure
Results
The newly created file appears in the list of backups. The backup name is in the format backup-date-time-format.tgz. For VMware Cloud Director appliance 10.3.2 and later, the backup name is in the format backup-date-time-format.zip.
What to do next
- If you do not expect to restore the system to version 10.3 or earlier, you can delete the backups in the /opt/vmware/vcloud-director/data/transfer/pgdb-backup directory.
- If you do not expect to restore the system to version 10.3.1, you can delete the backups in the /opt/vmware/vcloud-director/data/transfer/backups directory.
- Starting with VMware Cloud Director 10.3.2, you can delete any unnecessary 10.3.2 and later backups by using the VMware Cloud Director appliance management user interface or the VMware Cloud Director appliance API. For information on how to use the VMware Cloud Director appliance API, see the VMware Cloud Director Appliance API Reference.
Restore the Primary VMware Cloud Director Appliance
To restore the primary appliance, you can use the VMware Cloud Director appliance management UI. If an HA cluster fails, for example, during a failed upgrade, you can use a backup to restore the primary, instead of using a VM snapshot.
Prerequisites
- Verify that you have a backup file of the primary appliance. See Back Up the Embedded Database of the VMware Cloud Director Appliance.
- Deploy one primary database cell. The newly deployed primary appliance version must match the backup appliance version. If you reuse the IP of the primary appliance, you do not need to replace the application cells later on. See Deployment and Initial Configuration of the VMware Cloud Director Appliance.
- Power-off the standby cells of the failed HA cluster.
Procedure
What to do next
- If there are untrusted certificates, verify the certificate information and confirm that you trust the necessary certificates.
- Deploy or restore additional standby and application cells.
- To deploy additional cells, see Deployment and Initial Configuration of the VMware Cloud Director Appliance.
- Similar to restoring the primary appliance, for VMware Cloud Director 10.4.1, you can restore the HTTPS certificate. For VMware Cloud Director 10.4, you can restore HTTP and console proxy certificates. VMware Cloud Director configures the certificates on the additional cells during the system setup of the VMware Cloud Director appliance management UI. When configuring the certificates for the additional cells, if the HTTP and console proxy certificates are referencing to the transfer share path, VMware Cloud Director configures the cells to use the same certificates as the primary appliance. If the HTTP and console proxy certificates are referencing a local path and have the same key-password as root, VMware Cloud Director configures the additional cells to use self-signed certificates.
- If the failover mode before the restore was
Automatic
, you must set it again toAutomatic
by using the VMware Cloud Director appliance API. - If the VMware Cloud Director appliance FIPS mode was on before the restore, you must set it again by using the VMware Cloud Director appliance API.
The cell FIPS mode restores automatically.