4 4 3:VMware Single File Restore

From SEPsesam
Revision as of 11:14, 2 March 2020 by Sta (talk | contribs) (Minor correction.)
Other languages:

Copyright © SEP AG 1999-2024. All rights reserved.

Any form of reproduction of the contents or parts of this manual is allowed only with the express written permission from SEP AG. When compiling and designing user documentation SEP AG uses great diligence and attempts to deliver accurate and correct information. However, SEP AG cannot issue a guarantee for the contents of this manual.

Docs latest icon.png Welcome to the latest SEP sesam documentation version 4.4.3/4.4.3 Beefalo V2. For previous documentation version(s), check VMware archive.


Overview

Quick Start 3.png
Quick setup
  1. Attach VMDK to a virtual machine.
  2. Configure a virtual host as a SEP sesam client.
  3. Prepare the NFS share on Linux.
  4. Restore a VM using the attached VMDK.
  5. OR
  6. Mount VMDK to a SEP sesam RDS.
  7. Restore a single file using the mounted VMDK.


It is estimated that about three quarters of the typical VMware virtual machine restore cases only require a single file restore rather than a restore of an entire virtual machine. As of version 4.4.3, SEP sesam introduces simple and flexible single file restore that enables you to restore an individual item without any special backup preparation from full/differential/incremental backups. To learn what applies to single file restore and instant recovery, which backup level supports it and how it relates to the disk size usage, see SF & IR support matrix 4.4.3 Tigon.

This article provides information for restoring an individual item from a vSphere backup. For details on how to a restore a single VMware virtual machine, see VMware Restore. For details on how to perform a VMware virtual machine instant recovery, see VMware Instant Recovery.

Information sign.png Note
SEP sesam provides the web Restore Assistant interface which is designed to be more intuitive and offers additional advanced options compared to GUI restore wizard while, on the other hand, it does not support VMware single file restore, so you can use only the GUI restore wizard to restore an individual item.

In the GUI, you can restore individual items from any successful VMware backup by using any of the following procedures:

Before starting a restore, check the supported file systems and restrictions.

Supported file systems

SEP sesam can in general recover all file systems as long as the respective operating system offers read/write support for it.

  • Example 1: A restore of files from ReFS on Windows is only possible if the data mover is able to read the ReFS file system which is supported since Windows Server 2012.
  • Example 2: A restore of files from a Btrfs is only possible if the data mover is a Linux with Kernel support for it, for example SLES 12.
  • Example 3: If the file system on OES Linux is NSS, the data mover must be able to read the NSS file system data.

When restoring files from the NSS file system some limitations apply:

  • The restore process itself does not differ from the restore of native Linux or Windows files, but the proxy VM must be an OES11 Server. For prerequisites, check Recommendations for Linux proxy.
  • Files from a native NetWare VM can be restored only to an OES Linux or native Linux target.
  • To restore trustees, the extended attributes on NSS must be enabled before backup. For details, refer to Novell OES documentation for NSS.
  • If you restore NSS files to a server in the original tree and on an NSS file system, the restored files will keep the original trustees (regardless of the tree of the proxy OES VM you used for restore).
  • Trustees from native NetWare VMs cannot be restored because native NetWare has no extended attributes to store the trustees into the file system.

Restrictions

  • SEP sesam does not support a restore of files from the DOS boot partition of a native NetWare server.
  • SEP sesam provides limited support for single file restore on Windows virtual machines with spanned volumes due to Microsoft's restrictions. The following limitations exist:
    • Mounting VMDK to a SEP sesam Server/RDS is not supported.
    • Attaching VMDK to original virtual machine is not supported if the original disks are still attached (as is typically the case in most scenarios).
  • The attach method does not work with a virtual SEP sesam Server or a virtual RDS to itself. For example, a virtual SEP sesam Server stores the virtual disk(s) on the SEP sesam data store. It is not possible to attach VMDK to the respective virtual SEP sesam Server; another VM must be used for this.

Best practice for individual file restore for Windows and Linux VMs

