Restore Data - Unix - How To

Topics | How To | Full System Restore | Related Topics


Restore Unix Raw Devices

Restore a VMware ESX Server 2.5.x Virtual Machine

Restore a VMware ESX Server 3.x Virtual Machine Disk Image


Restore Unix Raw Devices

Before You Begin:

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore a raw device:

  1. Do one of the following as appropriate:
  2. From the Restore Options (General) dialog box, do one of the following as appropriate to determine the restore destination:
  3. Continue your restore.

Restore a VMware ESX Server 2.5.x Virtual Machine

The system allows you to restore an individual guest operating system running under the VMware ESX Server using the Linux File System iDataAgent.

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore a corrupted or missing virtual machine (guest operating system)

  1. Check the Virtual Machine Web Console to ensure that the virtual machine (guest operating system) to be restored is in the “power off” state.
  2. Once the guest operating system is powered off, go to the CommCell Console. For the appropriate Linux File System iDataAgent default backup set, browse and select the guest operating system file and (if necessary) any guest operating system configuration files to be restored, and then click Recover All Selected.
  3. From the Restore Options (General) dialog box, select Unconditional Overwrite and Restore to Same Paths. Thereafter, continue your restore.

Once the restore has completed, use the Virtual Machine Web Console to restart the guest operating system.


Restore a VMware ESX Server 3.x Virtual Machine Disk Image

You can use the VMware vcbRestore utility to restore a Disk Image for a VMware Virtual Machine, whether the backup was performed from a VCB Proxy Server or from the Service Console. This type of restore will overwrite all existing data for the particular Virtual Machine if restored to the existing location.

Required Capability: See Capabilities and Permitted Actions

wedge.gif (136 bytes)To restore a corrupted or missing VMware Virtual Machine using vcbRestore

  1. Check the Virtual Machine Web Console to ensure that the VMware Virtual Machine to be restored is in the "power off" state (if it still exists.)
  2. Create a directory on an available datastore on the ESX Server. In this case we have created the directory restorevm on an available SAN disk located at /vmfs/volumes/SanBackup1.
  3. From the CommCell Console, use the Windows or Linux File System iDataAgent to browse and select the Virtual Machine Disk Image, then click Recover All Selected. From the Restore Options (General) dialog box, select Unconditional Overwrite and Restore to Same Paths. Thereafter, continue your restore. The image file should be restored directly to /vmfs/volumes/SanBackup1/restorevm or restored out of place and transferred to this directory.
  4. When the restore job completes, execute the following command from the command line on the ESX Server:

    vcbRestore -h esxserver.mydomain.com -u root -p password -M 1 -s /vmfs/volumes/44c529af-b8365ad6-7307-0011435b35d5/restorevm

    Where:
    -h        ESX Server Host Name
    -u        ESX Server root login
    -p        ESX Server root password
    -M 1      Restore the VM(vmsys1-flat.vmdk)to a single file
    -s <dir>  Directory of backup image files
              dir=/vmfs/volumes/SanBackup1/restorevm

    NOTES

  5. You will see output similar to the following during the restore:

    [2006-07-25 16:23:29.924 'App' 3076452480 info] Current working directory: /root/scripts
    [2006-07-25 16:23:29.972 'BaseLibs' 9620400 warning] [Vmdb_Unset] Unsetting unknown path: /vmomi/
    Converting "/vmfs/volumes/Vmfs3Vol1//restorevm/vmsys1.vmdk" (VMFS (flat)):
    0%=====================50%=====================100
    **************************************************

    VMware ESX Server Question:

    Registering the virtual machine

       "/ha-folder-root/ha-datacenter/vm/adoniswin23"

    would replace the already registered VM

       "[Vmfs3Vol1] /adoniswin23/adoniswin23.vmx".

    How do you want to proceed?
       0) Abort Restore
       1) Keep Existing
       2) Replace Existing
    Please choose a number [0-2]:

    At the prompt, select 2 to replace the existing entry in the ESX Sever inventory.

    NOTES

  6. From the Virtual Infrastructure screen you will see that this Virtual Machine is now ready for use. Use the Virtual Machine Web Console to restart the Virtual Machine.
  7. The source directory for the backup image files, /vmfs/volumes/SanBackup1/restorevm, is no longer needed and can be deleted.

Back to Top