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:

circle-info

Info

Execute the following command as a non-root user.

circle-info

Info

Use --region <region_name> parameter if you intend to back up only a specific region. If not specified, all the regions will be included in the backup.

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 service named airctl-backup. This service is configured to run hourly to ensure regular system backups.

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

You can verify the service status using:

The output should show that the airctl-backup service is inactive by default and becomes active only during a backup operation.

Configuring S3 Backup Storage

To enable storing backups in an S3 bucket, you need to create and configure a credentials file.

Create the file /etc/default/airctl-backup with the following AWS parameters:

The file should be owned by the user running the airctl-backup service and have appropriate permissions (typically 600).

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

Manual Restore Procedure

Standard Restore

Execute the restore command:

--region is optional; specify it only when restoring a specific region.

Restore from S3 Backup

Create and configure the /etc/default/airctl-backup file with required AWS parameters, making sure that AWS_S3_PATH points specifically to the backup file you want to restore, not just the S3 bucket:

Execute the S3 restore command:

circle-info

Info

For complete disaster recovery, manually restore Gnocchi metrics data from the original pcd-scpersistent 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?