SEP sesam provides simple restore of individual files without any special backup preparation from VMware CBT snapshot. The following steps represent best practices and latest recommendations from SEP sesam support. Detailed instructions on VMware requirements and backup configuration can be found in related articles VMware Requirements & Restrictions and VMware Backup.

  • For version 4.4.3, the following limitation applies: Windows SEP sesam Server or Windows RDS is not supported in v. 4.4.3, therefore use Linux SEP sesam Server or RDS. In v. ≥ 4.4.3 Tigon, Windows can be used as a SEP sesam Server or RDS.
  • Enable the NFS server on the SEP sesam Server or RDS as described in section Preparing the NFS share.
  • Install SEP sesam Client to a Linux VM (sandbox for Linux single file restore). VDDK is only required if this VM is also the data mover. In this case, check VMware Requirements & Restrictions.
  • Add the Linux VM as a client as described in Step 1: Configuring a virtual host as a SEP sesam client. Make sure that you select the check box Client is a virtual machine.
  • Information sign.png Note
    • Any operating system can be used except in case that you need a sandbox for Netware single file restore. Search the wiki for Netware reference.
    • Do not use a productive system as a sandbox!
  • Install SEP sesam Client to a Windows VM (sandbox for Windows single file restore). No specific Windows version is required. VDDK is only required if this VM is also the data mover. In this case, check VMware Requirements & Restrictions.
  • Add the Windows VM as a client as described in Step 1: Configuring a virtual host as a SEP sesam client. Make sure that you select the check box Client is a virtual machine.
  • Follow Step 3: Restore a VM using the attached VMDK : Select the VMware snapshot and select the check box Attach virtual disk(s) (VMDK) to a Proxy-VM via NFS server. Then click Next and under Select VM use the drop-down list to select Linux or Windows sandbox VM.

Attaching VMDK to a virtual machine

Attaching VMDK to a virtual machine is the recommended option for single file restore for Windows and Linux that requires only one SEP sesam Server or Remote Device Server (RDS).

Information sign.png Note
SEP sesam provides limited support for single file restore on Windows virtual machines with spanned volumes due to Microsoft's restrictions. Attaching VMDK to the original virtual machine is not supported if the original disks are still attached. You can only attach VMDK to another Windows host, because Microsoft does not allow to use the same volumes twice when having spanned volumes. Then the disks will be marked as Foreign in Disk Management. Only possible workaround is to bring these disks online manually using Disk Management. For details, see section Managing virtual machines with spanned volumes.

Conceptual view of a single item restore with the attached VMDK
SEP sesam instant-recovery and single-file-restore 04 attach 03.png

Prerequisites

Before attempting to attach VMDK and performing a single file restore, all preparation steps have to be performed properly, including configuration and VM backup. Depending on your SEP sesam version, see the relevant VMware guide for details.

The VMware single file restore prerequisites differ slightly depending on your SEP sesam version. For example, 4.4.3 Tigon already supports all backup levels and provides selective restore. Make sure that the following conditions are met:

  • SEP sesam Server version ≥ 4.4.3. For the list of supported systems, see SEP sesam OS and Database Support Matrix.
  • A SEP sesam data store Path or SEP sesam Si3 data store:
    • SEP sesam v. 4.4.3 Tigon supports the UNC path (e.g., \\server\folder) for data store.
    • In SEP sesam v. 4.4.3, data store via UNC path is not supported. A volume must be visible as a locally attached storage (not as a network drive letter). Only iSCSI, SAN and locally connected drives can be used as a locally attached storage.
  • Backups must not be encrypted or compressed, and they must not be migrated to another media – only the original backup on SEP sesam data store can be used for restore.
  • At least one virtual host of VMware vCenter needs to be added as a SEP sesam Client ≥ 4.4.3 to attach VMDKs.
  • Encrypted file systems within the virtual machine can only be read if the system (proxy VM) with the attached virtual disk is able to decrypt the data.
  • The system that stores the VMDK files to SEP sesam data store (either SEP sesam Server or SEP sesam RDS) must provide NFS (network file system) services:
    • V. 4.4.3 Tigon already includes the NFS server and does not require a regular NFS server provided by Windows.
    • For SEP sesam v. 4.4.3 with the NFS service on Windows, it is recommended to use Windows 2012 (R2) for providing a higher level of NFS support.
  • A proxy server (either Windows or Linux VM) should be a non-production environment. For more details, see Recommendations for Linux proxy below.
  • When using both, virtual Linux and Windows hosts, it is recommended to add one virtual Linux and one virtual Windows host to ensure file system compatibility.
  • Some versions, for example, VDDK 6.5.x on Windows, might require rebooting the host after the update, followed by running the vstor2install.bat script. For details, see VMware Troubleshooting.
