VMware Cloud Community
Rafael-Trevisan
Contributor
Contributor
Jump to solution

Restore VM That snapshots were deleted

Hi, We've had some problem with the current situation:

VM had 2 .vmdk disks, one begin the name of the VM, and other beign the 0001.vmdk, due to lack of space, the other disk was deleted, as it wasnt mounted by the VM, but now the VM wont boot, presenting the error 

"unable to enumare all disks vmware"

is there any way to restore this VM, with only the 0001.vmdk file remaining?

0 Kudos
1 Solution

Accepted Solutions
NateNateNAte
Hot Shot
Hot Shot
Jump to solution

The snapshot only captures the state of the VM.  But with your symptoms, it sounds like you might have deleted the vmdk with the VM name - which would have been the primary vmdk file for your VM - the snapshot might have been the 0001.vmdk.  

The short answer is no - unless you have a backup (vmware or third part tool).

By chance do you have a back-up solution in place?  If not...you might be out of luck.

Was the lack of space because of a limit in the datastore?  

A recommendation for the future would be to consolidate snapshots, vs just deleting. Or increasing/growing the datastore.  Or vMotion a critical VM to a new or larger datastore.

View solution in original post

0 Kudos
3 Replies
NateNateNAte
Hot Shot
Hot Shot
Jump to solution

The snapshot only captures the state of the VM.  But with your symptoms, it sounds like you might have deleted the vmdk with the VM name - which would have been the primary vmdk file for your VM - the snapshot might have been the 0001.vmdk.  

The short answer is no - unless you have a backup (vmware or third part tool).

By chance do you have a back-up solution in place?  If not...you might be out of luck.

Was the lack of space because of a limit in the datastore?  

A recommendation for the future would be to consolidate snapshots, vs just deleting. Or increasing/growing the datastore.  Or vMotion a critical VM to a new or larger datastore.

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

>>> ... as it wasnt mounted by the VM ...
How did you check this?

To find out what option you have with the least amount of data loss, please run ls -lisa > filelist.txt from the command line to get a complete listing of the current ly existing files, and attach that filelist.txt to your next reply.

In addition to this run grep vmdk *.vmx to find out which .vmdk file the VM is currently pointing to.

Note: Both commands need to be run in the VM's folder.

André

0 Kudos
aurora-chase
Contributor
Contributor
Jump to solution

If you have a backup before, you may be able to do it......By the way, Vinchin Backup & Recovery is a good backup solution and easy to use. I often backup my VMs with it and never lost any data.

0 Kudos