Solved

Bad VMDK File / Crashed System

Posted on 2011-09-02
6
500 Views
Last Modified: 2012-05-12
I had a Server 2008 virtual machine running on an ESXi host.  Users were reporting that file access from it was very slow.  I looked around a bit, and found that the file size at the datastore level was much higher than what it should have been for that server (compared it wish another ESXI host that has the exact same specs, and  a similar guest OS, and the size of the one in question was almost double.  I ran a checkdsk on the guest OK, and then ran Disk Defragmenter.  The datastore had been reporting about 30 Gigs free at the beginning of the process (as compared to the one that's working okay, with about 200 free), but after a bit of time the server froze up.  I checked the datastore, and there was only a few megs left of free space.  

I was able to delete an old host that I no longer needed, and freed up some space.  I left the guest turned off, and tried to add the VMDK file as a hard drive for another virtual server that was running fine.  It came up and said it was unformatted and asked if I wanted to format it.  I clicked cancel.  In computer management, it showed up as a FAT file instead of NTFS.

I disassociated it from that machine, and associated it back with the original one.  Now when I try to boot I get a message saying that there's no OS, use recovery disk, etc.  When I put the Windows Server disk in and boot to that, chose the recovery option, get to the dos prompt, and go to the drive and type "Dir" nothing shows up.

I can just rebuild the machine, and probably could have done that in the time it took me to compose this message, but the problem is that the guest o/s is a Domain Controller, and I'd really like to be able to recover it instead of having to remove it from the domain manually and readding it.

Thanks for any suggestions on how to recover the VMDK.
0
Comment
Question by:GMC02108
[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
  • 3
  • 3
6 Comments
 
LVL 120
ID: 36474920
What you describe, seems to suggest that the virtual machine, disk had a snapshot associated with it, would explain, the reason for the increase in disk size, and increase when you started to defragement the disk, and when the datastore was full, the VM would stop.

Also a VM in Snapshot mode is slow.

Did the virtual machine, or have you been using VM Snapshots on the virtual machine?

As for recovery, forget for the moment, that it is a virtual machine and it's a VMDK, the Recovery Process is exactly the same as for a physical machine.

But have you been using snapshots, or have any error messages about the disk?
0
 

Author Comment

by:GMC02108
ID: 36475032
There are a couple of other VMDK files with 0001, 00002 at the end.  There was a snapshot from last January, but I collapsed that yesterday afternoon while I was searching for when I was trying to figure out why the machine was going so slow.  Is there a utility I can run on the VMDK to try and fix it?
0
 
LVL 120
ID: 36475289
There is no utility to fix VMDKs.

You'll need to try a recovery at the VM OS.

Those files usually indicate a snapshot - "maybe" present.

Are they still present, did the snapshot get removed successfully, how long was the VM in snapshot mode?

It's possible that the snapshot, not being closed correctly, has caused the corruption of the virtual disk.
0
When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

 

Author Comment

by:GMC02108
ID: 36475524
When I click on snapshots it says that there aren't any present.  When I deleted it, there was an error message that popped up at the end, but I can't find it in the event log to tell you what it said.  
0
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 36475810
Okay, so your issue, seems to have started with a Snapshot deletion issue, and hence why the Virtual Machine disk is corrupted.

I think it's unlikely that any recovery process is going to be able to recover or fix the corruption, without a means to merge the snapshots correctly, there will be an issue with the main virtual disk.

Try a Windows 2008 Recovery/Repair from the DVD. But I fear the damage may not be repairable.
0
 

Author Closing Comment

by:GMC02108
ID: 36554791
There was no fix, other than rebuilding the server.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

739 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