Chapter 1. Overview of the Red Hat OpenStack Platform Block Storage backup service Red Hat OpenStack Platform (RHOSP) provides the foundation to build a private or public Infrastructure-as-a-Service (IaaS) cloud on top of Red Hat Enterprise Linux. It is a scalable, fault-tolerant platform for the development of cloud-enabled workloads. You can manage most features of the backup service by using either the RHOSP dashboard or the command-line client methods, however you must use the command line to execute some of the more advanced procedures. Note For the complete suite of documentation for Red Hat OpenStack Platform, see Red Hat OpenStack Platform Documentation . The Block Storage service (cinder) includes a horizontally scalable backup service that you can use to back up cinder volumes to diverse storage back ends. You can use the Block Storage backup service to create and restore full or incremental backups. The service is volume-array independent. The Red Hat OpenStack Platform (RHOSP) director is a toolset to install and manage a complete RHOSP environment called the overcloud. For more information about director, see the Director Installation and Usage guide. The overcloud contains the components that provide services to end users, including Block Storage. The Block Storage backup service is an optional service that you deploy on Controller nodes. 1.1. Backups and snapshots A volume backup is a persistent copy of the contents of a volume. Volume backups are typically created as object stores, and are managed through the OpenStack Object Storage service (swift) by default. You can use Red Hat Ceph and NFS as alternative back ends for backups. When you create a volume backup, all of the backup metadata is stored in the Block Storage service database. The cinder-backup service uses this metadata when it restores a volume from the backup. This means that when you perform a recovery from a catastrophic database loss, you must restore the Block Storage service database first before you restore any volumes from backups, provided that the original volume backup metadata of the Block Storage service database is intact. If you want to configure only a subset of volume backups to survive a catastrophic database loss, you can also export the backup metadata. You can then re-import the metadata to the Block Storage database by using the REST API or the cinder client, and restore the volume backup as normal. Volume backups are different from snapshots. Backups preserve the data contained in the volume, and snapshots preserve the state of a volume at a specific point in time. You cannot delete a volume if it has existing snapshots. Volume backups prevent data loss, whereas snapshots facilitate cloning. For this reason, snapshot back ends are typically colocated with volume back ends in order to minimize latency during cloning. By contrast, the backup repository is typically located separately from the back ends, either on a different node or different physical storage. This protects the backup repository from any damage that might occur to the volume back end. For more information about volume snapshots, see Create, Use, or Delete Volume Snapshots in the Storage Guide . 1.2. Volume backup workflow When the Block Storage backup service performs a back up, it receives a request from the cinder API to back up a targeted volume. The backup service completes the request and stores the content on the back end. The following diagram illustrates how the request interacts with the Block Storage (cinder) services to perform the backup. Figure 1.1. Creating a backup with the Block Storage service The client issues a request to back up a Block Storage volume by invoking the cinder API. The cinder API service receives the request from HAProxy and validates the request, the user credentials, and other information. Creates the backup record in the SQL database. Makes an asynchronous RPC call to the cinder-backup service via AMQP to back up the volume. Returns current backup record, with an ID, to the API caller. An RPC create message arrives on one of the backup services. The cinder-backup service performs a synchronous RPC call to get_backup_device . The cinder-volume service ensures that the correct device is returned to the caller. Normally, it is the same volume, but if the volume is in use, the service returns a temporary cloned volume or a temporary snapshot, depending on the configuration. The cinder-backup service issues another synchronous RPC to cinder-volume to expose the source device. The cinder-volume service exports and maps the source device (volume or snapshot) and returns the appropriate connection information. The cinder-backup service attaches source volume by using connection information. The cinder-backup service calls the backup driver, with the device already attached, which begins the data transfer to the backup destination. The volume is detached from the Backup host. The cinder-backup service issues a synchronous RPC to cinder-volume to disconnect the source device. The cinder-volume service unmaps and removes the export for the device. If a temporary volume or temporary snapshot was created, cinder-backup calls cinder-volume to remove it. The cinder-volume service removes the temporary volume. When the backup is completed, the backup record is updated in the database. 1.3. Volume restore workflow The following diagram illustrates the steps that occur when a user requests to restore a Block Storage service (cinder) backup. Figure 1.2. Restoring a Block Storage backup The client issues a request to restore a Block Storage backup by invoking the CinderREST API. The cinder API receives the request from HAProxy and validates the request, the user credentials, and other information. If the request does not contain an existing volume as the destination, the API makes an asynchronous RPC call to create a new volume and polls the status of the volume until it becomes available. The cinder-scheduler selects a volume service and makes the RPC call to create the volume. Selected cinder-volume service creates the volume. When cinder-api detects that the volume is available, the backup record is created in the database. Makes an asynchronous RPC call to the backup service via AMQP to restore the backup. Returns the current volume ID, backup ID, and volume name to the API caller. An RPC create message arrives on one of the backup services. The cinder-backup service performs a synchronous RPC call to cinder-volume to expose the destination volume. The cinder-volume service exports and maps the Destination Volume returning the appropriate connection information. The cinder-backup service attaches source volume using connection information. The cinder-backup service calls the driver with the device already attached, which begins the data restoration to the volume destination. The volume is detached from the backup host. The cinder-backup service issues a synchronous RPC to cinder-volume to disconnect the source device. The cinder-volume service unmaps and removes the export for the device. When the backup is completed, the Backup record is updated in the database. 1.4. Cloud storage versus local storage The Google Cloud Storage driver is the only cloud driver that is supported by the Block Storage backup service. By default, the Google Cloud Storage driver uses the least expensive storage solution, Nearline, for this type of backup. Configure the backup service to optimize performance. For example, if you create backups from Europe, change the backup region to Europe. If you do not change the backup region from the default, US, the performance might be slower due to the geographical distance between the two regions. Note Google Cloud Storage requires special configuration that is explained in section Appendix A, Google Cloud Storage configuration . The following table lists the benefits and limitations of cloud storage and local storage based on the situation. Situation Cloud storage Local storage Offsite backup Cloud storage is in the data center of another company and is therefore automatically offsite. You can access data from many locations. Remote copy is available for disaster recovery. Requires additional planning and expense. Hardware control Relies on the availability and expertise of another service. You have complete control over storage hardware. Requires management and expertise. Cost considerations Different pricing policies or tiers depending upon the services you use from the vendor. Adding additional hardware as needed is a known cost. Network speed and data access Overall data access is slower and requires Internet access. Speed and latency depend on multiple factors. Access to data is fast and immediate. No internet access is required.

Commands: