Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 3. Installing and configuring Relax and Recover (ReaR)
To back up the undercloud and the overcloud control plane, you must first install and configure ReaR on the undercloud and on each control plane node.
3.1. Installing ReaR Link kopierenLink in die Zwischenablage kopiert!
Before you back up the undercloud and control plane, 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 ReaR packages and packages for generating ISO images on the undercloud node and on each control plane node:
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 To avoid upgrade issues in the future, delete the scheduled ReaR cron task:
rm -f /etc/cron.d/rear
[root@controller-x ~]# rm -f /etc/cron.d/rearCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create a backup directory on the undercloud and on each control plane node:
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 that runs NFS on the undercloud and on each control plane node:mount -t nfs <BACKUP_NODE_IP_ADDRESS>:/ctl_plane_backups /ctl_plane_backups
[root@controller-x ~]# mount -t nfs <BACKUP_NODE_IP_ADDRESS>:/ctl_plane_backups /ctl_plane_backupsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
<BACKUP_NODE_IP_ADDRESS>with the IP address of the backup node running the NFS server.
3.2. Creating the ReaR configuration files Link kopierenLink in die Zwischenablage kopiert!
After you install Relax and Recovery (ReaR) on the undercloud node and on each control plane node, create the configuration files as the root user.
Procedure
Create the ReaR configuration file:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
Replace
<NODE_HOSTNAME>with the hostname of the node. For example, if the node hostname iscontroller-0, replace<NODE_HOSTNAME>withcontroller-0. Replace
<BACKUP_NODE_IP_ADDRESS>with the IP address of the backup node that runs the NFS server. This is the IP address that you configured when you prepared the backup node. For more information, see Chapter 2, Prepare the Backup Node.ImportantIf the undercloud or control plane nodes use boot mode UEFI, you must add
USING_UEFI_BOOTLOADER=1to the configuration file.
-
Replace
If you use an OVS bridge for your network interfaces, add the following configuration to the
/etc/rear/local.conffile to enable the recovery process to retrieve the backups through the network:NETWORKING_PREPARATION_COMMANDS=('<command_1>' '<command_2>' ... '<command_n>')NETWORKING_PREPARATION_COMMANDS=('<command_1>' '<command_2>' ... '<command_n>')Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
<command_1>, and all commands up to<command_n>, with the commands that you need to configure your network configuration, for example:-
To configure the control plane bridge name, add the
ip link add br-ctlplane type bridgecommand. -
To set the name of the interface, add the
ip link set eth0 upcommand.
-
To configure the control plane bridge name, add the
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