VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (6 pts)
13 Replies Last post: Jun 26, 2009 2:07 PM by jsjaco37  

Trying to recover deleted snapshot files. posted: Jun 24, 2009 8:24 AM

Click to view jsjaco's profile Novice 6 posts since
Oct 12, 2008

Hello,

I am new to the VM world as well as to linux. I have a customer that is running ESXI 3.5 and decided that there was a need to delete some of their snapshot files to help increase performance. Is there a way to restore these files from the datastore? The VM will not start. The error message appears " A file was not found. There are 3 virtual hard drives and the files for the first two are there, but the file for the third is missing.

Thanks,

Jeff

Re: Trying to recover deleted snapshot files.

1. Jun 24, 2009 9:41 AM in response to: jsjaco
Click to view matthiaseisner's profile Enthusiast 40 posts since
Jun 5, 2009

Hi Jeff!

Could u pls be so kind and describe how the files have been deleted! This will help to think about the problem in detail. In detail I am interested if these files have been just deleted (using GUI or CLI) or did u use the snapshot manager.

Furthermore is there a possibility to restore the whole VM from a backup?

Cheers,

Matthias

Re: Trying to recover deleted snapshot files.

3. Jun 25, 2009 12:34 AM in response to: jsjaco
Click to view matthiaseisner's profile Enthusiast 40 posts since
Jun 5, 2009

Hi Jeff!

If u delete snapshot files pls always use the snapshot manager because it will ensure that the snapshots are persisted to the VMDK file if necessary.

Also consider that snapshots should only be used for temporary action. Pls don't use them as backup.

To backup a VM use VCB. This will quiesce the VM and the u're able to backup the VM, or u also can shut down the VM and just copy all files. For backup or vmotion consider that u have no active snapshot.

Cheers,

Matthias

Re: Trying to recover deleted snapshot files.

4. Jun 25, 2009 3:35 AM in response to: matthiaseisner
Click to view Dynamax's profile Enthusiast 30 posts since
Feb 16, 2008
can you list the contents of the relevant vm folder on the datastore. It mabe the -flat.vmdk file is still there and you're just missing the vmdk file to the third disk which you can recreate.

Also your vmx file would be handy to see what it is referencing

Re: Trying to recover deleted snapshot files.

6. Jun 25, 2009 5:45 AM in response to: jsjaco
Click to view Dynamax's profile Enthusiast 30 posts since
Feb 16, 2008

this should help. You'll need to rename the vmdk to whatever one you're missing from the 3 listed in the vmx file you just posted

http://www.vm-aware.com/2008/06/23/recreating-missing-vmdk-descriptor-files/

Re: Trying to recover deleted snapshot files.

8. Jun 25, 2009 6:00 AM in response to: jsjaco
Click to view Dynamax's profile Enthusiast 30 posts since
Feb 16, 2008

have you got access to the machine to log onto the console then you wont need ssh.

Do you have the root password. You might not be able to directly log in with root so you may need a normal user login and then have to su to root. Do you know these?

Re: Trying to recover deleted snapshot files.

10. Jun 25, 2009 6:30 AM in response to: jsjaco
Click to view Dynamax's profile Enthusiast 30 posts since
Feb 16, 2008

alot of setups dont allow the root user to directly log onto the console. Therefore usually another user account is created, once logged on with that account you issue -su command and that will ask for the root password and allow you root access. Do you have a normal account. If you connect the vi client directly to the esx server you could create one and use this to log on and -su.


Re: Trying to recover deleted snapshot files.

12. Jun 25, 2009 7:41 AM in response to: jsjaco
Click to view Dynamax's profile Enthusiast 30 posts since
Feb 16, 2008

log in with that user on the console then type su -

it will ask for the root password

Re: Trying to recover deleted snapshot files.

13. Jun 26, 2009 2:07 PM in response to: Dynamax
Click to view jsjaco37's profile Lurker 1 posts since
Jun 26, 2009
Thank you everyone that gave assistance. This seemed to turn out to be a lost battle.

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