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

  1. Log in to the OpenStack Management Server as viouser.
  2. 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
  3. Open the /opt/vmware/vio/custom/custom.yml file in a text editor.
  4. Uncomment the cinder_backup_driver parameter and set its value to cinder.backup.drivers.nfs.
  5. 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.
  6. 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.
  7. 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.