3.2. Ceph 블록 장치를 사용하도록 Cinder 백업 구성
Red Hat OpenStack Platform은 Ceph 블록 장치를 사용하도록 Cinder 백업을 구성할 수 있습니다.
사전 요구 사항
- Cinder 노드에 대한 루트 수준 액세스.
절차
Cinder 구성 파일을 편집합니다.
[root@cinder ~]# vim /etc/cinder/cinder.conf
-
구성 파일의
[ceph]섹션으로 이동합니다. backup_driver설정을 지정하고 Ceph 드라이버로 설정합니다.backup_driver = cinder.backup.drivers.ceph
backup_ceph_conf설정을 지정하고 Ceph 구성 파일의 경로를 지정합니다.backup_ceph_conf = /etc/ceph/ceph.conf
참고Cinder 백업 Ceph 구성 파일은 Cinder에 사용되는 Ceph 구성 파일과 다를 수 있습니다. 예를 들어 다른 Ceph 스토리지 클러스터를 가리킬 수 있습니다.
백업에 사용할 Ceph 풀을 지정합니다.
backup_ceph_pool = backups
참고Cinder 백업에 사용되는 Ceph 구성 파일은 Cinder에 사용되는 Ceph 구성 파일과 다를 수 있습니다.
backup_ceph_user설정을 지정하고 사용자를cinder-backup으로 지정합니다.backup_ceph_user = cinder-backup
다음 설정을 지정합니다.
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
Cinder 백업이 활성화되어 있는지 확인합니다.
[root@cinder ~]# cat /etc/openstack-dashboard/local_settings | grep enable_backup
enable_backup이False로 설정된 경우local_settings파일을 편집하여True로 설정합니다.예제
OPENSTACK_CINDER_FEATURES = { 'enable_backup': True, }