4 4 3 Tigon:OpenNebula Restore
SEP sesam provides efficient data protection for virtual machines (VMs) running in OpenNebula environments. By using the SEP Sesam OpenNebula module, you can benefit from online backup and restore of your virtual machines including configuration.
- The restore of OpenNebula VMs is simple, guided and similar to regular file system restore. Note that you can only restore one VM at a time.
- There are two ways to restore your virtual machines (VMs) in SEP sesam: using the GUI restore wizard or via the web interface Restore Assistant. Although most options are the same in both restore interfaces, the web Restore Assistant is more intuitive and offers additional advanced options.
- SEP sesam also provides a simple and flexible single file restore (SFR) for OpenNebula via the GUI restore wizard or via the web interface Restore Assistant if you have the appropriate permissions. For more details on SFR, see OpenNebula Single File Restore.
- Scheduling restore is only supported in GUI mode. For details, see Scheduling Restore.
- By default, the OpenNebula restore is always performed to the same data store that was used for backup.
- You can select an alternative location to restore your data by specifying:
Before you perform OpenNebula restore, check the following prerequisites:
- To successfully restore an OpenNebula backup, all preparation steps must be performed properly. For details, see OpenNebula Backup.
- Depending on what you want to restore, make sure that you have the proper restore permissions and access rights. For details, see User Roles and Permissions.
- Make sure that there is sufficient free space on the target system to which you are restoring your data; by default, the target data store for restore is the same data store that was used for the backup.
- SFR of backups from virtualization platforms requires the guestfs-tools package to be installed on Linux in order to access and mount VM disk image on Linux. If the package is not installed on your SEP sesam Server or Linux RDS, it is not possible to mount VMDK and perform SFR. For details, see OpenNebula Single File Restore and Installing guestfs-tools on Linux.
- During restore, it is recommended that you stop all activities on the target.
Restoring an OpenNebula virtual machine
Depending on the interface you are using, follow the appropriate procedure to restore an OpenNebula VM:
For details on how to configure a restore task and a description of different restore options, see Standard Restore Procedure and Restore Assistant. Only OpenNebula-specific steps and options are described in this section.
VM restore via the GUI
- From the SEP sesam GUI menu bar, select Activities -> Restore. The New Restore Task window opens.
- Select what you want to restore. You can search savesets by task name or by filename or path.
- When searching by task name, use the drop-down list of available tasks and select the one you want to restore from. This option is selected by default.
- If searching by filename/path, select the option Filename or path in saveset and enter your search expression in the search pattern field.
- The search results are displayed. From the list of savesets matching your query, select the task you want to restore. The restore types Complete restore of selected task and Generation restore are selected by default and cannot be deselected. Click Next.
- Review your configured restore task and set additional options, if necessary.
- Details of the selected saveset are displayed at the top and at the bottom (Optional data source selection) of the window. The name of the restore task is automatically generated in the Restore task name field. You can edit the name and add a comment below.
- Under the Target data, select one of the following options:
- Restore to original VM (set by default): If selected, the data will be restored to the same location from which it was backed up. Note that this only applies if the target node is the same server from which the data was backed up, i.e., when the source and target server are the same.
- Restore with new VM name: If selected, the target VM name will be automatically created.
- Change VM target selection: If selected, the data will be restored to another location. If you are restoring a VM to a different location, you have to select a new target from the Target node drop-down list.
- Under the VM restore options drop-down list, select one of the following options:
- Do not overwrite existing items (set by default): the VM will not be restored if it already exists on the target server
- Overwrite existing items: if data exists on the target server, it will be replaced by the restored version
- Create new version: if data exists on the target server, the restored data will be restored under a different name
- (Do not) start virtual machine after restore: You can also define if you want to start a virtual machine after restore or not.
- Preferred media pool: If the data was migrated or replicated and different media pools were used for the process, the source media pool to restore from can be selected from the drop-down list of available media pools.
- Used media | barcode: If the data was migrated, the migrated copy is stored to another media; the source media to restore from can be selected from the drop-down list of available media.
- Optionally, you can select the Drive with backed up data from the drop-down list.
- The Interface field shows the server (RDS server or SEP sesam Server) with the attached data storage containing the selected saveset. You can select another interface from the drop-down list.
|The Expert Options button for specifying advanced restore options is only available in the Expert UI mode. It is not available for users that run the GUI in Basic or Advanced mode. In the latter case, if you want to access the Expert Options you first have to change the Basic/Advanced UI mode to Expert, as described in Selecting UI mode.|
|A restore task can be scheduled like any other task. If you want to add a restore task to the schedule, see Scheduling Restore.|
VM restore via the Restore Assistant
You can access the Restore Assistant in one of the following ways:
- via the GUI: by clicking the Restore Assistant icon in the toolbar or from Activities -> Restore Assistant
- from SEP sesam Web UI: left menu -> Restore Assistant
- or by entering the following address in the browser bar: http://[sesamserver]:11401/sep/ui/restore/.
The following steps are performed in basic UI mode. They cover the most common restore cases and are the recommended method for performing a restore. For more experienced users, some additional restore options are available in advanced restore mode. For details, see Restoring VMs in advanced UI mode.
- Open the Restore Assistant in the browser.
- In the start window, select OpenNebula and click Next.
- In the Virtual Machine window, under Selection of the server, select your target server to which the data will be restored.
Under Selection of the virtual machine select the VM you want to restore and click Next.
- In the Task window, under Task selection, select your source backup task.
Under Backup selection, select the exact backup version you want to restore. Note that Generation restore is selected by default. You can use the calendar function in the upper right corner to set a date range for the displayed backups.
- In the Target window, under the Target selection select your target OpenNebula server. Note that the target VM will be created under a new name. The name will be known after the restore.
- Modify or set additional restore options under the Virtualization restore options:
Recovery options: Specify whether or not to start the VM after restore.
Under Target options of the virtual machine select the data store from the drop-down list (by default, the restore is done to the same data store where the data was backed up).
Under the Advanced restore options, you can further refine the restore:
- Use the Log, Special Options tab to change the log level for your specific restore, see Setting Log Level. You can specify additional commands that may be useful for specific options of the sbc command. For details about the commands, see SBC CLI.
- Use the Retention, Generation, Pre/Post tab if you want to specify the retention period parameter for the restore (how long (in days) the restore task is kept), enable/disable a generation restore, and specify whether to apply a pre- or post-script to the restore task, see Pre/Post options.
You can monitor the restore progress using the Web UI (Monitoring -> Restores) or view the status in the GUI (Main Selection -> Job State -> Restores). The restore overview provides detailed information on the last run of restore jobs, including task name, status (successful, error, in queue...), start and stop time of the last backup, data size, throughput, etc. For details, see SEP sesam Web UI or Restores by State in the GUI.