It is a best practice to configure a backup service for the Block Storage (Cinder) component of OpenStack to prevent loss of data. You can configure Cinder to back up volumes to either a network file system (NFS) or an Object Storage (Swift) service, which is another OpenStack service.

You configure a backup service by installing OpenStack Debian packages that are included in your VMware Integrated OpenStack 2.0 deployment.

For the purposes of this procedure, the two controllers are referred to as controller01 and controller02.

Verify that your VMware Integrated OpenStack 2.0 deployment is installed and running.

For Swift service backup configurations:

Verify that the Swift component is installed as part of your VMware Integrated OpenStack 2.0 deployment. See the VMware Integrated OpenStack Installation and Configuration Guide.

Verify that the Swift component is registered to the Identity Service component (Keystone), which is another OpenStack service. This registration is part of the default Keystone configuration. Keystone is installed as part of your VMware Integrated OpenStack 2.0 deployment.

For NFS share backup configurations:

Create a dedicated NFS share folder to store the backed-up data.

Verify that the owner of the NFS share folder has the same UID as Cinder on the controller nodes. The default Cinder UID is 107. This value might be different in your deployment.

1

Using SSH, log in to the VMware Integrated OpenStack manager.

2

Using SSH, log in to the controller01 node and switch to root user.

3

For NFS share backup configurations, modify the /etc/cinder/cinder.conf file.

Note

This step applies only to NFS share backup configuration. For Swift service backup configuration, you can skip this step.

a

Modify the /etc/cinder/cinder.conf file.

Add the following two lines under the DEFAULT section.

backup_driver = cinder.backup.drivers.nfs
backup_share = <NFS host IP address>:<file backup path>

backup_share = 192.168.123.456:/data is an example of the backup_share setting.

b

Save and close the /etc/cinder/cinder.conf file.

4

Disable the Cinder backup service from starting on boot.

echo manual | tee /etc/init/cinder-backup.override
5

Install the nfs-common Debian package.

apt-get install nfs-common
6

Install the cinder-backup Debian package.

apt-get install cinder-backup
7

Start the Cinder backup service.

service cinder-backup start
8

Verify that the backup is working correctly.

9

Repeat step Step 2 to step Step 8 on controller02.

Verify that the Cinder backup configuration functions properly. See Verify That the Cinder Backup Service is Running and Operational.