Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring Cinder to Integrate with Ceph

Modify the Cinder configuration file on OpenStack to integrate Cinder with Ceph.

  1. On the OpenStack storage node (Cinder node), modify the /etc/cinder/cinder.conf file.
    1. Open the file.
      vi /etc/cinder/cinder.conf
    2. Press i to enter the insert mode and modify the file as follows:
      [DEFAULT] 
      ... 
      #enabled_backends = lvm 
      enabled_backends = ceph 
       
      [ceph] 
      volume_driver = cinder.volume.drivers.rbd.RBDDriver 
      volume_backend_name = ceph 
      rbd_pool = volumes 
      rbd_ceph_conf = /etc/ceph/ceph.conf 
      rbd_flatten_volume_from_snapshot = false 
      rbd_max_clone_depth = 5 
      rbd_store_chunk_size = 4 
      rados_connect_timeout = -1 
      glance_api_version = 2 
      rbd_user = cinder 
      rbd_secret_uuid = b3d5fee6-839c-482e-b244-668bad7128a9
      • When configuring the enabled_backends parameter, comment out or delete other enabled_backends configuration items.
      • Change the value of rbd_secret_uuid to the UUID generated when a key is added to libvirt.
    1. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  2. On the OpenStack storage node (Cinder node), restart the cinder-volume service.
    systemctl restart openstack-cinder-volume.service