If your single Provider VM fails, you can recover it from the latest backup of its internal vPostgres database only if you have configured the Provider Backup repository in your VMware Data Services Manager installation.
Recovering involves deploying a new Provider VM. You must deploy the new VM with the same version of the .ova
, and the same IP address, as that of the original.
VMware Data Services Manager automatically transfers all trusted certificates to the new Provider VM after the backup is restored.
The procedure in this topic is performed by a VMware Data Services Manager user in the Provider Administrator role.
Before you recover the Provider VM, ensure that you can identify:
.ova
.If you are restoring from an TLS-enabled S3 repository, also ensure that you have the CA certificate on hand, and that you can identify a location on the Provider VM for this file.
Perform the following procedure to recover the Provider VM in your VMware Data Services Manager installation:
Deploy the new Provider VM(s) with the same IP addresses as the 1.3.x release of VMware Data Services Manager.
Get trusted certificates through the API /appliance/provider/get-trusted-certificates
.
Append S3 trusted certificates at the end of the downloaded certificate file. For example, Minio Secure S3 public key can be found at the location /root/.minio/certs/
.
Upload the provider-trusted-cert.pem
file that you modified in step 6.
APIs can be found in at https://
SSH to the newly deployed Provider VM and verify that the vpostgresql service is running.
Edit the file /data/pgbackrest.conf
, and then add the following configuration:
[global]
repo1-path=<Path of the backup taken (for example, provider-backups-{id})>
repo1-type=s3
repo1-s3-endpoint=<URL of the S3 of for which cert is uploaded in step#4>
repo1-s3-bucket=<Bucket that contains provider backups>
repo1-s3-uri-style=path
repo1-s3-verify-tls=n
repo1-s3-key=<Placeholder>
repo1-s3-key-secret=<Placeholder>
repo1-s3-region=<PlaceHolder of AWS S3 else us-east-1>
repo1-retention-full=7
process-max=2
log-level-console=info
log-level-file=error
start-fast=y
delta=y
[main]
pg1-path=/data/vpgsql
Save the pgbackrest.conf
file.
Run the following command to restore the Provider VM:
root@providervm$ restore-provider -c /data/pgbackrest.conf
Wait until the restoration process is complete.
Log out of the VM.
Log in to the VMware Data Services Manager Provider console to verify the recovery process.
Select System Audit from the left navigation pane.
This actions displays the System Audit Events view, a table that lists system audit events.
Examine recent events listed in the table, and locate an Event Type that specifies Provider Restore Success that has an Event Time near the time of recovery.
Manually trigger a Provider VM backup by updating the Provider backup settings.