VMware

VMFS Recover or Undelete

VERSION 5 Published

Created on: May 19, 2009 12:16 AM by AndreTheGiant - Last Modified:  Aug 8, 2009 11:44 PM by AndreTheGiant

As you know, when you remove a VM or a vmdk disk from disk (and not only from inventory or VM) you loose all your data.
Is possible to roll back? Yes... just restore from a backup. :)

But if you do not have a VM backup? Or a recent one?

The solution could be the VMDK Recovery Tool.

It requires proactive steps to protect the VMFS datastore: only if the block-list (a plain text file that keeps a record of all VMDKs of the virtual machines) is generated automatically it will work in a production environment.
Also if VMs are moved, cloned etc. or reconfigured it must be refreshed or the tool could do more damage than good.

Some limitations of the VMDK Recovery Tool are that is an experimental software (means that the tool is not supported and might not work as expected in all customer environments), it works only in ESX 3.x (is not available for ESXi and for ESX 4.0 ) and you cannot restore from multiple block list files.

To configure this tools there is also an HowTo: Protecting ESX VMFS Stores with Automation


What can I do if I delete the data and I never configure the VMDK Recovery Tool?

In this case you can use some tools that make a search at physical block-level: for example http://www.ufsexplorer.com/
UFS Explorer is designed to make no matter where your data reside. It supports fast and safe access to set of storages, including SCSI/SATA/PATA hard disks, USB mass storage devices, RAID arrays, VMWare, Microsoft Virtual PC, Parallels Workstation, Bochs virtual disks and RAW disk or partition image files.
UFS Explorer did not find any file system or folder structure or file names so all the deteced file are RANDOM#.JPG or RANDOM#.TXT. The data that is stored inside files like for images EXIF and word files the Author are intact so I was able to indentify my data by a combination of looking at file sizes + adding additional fields to the display in windows.
Note that the advanced data scan took about 1 hour per GB.


What can I do if I loose the VMFS partition?

If you only loose the partition, is possible recreate with fdisk.
See: Re: Removed VMFS3 volume from iSCSI target - am I screwed?


For more details on VMFS there is the great Understanding VMFS Volumes
Average User Rating
(7 ratings)




VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities