Back up and restore a management cluster

This section contains a backup and restore procedure for the OpenStack-based clusters. A management cluster backup consists of backing up MKE and MariaDB.

Note

The backup and restore procedure for other supported cloud providers is on the testing stage and will be published in one of the following Container Cloud releases.

Caution

  • The procedures below imply backup and restore of a management cluster to the same hardware nodes.

  • The restore procedure below implies that the MCR swarm is healthy. If the MCR swarm is not operational, first recover it as described in MKE documentation: Swarm disaster recovery.

  • The restore procedure below implies usage of the same MKE Docker version of the image that was used during backup. Restoring of an MKE cluster to an MKE version later than the one used during backup is not supported.

To back up an OpenStack-based management cluster:

  1. Back up MKE as described in MKE Operations Guide: Back up MKE.

  2. Update the root permissions of the backup archive created in the previous step for mcc-user:

    sudo chown mcc-user:mcc-user <backup-archive-name>.tar
    
  3. Verify that the MKE cluster backup has been created as described in MKE Operations Guide: Back up MKE: Verify an MKE backup.

  4. Back up MariaDB as described in Configure periodic backups of MariaDB for the OpenStack provider.

  5. Verify that the backup has been created as described in Verify operability of the MariaDB backup jobs.

To restore an OpenStack-based management cluster:

  1. If MKE is still installed on the swarm, uninstall MKE as described in MKE documentation: Recover an MKE cluster from an existing backup.

  2. Restore MKE as described in MKE documentation: Restore MKE.

  3. Restore MariaDB as described in Restore MariaDB databases.