2.5. 컨트롤 플레인 노드의 백업 생성
컨트롤 플레인 노드의 백업을 생성하려면 backup-and-restore Ansible 역할을 사용합니다. 그런 다음 백업을 사용하여 노드가 손상되거나 액세스할 수 없는 경우 컨트롤 플레인 노드를 이전 상태로 복원할 수 있습니다. 컨트롤 플레인 노드의 백업에는 컨트롤 플레인 노드에서 실행되는 데이터베이스의 백업이 포함됩니다.
사전 요구 사항
- 백업 노드에 NFS 또는 SFTP 서버가 설치 및 구성되어 있습니다. 새 NFS 서버 생성에 대한 자세한 내용은 2.2절. “백업 노드에 NFS 서버 설치 및 구성” 을 참조하십시오.
- 컨트롤 플레인 노드에 ReaR이 설치되어 있어야 합니다. 자세한 내용은 2.3절. “컨트롤 플레인 노드에 ReaR 설치”의 내용을 참조하십시오.
- 네트워크 인터페이스에 OVS 브리지를 사용하는 경우 OVS 인터페이스를 구성했습니다. 자세한 내용은 2.4절. “백업을 위한 OVS(Open vSwitch) 인터페이스 구성”의 내용을 참조하십시오.
절차
각 컨트롤 플레인 노드에서
root사용자로 각 노드의config- drive파티션을 백업합니다.[root@controller-x ~]$ dd if=<config_drive_partition> of=/mnt/config-drive언더클라우드 노드에서 다음 Ansible 플레이북을 생성합니다.
(undercloud) [stack@undercloud ~]$ cat <<'EOF' > ~/bar_rear_create_restore_images-controller.yaml # Playbook # Using ReaR on the control plane nodes. - become: true hosts: ceph_mon name: Backup ceph authentication tasks: - name: Backup ceph authentication role include_role: name: backup-and-restore tasks_from: ceph_authentication tags: - bar_create_recover_image - become: true hosts: Controller name: Create the recovery images for the control plane roles: - role: backup-and-restore EOF언더클라우드 노드에서 다음
ansible-playbook명령을 입력하여 컨트롤 플레인 노드의 백업을 생성합니다.(undercloud) [stack@undercloud ~]$ ansible-playbook \ -v -i ~/tripleo-inventory.yaml \ --extra="ansible_ssh_common_args='-o StrictHostKeyChecking=no'" \ --become \ --become-user root \ --tags bar_create_recover_image \ ~/bar_rear_create_restore_images-controller.yaml