• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3380
  • Last Modified:

Cant copy VHD file, possibly corrupt...

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
jayfletcher
Asked:
jayfletcher
1 Solution
 
markusr13Commented:
Have you tried defrag with error checking/repair (or just error checking/repair)?

-Markus
0
 
jayfletcherAuthor Commented:
havent done the defrag, should i do it on the host or the vm?
0
 
Muzafar MominCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
martfunksCommented:
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
 
rindiCommented:
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
 
BogeholmCommented:
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
 
David Johnson, CD, MVPOwnerCommented:
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
 
jayfletcherAuthor Commented:
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
 
jayfletcherAuthor Commented:
It Worked...
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now