Information sign.png Note

SEP sesam can restore all file systems for which the respective operating system provides a read/write support. For example, a restore of files on Windows ReFS is only possible if the system with the attached disk is able to read ReFS data. Or, if the file system on OES Linux is NSS, the system with the attached disk must be able to read the NSS file system data.

Step 1: Configuring a virtual host as a SEP sesam client

To be able to attach a VMDK file to a virtual host, SEP sesam needs to know where to attach the VMDK file(s). You have to add at least one virtual host as a SEP sesam client and this system must be assigned to the virtual host.

  1. From Main Selection -> Components -> Topology, select your VMware location and click the New Client button. The New Client window opens.
  2. Enter the name of the virtual host in the Name field.
  3. Select the relevant platform from the Platform drop-down list and the relevant OS under Operating System.
  4. Choose the SMSSH access mode (default in ≥ 4.4.3 Tigon V2) for the SEP sesam server-client communication. Note that CTRL was default access mode up until v. 4.4.3 Tigon V2.
  5. Select the name of your vCenter under VM host.
  6. Select the virtual machine from the VM name drop-down list.
  7. Then select the check box Client is a virtual machine and click OK.
  8. VMware new client Beefalo V2.jpg

Your new client is displayed in the Topology content pane.

In the client properties, additional tabs are available for specifying permissions and access. Double-click the client to open its properties, and set client permissions and vCenter/OS access under the respective tabs. For details, see Configuring Clients.

Step 2: Preparing the NFS share on Linux

NFS (Network File System) is a client/server application that allows to share files across a network. You have to set up the NFS service on the Linux SEP sesam Server or RDS system, which stores the VMDK files.

SEP sesam automatically creates a VMware data store to attach the VMDK file(s) to a virtual host.

The following overview provides only basic information for configuring NFS on Linux. For details, see relevant Linux documentation, for example, the article How to configure NFS on Linux.

  • NFS server must be installed and NFS service must run.
  • Exports will be created dynamically during restore by SEP sesam. Note that exports can also be created manually by editing the /etc/exports file. The exported path has to match the location of the SEP sesam data store or any of its parent directories on the same file system.
  • All ESX servers must be allowed to mount the directory.
  • Read/write permission should be set.

Recommendations for Linux proxy

OES Linux proxy VM (for restore from NSS file systems)

  • VM with OES11 SP2 or higher
  • OES pattern to install: NSS (all other dependencies will be selected automatically)
  • Recommended to install the NetIQ eDirectory as a separate tree.
  • Static IP address (required by NetIQ eDirectory).
  • Only minimal system is required, X server is not required.
  • Size of file system only for SLES11 SP3 + OES11 SP2 (or higher versions).
  • Current SEP sesam client for SLES11.

OES Linux

  • Use a separate, non-production OES VM
  • Install the NetIQ eDirectory as a separate tree.
  • Do not add NSS pools and volumes to the OES server – all non-active pools are automatically activated and deactivated after restore
  • Do not change the mounted NSS file systems – they are your backup!

Step 3: Restore a VM using the attached VMDK

