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:
[root@controller-x ~]# mkdir -p /etc/rear [root@controller-x ~]# tee -a "/etc/rear/local.conf" > /dev/null <<'EOF' OUTPUT=ISO OUTPUT_URL=nfs://<ip-addr>/ctl_plane_backups ISO_PREFIX=<SERVER_NAME-X> BACKUP=NETFS BACKUP_PROG_COMPRESS_OPTIONS=( --gzip ) BACKUP_PROG_COMPRESS_SUFFIX=".gz" BACKUP_PROG_EXCLUDE=( '/tmp/*' '/data/*' ) BACKUP_URL=nfs://<ip-addr>/ctl_plane_backups BACKUP_PROG_EXCLUDE=("${BACKUP_PROG_EXCLUDE[@]}" '/media' '/var/tmp' '/var/crash') BACKUP_PROG_OPTIONS+=( --anchored --xattrs-include='*.*' --xattrs ) EOF
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<ip-addr>
with the IP address of the backup node running the NFS server configured in 2章Preparing the backup node.重要If the undercloud or control plane nodes use UEFI as their boot mode, you must add
USING_UEFI_BOOTLOADER=1
to the configuration file too.Create the
rescue.conf
file:[root@controller-x ~]# tee -a "/etc/rear/rescue.conf" > /dev/null <<'EOF' BACKUP_PROG_OPTIONS+=( --anchored --xattrs-include='*.*' --xattrs ) EOF