You can configure Cinder to back up volumes to a network file system (NFS) server.
Prerequisites
- Create a shared NFS directory dedicated to storing Cinder backups.
- 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.
Procedure
- Log in to the OpenStack Management Server as
viouser
.
- If your deployment is not using a custom.yml file, copy the template custom.yml file to the /opt/vmware/vio/custom directory.
sudo mkdir -p /opt/vmware/vio/custom
sudo cp /var/lib/vio/ansible/custom/custom.yml.sample /opt/vmware/vio/custom/custom.yml
- Open the /opt/vmware/vio/custom/custom.yml file in a text editor.
- Uncomment the cinder_backup_driver parameter and set its value to
cinder.backup.drivers.nfs
.
- Uncomment the cinder_backup_share parameter and set its value to the location of the shared NFS directory.
Use the format
nfs-host:path. For example,
192.0.2.100:/cinder
.
- Uncomment the cinder_backup_mount_options parameter and set it to your version of NFS.
For example, enter
vers=4 to support NFS version 4.
- Deploy the updated configuration.
sudo viocli deployment configure
Deploying the configuration briefly interrupts OpenStack services.
Results
You can now use the
cinder backup-create command to back up your Cinder volumes.