Create a new restore task for individual file(s) you want to restore.

  1. From the SEP sesam GUI menu bar, select Activities -> Restore. The New Restore Task window opens.
  2. 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 you are searching by filename/path, select the option Filename or path in saveset and enter your search expression in the search pattern field.
  3. Under the Saved in period drop-down lists, specify the time frame for which you want to conduct the search. Click Next.
  4. The search results are displayed. From the list of savesets matching your query, select the version from which you want to restore an individual file. Then select the check box Attach virtual disk(s) (VMDK) to a Proxy-VM via NFS server. Click Next.
  5. VMware SF select task Beefalo V2.jpg
  6. Under the Select VM, use the drop-down list to select the relevant vSphere server, SEP sesam Client name of the proxy VM and vSphere internal name of proxy VM. The vSphere server is the vCenter where the virtual host – vSphere internal name of proxy VM – is running, which is assigned as a SEP sesam Client – SEP sesam client name of the proxy VM. If the host that attaches the disk(s) uses multiple network cards, you must also specify NFS interface; otherwise this option does not need to be specified. Click Next.
  7. VMware SF select VM Beefalo V2.jpg
  8. In the Select Files dialog, only the drives of the selected VMDK(s) are shown. Note that it might take from 5 to 20 seconds to load the drive list. SEP sesam automatically enables the automount function of Windows on host, which attaches the VMDK(s). The automount function of Windows assigns a drive letter to a new disk drive without interaction of a user. SEP sesam automatically sets all connected drives on this particular host to Online.
    If no drives are shown, either an invalid partition was chosen (for example, if a Windows host tries to attach Linux partitions) or the drives did not start in expected time. You can use the refresh button to display the list of all drives, local and the attached ones. Click Next.
  9. In the Target Settings window, you only need to select the Target node from the drop-down list and New restore target by browsing.
  10. VMware SF target Beefalo V2.jpg
  11. In the final step of the restore wizard, you can review all the settings of your restore task. If you want to start your restore immediately, click Start. If you want to save the restore task, click Save.
  12. Click OK to detach VMDK(s) from the VM and close your restore session.
Information sign.png Note
A restore task can be scheduled like any other task. If you want to add a restore task to the schedule, see Scheduling Restore.

You can view the status of your restore jobs by selecting Job state -> Restores from the Main Selection. Restore overview provides detailed information on the last run of restore jobs, including the task name, status (successful, error, in queue ...), start and stop time of the last backup, data size, throughput, client and message.

As of 4.4.3 Beefalo V2, you can also monitor the restores online by using new Web UI. For details, see SEP sesam Web UI.

Managing virtual machines with spanned volumes

SEP sesam provides limited support for single file restore on Windows virtual machines with spanned volumes due to Microsoft's restrictions. Attaching VMDK to the original virtual machine is not supported if the original disks are still attached.

You can only attach VMDK to another Windows host, because Microsoft does not allow to use the same volumes twice when having spanned volumes. Then the disks will be marked as Foreign in Disk Management. Only possible workaround is to bring these disks online manually using Disk Management.

Steps

  1. Open Computer Management -> Disk Management, and click Import Foreign Disks option. This lists one or more disk groups, identified by the name of the computer where they were created. If you expand the details on a disk group, it lists the locally-connected disks.
  2. Select the relevant Disk Group. The dialog box with a list of volumes in the Disk Group opens.
  3. Select the relevant volumes and click OK to add the foreign disks to your system configuration.

The operation is slightly different, depending on whether there are pre-existing online foreign (dynamic) disks on the target computer. For details, see Microsoft support article Description of Disk Groups in Windows Disk Management.

Mounting VMDK to a SEP sesam RDS

You can mount any non-compressed VMDK saveset stored to default data store Path or to Si3 data store to the local system, which is used as a VMware data mover and SEP sesam RDS with a data store.

The target VMDK is mounted to the SEP sesam home directory var\tmp\mnt, e.g., C:\Program Files\SEPsesam\var\tmp\mnt\save_set_ID. This way the VMDK is instantly accessible for browsing and searching before the actual restore is even triggered, providing you with quick access to your data. The mounted VMDK is basically a virtual read-only file system, therefore it cannot be altered or otherwise damaged. Comparing to the attach method, mounting has the advantage of much easier setup and requires less configuration steps.

Information sign.png Note
  • Mounting is not possible if the savesets are stored to tapes or if the savesets are compressed.
  • Mounting is not supported on Windows virtual machines with spanned volumes due to Microsoft's restriction.

