Solved

Cant copy VHD file, possibly corrupt...

Posted on 2012-04-04
9
3,068 Views
Last Modified: 2012-04-15
I have a virtual server running perfectly in hyper-v, i need to migrate it to another virtual host. Usually i turn off the VM, disconnect the VHD then copy the VHD to the new server.

But this one server is not letting me copy it. its a 25gb vhd and the copy process gets to 99% then stops, then it gives me the error "Can't Read source file or disk".

Ive tried compacting it but it gives me a CRC error. Ive done a chkdsk but no fix.

Ive also tried exporting it from hyper-v but it gives me the same CRC error.

My two thoughts are that either the VHD has corruption, or it has problems becuase the VHD is dynamic.

Any thoughts?
0
Comment
Question by:jayfletcher
[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
9 Comments
 

Expert Comment

by:markusr13
ID: 37804868
Have you tried defrag with error checking/repair (or just error checking/repair)?

-Markus
0
 

Author Comment

by:jayfletcher
ID: 37804870
havent done the defrag, should i do it on the host or the vm?
0
 
LVL 10

Expert Comment

by:Muzafar Momin
ID: 37804989
run defrag or scandisk on VHD file (physical location) if still you observe same error then use some VMconvetor like to and convert it to either esx vm or xen vm and then reconvert back to Hyper v VM
0
Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

 

Expert Comment

by:martfunks
ID: 37805003
Hallo,  i found this, take a look.
http://social.technet.microsoft.com/Forums/en-US/virtualmachingmgrhyperv/thread/4f61cfc1-8c18-444c-83df-6a63977c6554/

Do you have a backup of this vhd, try restore it.
Can you start the vm or it is dead? What roles or services has to that vm?
If you have a file server, for example, maybe it is more secure and quick to make from scratch a new server.
0
 
LVL 88

Expert Comment

by:rindi
ID: 37805013
What did you chkdsk, the VM or the Host File-System, or both? did you use the /x or at least the /f switch? Is the Hyper-V Server using RAID and if so, have you made sure the Array is healthy along with it's member disks? If you aren't using an array, but rather a single HD, have you run the HD manufacturer's diagnostic utility on the HD?
0
 
LVL 3

Expert Comment

by:Bogeholm
ID: 37809800
The error May not be related to the VHD-file itself.
Some other processes may be accessing the file causing your copy exercise to fail. Or something times out during copying.

Do you have antivirus app scanning into the folder tree where it is stored? Thy disabeling og exclude the file.

You could try to chop the file into a set of smaller files (copies), using fx. Winzip or Winrar.
0
 
LVL 81

Expert Comment

by:David Johnson, CD, MVP
ID: 37810618
Machine must be shut down and then you can export ithave you tried doing an export of the virtual machine first? This is the recommended method
0
 

Accepted Solution

by:
jayfletcher earned 0 total points
ID: 37830665
The fix was to mount the vhd as a hard disk, copy everything off, then create a new vhd, copy everything back on. Then rewrite the boot sector.
0
 

Author Closing Comment

by:jayfletcher
ID: 37848045
It Worked...
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

688 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