我要评分
获取效率
正确性
完整性
易理解

Configuring cinder_backup to Integrate with Ceph

Modify the configuration file for cinder_backup on OpenStack to integrate cinder_backup 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] 
      ... 
      #backup_driver = cinder.backup.drivers.swift.SwiftBackupDriver 
      ... 
      backup_driver = cinder.backup.drivers.ceph.CephBackupDriver 
      backup_ceph_conf = /etc/ceph/ceph.conf 
      backup_ceph_user = cinder-backup 
      backup_ceph_chunk_size = 4194304 
      backup_ceph_pool = backups 
      backup_ceph_stripe_unit = 0 
      backup_ceph_stripe_count = 0 
      restore_discard_excess_bytes = true

      When configuring the back_driver parameter, comment out or delete other backup_driver configurations.

    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-backup service.
    systemctl restart openstack-cinder-backup.service