Conceptual view of a single item restore with mounted VMDK
SEP sesam instant-recovery and single-file-restore 03 mount 03.png

Prerequisites

Before attempting to mount VMDK and performing a single file restore, all preparation steps have to be performed properly, including configuration and VM backup. Depending on your SEP sesam version, see the relevant VMware guide for details. Make sure that the following conditions are met:

  • SEP sesam Server version ≥ 4.4.3. For the list of supported systems, see SEP sesam OS and Database Support Matrix.
  • A SEP sesam data store Path or SEP sesam Si3 data store:
    • SEP sesam v. 4.4.3 Tigon supports the UNC path (e.g., \\server\folder) for data store.
    • In SEP sesam v. 4.4.3, data store via UNC path is not supported. A volume must be visible as a locally attached storage (not as a network drive letter). Only iSCSI, SAN and locally connected drives can be used as a locally attached storage.
  • Backups must not be encrypted or compressed, and they must not be migrated to another media – only the original backup on SEP sesam data store can be used for restore.
  • Windows specific
    • The required VDDK version must be installed on the system, which is used as a VMware data mover and SEP sesam RDS with a data store. On Windows, VDDK is a part of the SEP sesam installation. If you are using a Linux system (see below) or any of the previous SEP sesam versions, you have to install the VDDK manually.
    • When using a Windows data mover to mount the VMDK, it is required to have a second data mover on Linux (which is also a SEP sesam RDS) with installed required VDDK version. Virtual Windows hosts must be stored on Windows RDS and Linux virtual hosts must be stored on Linux RDS.
  • Linux specific
    • You have to install the VDDK on Linux manually. For details, see Installing VDDK on Linux.
    • Additionally, to be able to access and mount the file system of an image on Linux, you have to install the guestfs-tools package. For details, see Installing guestfs-tools on Linux.
    • When using a Linux data mover to mount the VMDK, it must be able to read Linux and Windows systems. Note that mounting Windows VMDKs with Linux data mover might result in ACL-related problems and is therefore not recommended.
Information sign.png Note

SEP sesam can restore all file systems for which the respective operating system provides a read/write support. For example, a restore of files on Windows ReFS is only possible if the data mover is able to read ReFS data. Or, if the file system on OES Linux is NSS, the data mover must be able to read the NSS file system data.

Restore a single file using the mounted VMDK

Create a new restore task for individual file(s) you want to restore.

  1. From the SEP sesam GUI menu bar, select Activities -> Restore. The New Restore Task window opens.
  2. 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 you are searching by filename/path, select the option Filename or path in saveset and enter your search expression in the search pattern field.
  3. Under the Saved in period drop-down list, specify the time frame for which you want to conduct the search. Click Next.
  4. The search results are displayed. From the list of savesets matching your query, select the version from which you want to restore an individual file. Then select the check box Mount virtual disk(s). A mount action is triggered and your VMDK is mounted to the SEP sesam home directory var\tmp\mnt, e.g., C:\Program Files\SEPsesam\var\tmp\mnt\save_set_ID. Click Next.
  5. VMware SF mount Beefalo V2.jpg
  6. In the Select Files dialog, only the mounted VDMK drives are shown (the local drives are not displayed). Select the files you want to restore and click Next.
  7. VMware SF select files mount Beefalo V2.jpg
  8. In the Target Settings window, you only need to select the Target node from the drop-down list and New restore target by browsing.
  9. In the final step of the restore wizard, you can review all the settings of your restore task. If you want to start your restore immediately, click Start. If you want to save the restore task, click Save.
  10. Click OK to unmount the VMDK(s) and close your restore session.
Information sign.png Note
A restore task can be scheduled like any other task. If you want to add a restore task to the schedule, see Scheduling Restore.

You can view the status of your restore jobs by selecting Job state -> Restores from the Main Selection. Restore overview provides detailed information on the last run of restore jobs, including the task name, status (successful, error, in queue ...), start and stop time of the last backup, data size, throughput, client and message.

As of 4.4.3 Beefalo V2, you can also monitor the restores online by using new Web UI. For details, see SEP sesam Web UI.