Skip to main content

Simplifying Linux BMR for PowerProtect Data Manager using ReaR (Relax and Recover) Disaster Recovery Solution

Simplifying Linux BMR for PowerProtect Data Manager using ReaR (Relax and Recover) Disaster Recovery Solution This white paper provides an overview of the use of Bare Metal Recovery (BMR) in a disaster recovery plan, with a focus on the open-source software ReaR (Relax and Recover) and PowerProtect Data Manager.

Executive summary

Overview

ReaR (Relax and Recover) is a leading open source bare metal disaster recovery solution. It uses a modular framework with many ready-to-go workflows for common disaster recovery scenarios. ReaR produces a bootable image which can recreate the system’s original storage layout. Once the storage layout is recovered, it initiates a restore from the backup.

The process of bare metal recovery consists of two parts:

  • Recreate the system layout
  • Restore the data to the system

Most backup software solutions are very good at restoring data but do not support recreating the system layout. Relax-and-Recover is very good at recreating the system layout but works best when used together with supported backup software like PowerProtect Data Manager. In this combination Relax-and-Recover recreates the system layout and calls the backup software to restore the actual data.

This whitepaper describes how Dell PowerProtect Data Manager can be configured with ReaR. It also contains steps to perform a seamless recovery in case of a disaster, by using PowerProtect Data Manager features like pre/post scripts, Policy based data protection and FLR recovery. 

Revisions

Date

Part number/
revision

Description

November 2024

H20222

Initial release

Introduction

Introduction

This white paper provides an overview of the use of Bare Metal Recovery (BMR) in a disaster recovery plan, with a focus on the open-source software ReaR (Relax and Recover). BMR is a critical component of a disaster recovery plan, providing protection in the event of a machine failure or cyberattack. It is used when a host is unavailable due to hardware failure or if the machine cannot start. BMR is essential in two main scenarios: recovering a computer in its entirety after a hardware failure and recovering data to a new computer after a hardware failure that cannot be repaired.

In the context of Linux, maintaining and developing different versions of BMR software can be challenging. As a result, many backup vendors utilize open-source BMR software like ReaR to meet the requirements of a comprehensive disaster recovery solution. ReaR is an open-source project that is packaged with popular Linux distributions and creates a bootable image of a Linux system's operating system. This bootable image includes PowerProtect Data Manager filesystem agent files, which allows for a seamless recovery of files backed up by the PowerProtect Data Manager protection policy workflow.

ReaR also repartitions the target disks on the recovery system, allowing the user to select a point-in-time backup of the assets protected by PowerProtect Data Manager. This feature enables migrations to dissimilar hardware, providing flexibility in the recovery process.

In summary, this white paper explores the role of BMR in a disaster recovery plan, with a focus on the open-source software ReaR. ReaR is a powerful tool for Linux systems that provides a seamless recovery process, including repartitioning target disks and enabling migrations to dissimilar hardware.

Downloading and configuring ReaR

Downloading and configuring ReaR

To download and install ReaR (Relax and Recover), visit the ReaR download page at https://relax-and-recover.org/download/. On this page, click on the "GitHub Releases - Snapshot" link. At the time of writing, this is where you will find the most recent builds with support for PowerProtect Data Manager.

Note: While ReaR is included in various Linux distributions, these distributions do not typically have PowerProtect Data Manager support.

Screenshot showing the link where ReaR packages can be found

Figure 1.   Screenshot showing the link where ReaR packages can be found

To install ReaR, download the required packages and use the yum command or rpm to install them. The yum command will install the dependencies required for ReaR. For a complete list of dependencies, refer to the ReaR documentation at https://relax-and-recover.org/documentation/installation.

Yum command used to install ReaR with dependencies

Figure 2.   Yum command used to install ReaR with dependencies

