Este conteúdo não está disponível no idioma selecionado.
Chapter 3. Installing and configuring ReaR
Before you back up the undercloud and the overcloud control plane nodes, you must first install and configure Relax and Recover (ReaR) on the undercloud and on each control plane node.
3.1. Installing the required packages
You must install the Relax and Recover (ReaR) packages and packages for generating ISO images on the undercloud node and on each control plane node.
Procedure
- Install the required packages on the undercloud and on each control plane node. For example: - dnf install rear genisoimage nfs-utils -y - [root@controller-x ~]# dnf install rear genisoimage nfs-utils -y- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Create a backup directory on the undercloud and on each control plane node. For example: - mkdir -p /ctl_plane_backups - [root@controller-x ~]# mkdir -p /ctl_plane_backups- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Mount the - ctl_plane_backupsNFS directory from the backup node running NFS on the undercloud and on each control plane node. For example:- mount -t nfs <ip-addr>:/ctl_plane_backups /ctl_plane_backups - [root@controller-x ~]# mount -t nfs <ip-addr>:/ctl_plane_backups /ctl_plane_backups- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - Replace - <ip-addr>with the IP address of the backup node running the NFS server.
3.2. Creating the configuration files
				As the root user on the undercloud and on each control plane node, perform the following steps:
			
- Create the ReaR configuration file: - Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - Replace - <SERVER_NAME-X>with the hostname of the node. For example, if the node hostname is- controller-0, replace- <SERVER_NAME-X>with- controller-0. Replace- <ip-addr>with the IP address of the backup node running the NFS server configured in Chapter 2, Preparing the backup node.Important- If the undercloud or control plane nodes use UEFI as their boot mode, you must add - USING_UEFI_BOOTLOADER=1to the configuration file too.
- Create the - rescue.conffile:- [root@controller-x ~]# tee -a "/etc/rear/rescue.conf" > /dev/null <<'EOF' BACKUP_PROG_OPTIONS+=( --anchored --xattrs-include='*.*' --xattrs ) EOF - [root@controller-x ~]# tee -a "/etc/rear/rescue.conf" > /dev/null <<'EOF' BACKUP_PROG_OPTIONS+=( --anchored --xattrs-include='*.*' --xattrs ) EOF- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow