VWware ESXi Deleted Snapshot Files

Posted on 2010-04-05
Medium Priority
Last Modified: 2012-05-09

Today an admin was cleaning up one of our file servers, when he accidentally deleted out an entire shapshot file that should not have been live or located on the file server instead of the vmware store in the first place , but was - filename1_1-000001.vmdk . There is no backup of this shapshot. It is gone.

Now the VM now won't boot, and the logs report:

Message from server.com: VMware ESX cannot find the virtual disk
"/vmfs/volumes/34c09f6d-0dd64aff/VM1/VM1_1.vmdk". Please verify the path is valid and try
again. Cannot open the disk
'/vmfs/volumes/49887fe4-f4e75dfe-7c8d-0004239ac436/VM1/VM1_1-000001.vmdk' or one of the snapshot disks it depends on. Reason: The system cannot find the file specified.

We don't have virtualcenter but we do have console access to the VMware ESXi server.

I have taken the VM offline and created a backup to experiment. Does anyone know a fix for this? There are two snapshots and two disks on the server - it is the second disk that seems to be the problem - the D: drive of the server running the VM.

Looking through the .vmdk descriptor files, it seems like the first snapshot that is missing.

Any suggestions? I've read about the CID chain but that doesn't seem to apply when an entire shapshot is missing.

Thanks a million,

Question by:mikeycisme123
LVL 30

Expert Comment

ID: 29843221
console access to esxi doesn't do much install vSphere client and see if that can restore the vm without the snapshot as a snapshot is not required for a vm to run its a snapshot of the vm for testing for instance

Author Comment

ID: 29844339
Hi - I have vSphere client and am connected - can you describe the procedure to restore the VM?
LVL 24

Expert Comment

ID: 29844811
If you just need to start the VM, edit the vmx file of the VM to point the base vmdk, your current vmx file should be pointing to the latest snapshot file, in your case the one that have been deleted VM1_1-000001.vmdk, look in the VM directory for the base vmdk file, it should be VM1_1.vmdk, edit the vmx file to point to this, before you do any changes to the vmx file just do a quick backup by copying it to another file name, dont worry the vmx file is really small it should take a sec
if you are not sure which one is the base vmdk, run this command
sudo cat TBAP34.vmdk | grep parentCID
you should get parentCID=ffffffff

Take note, there's no way to recover your snapshot files if you dont have proper backup but your VM should be able to boot with outdated data in it


Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

LVL 24

Expert Comment

ID: 29845015
sorry replace TBAP34.vmdk with your base vmdk file :)

Author Comment

ID: 29845170
Thanks - if I have all but the first snapshot - which is the missing one - is there a way to incorporate the latest snapshot back into the VM? I have it's files

Accepted Solution

Matthew England earned 2000 total points
ID: 29869719
Sorry to say, you can not commit snapshots past the one with the missing data file. Snapshots, are similar to incremental backups, in that you can only restore up to the point of the lost snapshot, or the parent disk.


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.
Suggested Courses
Course of the Month7 days, 6 hours left to enroll

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question