After installing ReaR, you can set up the ReaR configuration using the file local.conf. This file is located under the default path /etc/rear/. The two important variables that must be set are the OUTPUT and BACKUP type. To specify PowerProtect Data Manager as the backup and recovery application and to set the rescue output image ISO file, use the following configuration:

OUTPUT=ISO

BACKUP=PPDM

Additionally, you can specify the OUTPUT_URL to define the target location where the rescue image will be written to. The default location is /var/lib/rear/output/.

Suggested configuration in local.conf file

Figure 3.   Suggested configuration in local.conf file

Before configuring the PowerProtect Data Manager policy, it is a good idea to run the following commands to ensure that the rear program works without any issues:

Rear dump <- dumps configuration and system information of the client.

Sample Rear dump command output

Figure 4.   Sample Rear dump command output

Rear -v mkrescue <- creates a rescue image iso on the path specified

Sample rear -v mkrescue command output

Figure 5.   Sample rear -v mkrescue command output

Note: If there are any errors at this stage, highlighting missing binaries, install the dependent binaries and proceed to the next step.

Configuring data backup using PowerProtect Data Manager

Configuring data backup using PowerProtect Data Manager

To configure data backup using PowerProtect Data Manager, begin by creating a Protection policy in the PowerProtect Data Manager. This policy will protect the assets of the client, which in this example include the "/" and "/boot" directories.

Screenshot of Data Manager UI showing assets of the client

Figure 6.   Screenshot of Data Manager UI showing assets of the client

During the creation of the protection policy, you can utilize the pre/post script option to ensure that the ISO is also backed up by the policy.

Note: It is required to have PowerProtect Data Manager version 19.17 or later.

In the script box, specify the command to be run prior to the asset backup. It is recommended to use the rear -v mkrescue command, which will create a rescue image of the system. It is also recommended to select the "Skip job" option if the script fails. This will ensure that the rear command does not fail silently.

Pre script configuration option in Protection policy workflow

Figure 7.   Pre script configuration option in Protection policy workflow

Pre script configuration with rear command

Figure 8.   Pre script configuration with rear command

Once the protection policy is run, you can monitor the progress using the Jobs > Protection Jobs page in PowerProtect Data Manager. Here, you will see the various steps of the protection job, including the pre-script step and the backup of the assets.

PowerProtect Data Manager UI showing completed pre script job

Figure 9.   PowerProtect Data Manager UI showing completed pre script job

Additionally, the ISO created by the rear command will also be backed up by the protection policy, ensuring that a complete backup of the client's assets is created. In summary, to configure data backup using PowerProtect Data Manager, create a Protection policy and utilize the pre/post script option to run the rear -v mkrescue command prior to the asset backup. Monitor the progress of the protection job using the Jobs > Protection Jobs page in PowerProtect Data Manager. This will ensure that a complete backup of the client's assets, including the ISO, is created.

Recovery

Recovery

To recover the rear ISO image using file level restore from the backup, first locate the ISO file. It is typically created under the path /var/lib/rear/output with a filename in the format rear-.iso. The ISO file should be protected as part of the filesystem backup.

File level restore option to restore the iso file

Figure 10.    File level restore option to restore the iso file

Next, mount the backup to the original or alternate host and select the file you want to recover. Select the ISO file identified in the previous step. The path to the ISO file may be different if the OUTPUT_URL path was changed in the rear configuration file.

Selecting the iso in file level restore workflow

Figure 11.    Selecting the iso in file level restore workflow

Once the recovery ISO has been downloaded, burn it to a bootable media that is compatible with the recovery system. In the case of a virtual machine (VM), you can boot from the ISO directly in the VM settings.

Note: the ISO is enabled for BIOS by default, and additional boot options like EFI may require configurations in the rear configuration file.

Upon booting, you will see the Relax and Recover boot menu. Select the "Automatic Recover " option to automatically log in to the system and run the "rear recover" command. Alternatively, selecting "Recover <hostname> " will show a login prompt to enter the username (for instance, 'root').

