Solved

How do I undelete a VMWare disk (.VMDK) ?

Posted on 2008-10-17
7
5,521 Views
Last Modified: 2012-05-05
I was multitasking this morning and accidentally deleted the wrong VMWare disk from the VM console.  The disk was located on a separate physical disk only used for this virtual machine, so nothing else has been written to the drive.

When I tried to use several undelete utilities I was able to find the server.VMDK file, but it was 0 bytes.  

Is there anything else I can do?  OnTrack isn't an option, since this data isn't that valuable to the company; however it has value to me.

Regards
0
Comment
Question by:scoco
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 4

Accepted Solution

by:
michote earned 500 total points
ID: 22745417
If the undelete utilities give you 0 bytes, most likely it was overwritten by VMware. Most of them do the same thing, there is no one better than the other.

Because when something gets deleted, windows only erases the the link from the File Allocation table. Undelete utilities look for this and fix restore them. The problem is that if something overwrites it, or any piece of it, undelete utilities will mark it as gone. This is made worse by the fact that VMware partitions are big files ranging from 2gb to bigger. The bigger it is the bigger the chance it gets overwritten by something
0
 
LVL 4

Expert Comment

by:michote
ID: 22745430
And you don't have to do it, there are a lot of background processes that are constantly writing to the hard drive. This is a lost cause, if undelete utilities don't find it. The data is gone.
0
 
LVL 18

Expert Comment

by:sk_raja_raja
ID: 22745712
1. Sorry to say that you're out of luck. There is no 'undelete' functionality in the VMware tools, and I don't believe there are any undelete tools out there that understand the VMFS file system. You'll need to recover from a backup.
On the other hand, VMware support *may* have a tool. It's worth logging a call and asking the question.

2.Probably a good time to set up AD authentication on your ESX servers and turn off root login from ssh. A non-root user would not have been able to delete the vmdk file without using sudo or 'su -' first. Also make sure that rm is aliased to 'rm -i'.
http://www.vmware.com/pdf/esx3_esxcfg_auth_tn.pdf has more information
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 4

Expert Comment

by:michote
ID: 22745829
It is a normal server, not ESX.
0
 

Author Comment

by:scoco
ID: 22746090
This is not ESX.  It's running on a Windows hosted formatted NTFS.  

Sounds like my drive may have gone to data heaven.
0
 
LVL 4

Expert Comment

by:michote
ID: 22746144
Yep, I am sorry.
0
 

Author Closing Comment

by:scoco
ID: 31507298
Thanks for the quick response.  I finally had to accept reality :(  Fortunately the loss of data was only an annoyance and not mission critical.
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Determining the an SCCM package name from the Package ID
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

752 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