Chapter 3. Install and Configure ReaR
To back up the undercloud and the overcloud control plane, you must first install and configure Relax and Recover (ReaR) on the undercloud and on each Control Plane node.
3.1. Install the Required Packages Copy linkLink copied to clipboard!
The Undercloud and Control Plane Back Up and Restore procedure requires the installation of the Relax and Recover (ReaR) packages and packages for generating ISO images on the undercloud node and on each Control Plane node.
Install the required packages on the undercloud and on each Control Plane node. For example:
yum install rear genisoimage nfs-utils -y
[root@controller-x ~]# yum install rear genisoimage nfs-utils -yCopy 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_backupsCopy 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_backupsCopy 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. Create the Configuration Files Copy linkLink copied to clipboard!
As root 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 iscontroller-0, replace{{SERVER_NAME-X}}withcontroller-0. Replace{{nfs_server_ip}}with the IP address of the backup node running the NFS server configured in Chapter 2, Prepare the Backup Node.ImportantIf 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 ) EOFCopy to Clipboard Copied! Toggle word wrap Toggle overflow