Backup and Restore Management Plane

This guide provides steps for backing up and restoring the self-hosted Private Cloud Director management plane in disaster recovery scenarios. The procedures include both manual and automated backup methods, as well as manual restoration process.

circle-info

Info

When restoring the management plane, ensure it's done on a Kubernetes cluster that is separate from the cluster where the backup was generated.

Prerequisites

System Requirements

  • Access to the Kubernetes management cluster

  • Installed and configured airctl binary

  • Valid airctl configuration file at /opt/pf9/airctl/conf/airctl-config.yaml

  • Root or sudo access to the management node

For S3 Backup Storage

  • AWS credentials with S3 bucket access

  • Existing S3 bucket for backup storage

  • AWS CLI configured (for verification purposes)

Important Considerations

  1. The restoration process must be performed on a separate Kubernetes management cluster that is different from the management cluster where the backup was generated.

  2. The metrics service (gnocci) data is not backed up in the backup procedure. For complete disaster recovery, manual copying of metrics service (gnocchi) metrics from the original storage class pcd-sc persistent volume is required.

Manual Backup Procedure

Create a backup directory:

Execute the airctl backup command:

Verify backup contents:

The backup archive should contain:

  • state_backup.yaml: System state configuration

  • kplane_values_backup.yaml: Kubernetes management cluster configuration

  • consul.snap: Consul snapshot

  • mysql_dump_Infra.sql: Infrastructure database backup

  • mysql_dump_Region1.sql: Region-specific database backup

  • ovn-north-backup & ovn-south-backup : Ovn database backup

circle-exclamation

Automated Backup Configuration

The automated backup system is created during the initial installation of the Private Cloud Director management plane. When you run the installation command, the system automatically creates a CronJob named mgmt-plane-backup. This cronjob is designed to run every hour to ensure regular system backups.

Backups are stored at path /var/pf9/backups/ on the node with airctl installation

Configuring S3 Backup Storage

Locate the aws-credentials secret, Empty secret aws-credentials created by default::

Configure the secret with required AWS parameters:

  • AWS_ACCESS_KEY_ID

  • AWS_SECRET_ACCESS_KEY

  • AWS_REGION

  • AWS_S3_PATH

circle-info

Info

If the secret is patched with the required AWS credentials and S3 bucket information, the cronjob execution will store backups locally and push them to the S3 bucket.

Once configured, backups will be stored both locally and in the specified S3 bucket.

Manual Restore Procedure

Standard Restore

Execute the restore command:

Restore from S3 Backup

  1. Create and configure the aws-credentials secret with required AWS parameters

  2. Execute the S3 restore command

circle-info

Info

For complete disaster recovery, manually restore Gnocchi metrics data from the original pcd-sc persistent volume

Verification Steps

Check backup file integrity using MD5 checksum::

Verify S3 uploads (if configured):

Monitor restore progress:

Common Issues

  • If AWS credentials are not properly configured, automated S3 backups will continue locally but skip S3 upload

  • Restore operations may take significant time depending on data volume

  • Services may take additional time to start after restore completion

Last updated

Was this helpful?