3.2. Ceph 블록 장치를 사용하도록 Cinder 백업 구성

Red Hat OpenStack Platform은 Ceph 블록 장치를 사용하도록 Cinder 백업을 구성할 수 있습니다.

사전 요구 사항

  • Cinder 노드에 대한 루트 수준 액세스.

절차

  1. Cinder 구성 파일을 편집합니다.

    [root@cinder ~]# vim /etc/cinder/cinder.conf
  2. 구성 파일의 [ceph] 섹션으로 이동합니다.
  3. backup_driver 설정을 지정하고 Ceph 드라이버로 설정합니다.

    backup_driver = cinder.backup.drivers.ceph
  4. backup_ceph_conf 설정을 지정하고 Ceph 구성 파일의 경로를 지정합니다.

    backup_ceph_conf = /etc/ceph/ceph.conf
    참고

    Cinder 백업 Ceph 구성 파일은 Cinder에 사용되는 Ceph 구성 파일과 다를 수 있습니다. 예를 들어 다른 Ceph 스토리지 클러스터를 가리킬 수 있습니다.

  5. 백업에 사용할 Ceph 풀을 지정합니다.

    backup_ceph_pool = backups
    참고

    Cinder 백업에 사용되는 Ceph 구성 파일은 Cinder에 사용되는 Ceph 구성 파일과 다를 수 있습니다.

  6. backup_ceph_user 설정을 지정하고 사용자를 cinder-backup 으로 지정합니다.

    backup_ceph_user = cinder-backup
  7. 다음 설정을 지정합니다.

    backup_ceph_chunk_size = 134217728
    backup_ceph_stripe_unit = 0
    backup_ceph_stripe_count = 0
    restore_discard_excess_bytes = true

    Cinder 옵션을 포함하는 경우 cinder.conf 파일의 [ceph] 섹션은 다음과 유사할 수 있습니다.

    예제

    [ceph]
    volume_driver = cinder.volume.drivers.rbd.RBDDriver
    rbd_cluster_name = ceph
    rbd_pool = volumes
    rbd_user = cinder
    rbd_ceph_conf = /etc/ceph/ceph.conf
    rbd_flatten_volume_from_snapshot = false
    rbd_secret_uuid = 4b5fd580-360c-4f8c-abb5-c83bb9a3f964
    rbd_max_clone_depth = 5
    rbd_store_chunk_size = 4
    rados_connect_timeout = -1
    
    backup_driver = cinder.backup.drivers.ceph
    backup_ceph_user = cinder-backup
    backup_ceph_conf = /etc/ceph/ceph.conf
    backup_ceph_chunk_size = 134217728
    backup_ceph_pool = backups
    backup_ceph_stripe_unit = 0
    backup_ceph_stripe_count = 0
    restore_discard_excess_bytes = true

  8. Cinder 백업이 활성화되어 있는지 확인합니다.

    [root@cinder ~]# cat /etc/openstack-dashboard/local_settings | grep enable_backup

    enable_backupFalse 로 설정된 경우 local_settings 파일을 편집하여 True 로 설정합니다.

    예제

    OPENSTACK_CINDER_FEATURES = {
        'enable_backup': True,
    }