You can create backups that you can use to restore your VMware Cloud Director environment after a failure.
Back Up the Embedded Database of Your VMware Cloud Director Appliance
You can use the VMware Cloud Director appliance management user interface to back up your primary appliance.
DEGRADED. See View Your VMware Cloud Director Appliance Cluster Health and Failover Mode.
- Log in as root to the appliance management UI of the primary, standby, or application cell at https://cell_eth0_ip_address:5480.
- In the left panel, click the Backup tab.
On the Backup page you can see a list of previous backups.
- Click Backup Now.
- To confirm the backup, click Backup.
VMware Cloud Director appliance creates the backup files in the /opt/vmware/vcloud-director/data/transfer/backups directory. The backups for the earlier VMware Cloud Director versions are located in the /opt/vmware/vcloud-director/data/transfer/pgdb-backup directory. However, earlier version backups are incompatible with VMware Cloud Director 10.3.1 and later.
- When the backup finishes, click Close.
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 Your Primary VMware Cloud Director Appliance
To restore your 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.
- Verify that you have a backup file of the primary appliance. See Back Up the Embedded Database of Your 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 Your VMware Cloud Director Appliance.
- Power-off and delete the standby cells of the failed HA cluster.
- Log in as root to the appliance management UI of the newly deployed primary cell at https://FQDN_of_the_primary_appliance:5480.
- In the left panel, click the Restore from Backup tab.
- Enter the path that contains the backups directory, for example, remote_target:/data/transfer.
The NFS mount and the share containing the backups directory must have
- When the validator confirms the NFS share, click Next.
- Select the backup that you want to use to restore the primary appliance, and click Next.
By default, only the backups with a compatible version appear. You can sort the backups by date, or filter the backups by the appliance version.
- (Optional) Select which certificates you want to restore from the backup.
For the restored appliance, you can reuse the HTTP certificate and the PostgreSQL database and appliance management UI endpoint certificate.Note:
Starting with VMware Cloud Director 10.4, the VMware Cloud Director service uses one certificate for HTTPS and console proxy communications.
- Enter the path to the transfer share for the restored primary appliance.
You can use the same NFS share, or enter a new share for the restored appliance.
- When the validator confirms the NFS share, click Restore.
- When the restore operation completes successfully, click Close.
What to do next
- If there are untrusted certificates, verify the certificate information and confirm that you trust the necessary certificates.
- Redeploy the standby cells and any application cells from the original cluster topology.
- See Deployment and Initial Configuration of Your VMware Cloud Director Appliance.
- Similar to restoring the primary appliance, you can restore the HTTPS certificate.
- If the failover mode before the restore was
Automatic, you must set it again to
Automaticby 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.