Chapter 2. Prepare the Backup Node
Before backing up the undercloud or Control Plane nodes, prepare the backup node to accept the backup images.
2.1. Prepare the NFS Server Copy linkLink copied to clipboard!
ReaR can use multiple transport methods. Red Hat supports back up and restore with ReaR using NFS.
Install the NFS server on the backup node.
yum install -y nfs-utils
[root@backup ~]# yum install -y nfs-utilsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the NFS service to the firewall to ensure ports
111and2049are open. For example:firewall-cmd --add-service=nfs firewall-cmd --add-service=nfs --permanent
[root@backup ~]# firewall-cmd --add-service=nfs [root@backup ~]# firewall-cmd --add-service=nfs --permanentCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the NFS server and start it.
systemctl enable nfs-server systemctl restart nfs-server
[root@backup ~]# systemctl enable nfs-server [root@backup ~]# systemctl restart nfs-serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.2. Create and Export the Backup Directory Copy linkLink copied to clipboard!
Copying the backup ISO images from the undercloud or Control Plane nodes to the backup node requires a backup directory.
Create the backup directory.
mkdir /ctl_plane_backups
[root@backup ~]# mkdir /ctl_plane_backupsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Export the directory.
[root@backup ~]# cat > /etc/exports << EOF /ctl_plane_backups <ip-addr-x>/24(rw,sync,no_root_squash,no_subtree_check) EOF
[root@backup ~]# cat > /etc/exports << EOF /ctl_plane_backups <ip-addr-x>/24(rw,sync,no_root_squash,no_subtree_check) EOFCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
<ip-addr-x>with the IP address of the network. For example, replace<ip-addr-x>/24with10.0.0.1/24, where10.0.0.1/24is the IP address and subnet mask in CIDR notation. If the undercloud and the overcloud Control Plane nodes use different networks or subnets, repeat this step for each network or subnet.