|THE CONTENT OF THIS PAGE IS OUTDATED|
|SEP AG has discontinued support for obsolete SEP sesam versions. Instructions are still available for these SEP sesam products, however, SEP AG accepts no responsibility or liability for any errors or inaccuracies in the instructions or for the incorrect operation of obsolete SEP sesam software. It is strongly recommended that you update your SEP sesam software to the latest version. For the latest version of SEP sesam documentation, see documentation home.|
REAR on RedHat RHEV Environments
Deutsche Version: REAR in RedHat RHEV-Umgebungen
This page describes both backup and restore of several Virtual Machines for disaster recovery purposes. The process has been tested SEP sesam 188.8.131.52 and later.
|Saving the machine settings|
For all shown cases it is necessary to take notes of the VM configuration (including settings about CPU/Memory assignment, Size of attached harddrives, network settings etc). We recommend to do this before starting to configure the backup for this is essentially important to do a successful restore.
The procedure in this section creates a backup of the guest operating systems on the RedHat Enterprise Virtualization Environment.
RedHat Enterprise Linux 5 and 6, CentOS 6
|syslinux package on RHEL 6|
Please note that the package syslinux has to be installed on RedHat Enterprise Linux 6 in order to create the bootable *.iso file.
Requirements for a working Bare System Recover backup are:
- Installation of the SEP sesam client module (>=4.2.2), see Sesam Quick Install Guide V4.2.2/4.4.
The following procedure requires a working SEP sesam setup of the client, meaning that the ability to make backups has to be given.
- Backup task creation
As on windows server operating systems, two backup tasks have to be created using the GUI:
One task using the Linux BSR option
and one using the complete filesystem option
- Start the backup tasks
The two backup tasks "rhel5-bsrguide_all" and "rhel5-bsrguide_bsr" can either be started using the GUI or by assigning them to a schedule in the SEPuler. For further information on the schedule, see Sesam Quick Install Guide - Step 5 Schedules.
After the two backup jobs have completed, a complete system backup is present.
|Don't forget to create the bootable media!|
The bootable, client-specific *.iso file for the disaster recovery environment is stored in /var/opt/sesam/var/lib/rear/var/lib/rear/output/rear-[hostname].iso on the client. Please store it in a safe location to have the media required for the restore process.
RedHat Enterprise Linux 5 and 6, CentOS 6
- When the RHEV environment has failed, a complete restore has to be done. After setting up the new hypervisor, upload the SEP sesam rear *.iso file to the environment using the command:
[root@rhevm ~]# rhevm-iso-uploader --iso-domain=ISO_DOMAIN upload /path/to/rear-hostname.iso
- Re-create the virtual machine you want to restore. Therefor, use the original configuration values recorded before starting the backup.
- In the start options, choose the virtual CD drive to be the first boot option and attach the *.iso image.
- Re-create the virtual hard drive(s):
- Power on the VM and enter its console. You should now see the following:
During bootup the system will provide you with a selection of network interfaces. Choose the right network interface which is needed to ensure connectivity with your backup server. The IP configuration of the original system will be used:
Login to the disaster recovery console
After the system has finished booting you can login to the disaster recovery console with the username "root" and no password. The disaster recovery console is also reachable via SSH, in case you have to login remotely. The recovery process can be started with the command "rear recover" just as shown in this screenshot:
Restoring disk information
The disk restore wizard will suggest a local disk to be partitioned, select the appropriate disk to be used:
Confirm the disk layout configuration:
Start the recovery and let the recovery console create the filesystems and partitions:
The recovery routine processed so far creates a mountpoint "/mnt/local". This will be the restore target for the next step: The restore of the filesystem backup.
Restoring the original filesystem
In the SEP sesam GUI, create a new Restore Task for the client that has to be restored. For most szenarios, all options (excepting the last page) can be left at the default values.
Select the filesystem backup you want to restore and check "complete restore of selected task":
|Restore target must be set to /mnt/local/|
The restore target must be changed from the default value "all" to the new target "/mnt/local/" on the recovery console
When the Restore Task has completed, exit the rear recovery procedure on the client typing "exit" into the console and shutdown the appliance afterwards.
It is now necessary to remove the bootable media from the VM's drive and set the virtual HDD as first boot option:
Power on the appliance after saving the changes. The restore is now officially done, the system is going to boot to the state of the backup.
Necessary adjustments on RedHat Enterprise Linux 6 or CentOS 6
When using one of the above mentioned operating systems, there is a possibility of the machine failing to boot after recovery. This occurs when SELinux was set to 'enforcing' during the system backup. So on RHEL6 and CentOS, follow these steps after rebooting from the REAR recover:
- Press a key when prompted by the boot loader (GRUB):
- Select the appropriate boot loader entry:
- Press 'e' to edit the commands for the selected entry:
- Add 'selinux=0' to the commands:
- Press 'Enter' to confirm the changes and 'b' to boot up the machine with SELinux disabled.
When having access to the system, change the option SELINUX of /etc/selinux/config to the following:
Afterwards, reboot the system and feel free to set the SELINUX value back to 'enforcing' if needed.
If the following "ERROR: SMS0004: The specified device does not exist." occurs on a Windows operating system, please reinstall the software package "CBMR x.x SEP Sesam Version".
Sesam client will not start on RHEL6/CentOS6 based recovery images
The Sesam client will not automatically start on RHEL6 based Recovery images as the file "/etc/init.d/functions" is missing within the recovery image. The client can be started manually via:
- For further information about Relax and Recover see here