Back up the control plane
To prepare your RHOSO deployment for disaster recovery, you create OADP backups of persistent volumes and Kubernetes resources such as the databases, persistent data, and configuration resources that are required to restore your environment.
- Global resources and resources created in non-RHOSO namespaces, such as
NodeNetworkConfigPolicy(nncp) CRs, are not included in the resources that are backed up. - You cannot perform a backup while performing a minor update.
Prerequisites Copy linkLink copied!
- You are logged in to the RHOCP cluster as a user with
cluster-adminprivileges. - You have configured a
GaleraBackupCR for each Galera database instance.
Collect backup metadata Copy linkLink copied!
To verify Operator version compatibility when restoring your environment from a backup, you must annotate the backup resources with metadata, including a unique backup timestamp.
About this task Copy linkLink copied!
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
- Backup the Galera databases.
Back up the Galera databases Copy linkLink copied!
To generate SQL dump files in persistent volumes for your OADP PVC backup, create a manual job from each GaleraBackup cronjob.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
- Optional: Backup your OVN database.
- Create the OADP PVC backup.
Back up OVN databases Copy linkLink copied!
To reduce restoration time by avoiding manual reconstruction from the Networking service (neutron) data, back up your Open Virtual Network (OVN) northbound and southbound databases. The backup files are written directly to the OVN PVCs.
About this task Copy linkLink copied!
If you backup the OVN databases, you must perform the OVN database restore procedure during restoration. If you do not backup the OVN databases, you must synchronise the Networking service with OVN during restoration to reconstruct the OVN databases.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
- Create the OADP PVC backup.
Create an OADP PVC backup Copy linkLink copied!
To preserve your database exports, Image service (glance) images, and other persistent data, capture all persistent volume claims (PVCs) that are labeled for backup in your environment.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
- Create the OADP resources backup.
Create an OADP resources backup Copy linkLink copied!
To preserve your Secrets, ConfigMaps, custom resources, and other configuration objects, capture all Kubernetes resources except persistent volume claims.
Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
- Optional: If you are using
BaremetalHostresources that are not in theopenstacknamespace and yourOpenStackDataPlaneNodeSetCRs do not usepreProvisioned: true, create a backup of yourBaremetalHostresources. - Verify all backups were successful.
Create an OADP backup for bare-metal data plane nodes Copy linkLink copied!
If your OpenStackDataPlaneNodeSet custom resources (CRs) use unprovisioned, bare-metal nodes, then you must create a backup of the BaremetalHost resources if they are located in a namespace other than openstack.
Before you begin Copy linkLink copied!
- You are not using
preProvisioned: truein yourOpenStackDataPlaneNodeSetCRs.
About this task Copy linkLink copied!
OpenStackBaremetalSet and OpenStackProvisionServer resources are in the openstack namespace and are already captured by the OADP resources backup.Procedure Copy linkLink copied!
What to do next Copy linkLink copied!
- Verify all backups were successful.
Verify successful backup completion Copy linkLink copied!
To ensure your environment is ready for future restore operations, confirm that all backup data successfully uploaded to your object storage.