데이터 손실을 방지하기 위해 OpenStack의 블록 스토리지(Cinder) 구성 요소에 대해 백업 서비스를 구성하는 것이 가장 좋습니다. Cinder를 구성하여 볼륨을 NFS(네트워크 파일 시스템)에 백업하거나 다른 OpenStack 서비스인 개체 스토리지(Swift) 서비스에 백업할 수 있습니다.
이 태스크 정보
VMware Integrated OpenStack 3.0 또는 3.1 배포에 포함된 OpenStack Debian 패키지를 설치하여 백업 서비스를 구성합니다.
이 절차에서는 두 개의 컨트롤러를 controller01 및 controller02라고 부릅니다.
필수 조건
VMware Integrated OpenStack 3.0 또는 3.1 배포가 설치되어 있고 실행 중인지 확인합니다.
Swift 서비스 백업 구성:
Swift 구성 요소가 VMware Integrated OpenStack 3.0 또는 3.1 배포의 일부로 설치되었는지 확인합니다. VMware Integrated OpenStack 설치 및 구성 가이드를 참조하십시오.
Swift 구성 요소가 다른 OpenStack 서비스인 ID 서비스 구성 요소(Keystone)에 등록되었는지 확인합니다. 이 등록 작업은 기본 Keystone 구성의 일부입니다. Keystone은 VMware Integrated OpenStack 3.0 또는 3.1 배포의 일부로 설치됩니다.
NFS 공유 백업 구성:
프로시저
- SSH를 사용하여 VMware Integrated OpenStack Manager에 로그인합니다.
- custom.yml 파일을 구현합니다.
sudo mkdir -p /opt/vmware/vio/custom
sudo cp /var/lib/vio/ansible/custom/custom.yml.sample /opt/vmware/vio/custom/custom.yml
- Swift를 백업 서비스로 사용하려면 /opt/vmware/vio/custom/custom.yml 파일을 편집합니다.
- cinder_backup_driver 매개 변수의 주석 처리를 제거합니다.
- cinder_backup_driver 매개 변수를 cinder.backup.drivers.swift로 설정합니다.
# Driver to use for backups. (string value)
cinder_backup_driver: cinder.backup.drivers.swift
- NFS를 백업 서비스로 사용하려면 /opt/vmware/vio/custom/custom.yml 파일을 편집합니다.
- cinder_backup_driver 매개 변수의 주석 처리를 제거합니다.
- cinder_backup_driver 매개 변수를 cinder.backup.drivers.nfs로 설정합니다.
# Driver to use for backups. (string value)
cinder_backup_driver: cinder.backup.drivers.nfs
- cinder_backup_share 매개 변수의 주석 처리를 제거합니다.
- cinder_backup_share 매개 변수를 <NFS host IP address>:<file backup path>로 설정합니다.
# NFS share in fqdn:path, ipv4addr:path, or "[ipv6addr]:path"
# format. (string value)
cinder_backup_share: <NFS host IP address>:<file backup path>
- NFS 공유가 버전 4.1이 아닌 경우 cinder_backup_mount_options 매개 변수의 주석 처리를 제거하고 이를 귀하의 NFS 버전으로 설정해야 합니다. 예를 들어 vers=3입니다.
# Mount options passed to the NFS client. See NFS man page for
# details. (string value) 'vers=4' to support version NFS 4
cinder_backup_mount_options: vers=4
- custom.yml 파일을 저장합니다.
- 새 구성을 VMware Integrated OpenStack 배포로 푸시합니다.
viocli deployment -v configure --limit controller
중요:
이 명령은 전체 배포를 업데이트하며 이 과정 중 작업이 일시적으로 중단될 수 있습니다.
다음에 수행할 작업
Cinder 백업 구성이 제대로 작동하고 있는지 확인합니다. Cinder 백업 서비스가 실행 중이고 작동되고 있는지 확인을 참조하십시오.