Relax and Recover boot menu on the recovery host

Figure 12.    Relax and Recover boot menu on the recovery host

Once logged in, you may need to run the recover command explicitly to proceed with the recovery. It is preferred to select the “Recover <hostname>” option because it allows any  changes to be made to the recovery host and troubleshooting of connectivity issues to the PowerProtect Data Manager or PowerProtect Data Domain. Run "rear recover" as shown below:

rear recover

Enter rear recover command on the recovery host

Figure 13.    Enter rear recover command on the recovery host

You see a message below prompting user action.

‘PPDM Lockbox not usable, you must go to PPDM server and perform Set Lockbox action on the Protection policy for this system’

Prompt in recovery terminal to set lockbox in Data Manager UI

Figure 14.    Prompt in recovery terminal to set lockbox in Data Manager UI

Access the Protection Policy within the PowerProtect Data Manager UI and select the ‘Set Lockbox’ option. A confirmation dialog will appear, indicating that the lockbox has been successfully configured.

Set lockbox option for the Protection policy which has the assets of the client

Figure 15.    Set lockbox option for the Protection policy which has the assets of the client

Upon receiving the confirmation message, pause briefly in the recovery terminal to allow the ReaR program to proceed.

  1. Press ‘Enter’ to recover from the most recent backup or input a specific timestamp to select a point-in-time copy.
  2. The assets to be recovered, such as /boot and /, will be displayed. ReaR will utilize the fsagent binaries included in the recovery ISO to restore these assets.
  3. Type ‘yes’ and press ‘Enter’ to accept the default disk configuration layout and continue with the recovery process.

Recovery options to select a point in time or latest backup to restore

Figure 16.    Recovery options to select a point in time or latest backup to restore

To initiate a complete disk wipe and data recovery, select option 1. At this stage, you also have the alternatives to return to the ReaR shell or abort the recovery process.

Select option 1 to completely wipe the disks and start the recovery process

Figure 17.    Select option 1 to completely wipe the disks and start the recovery process

Once the recovery is complete, enter ‘reboot’ to initiate a reboot of the client.

Reboot recovery host once the recovery is complete

Figure 18.    Reboot recovery host once the recovery is complete

This would complete the recovery process and boot from the recovered client OS.

Boot screen of the recovered client

Figure 19.    Boot screen of the recovered client

Troubleshooting and support

Troubleshooting and support

  • Ensure the rear -v mkrescue command can run without any errors on the client. This will help isolate issues in case the pre-script fails during the Protection policy run.
  • The recovery system hardware must match or exceed the source Linux client. Recovery from P2P, V2V, P2V and V2P is supported as well as recoveries to dissimilar hardware.
  • If the recovery is performed while the source Linux client is online, there might be an IP address conflict on the network. It is preferred to boot the recovery system in isolation or power off the source Linux client.
  • If the source client uses DHCP, the recovery host might be assigned a different IP than the source client during the recovery process. On the recovery host, ensure changes are made to the DNS or set a static IP so that communication to the PowerProtect Data Manager and Data Domain works without issues.
  • Though ReaR supports other storage methods like NFS, CIFS or FTP. It is preferable to select the OUTPUT_URL in the ReaR configuration file to file:\\ type as it allows you to automate the rear command using the pre/post scripts feature of Data Manager.
  • This solution has been validated with RHEL 9.x and SUSE Linux 15 SP5. Other versions that are supported by both ReaR and PowerProtect Data Manager could work but have not been tested.
  • In some cases, the pre script with ‘rear mkrescue’ command might not work. Please see https://github.com/rear/rear/issues for existing issues reported by other users. We can omit the use of pre script in such cases and create the recovery iso manually on the client prior to the backup or using cron (Linux scheduler). This can be used a workaround but not a preferred method as the recovery iso created would not be consistent with the backup. 
  • Refer the community support page for ReaR for known issues or to report new issues. https://relax-and-recover.org/support/

References