Solved

Cant copy VHD file, possibly corrupt...

Posted on 2012-04-04
9
2,819 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
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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

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 79

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Introduction: Sometimes when I receive a call from my users to solve their problems it is very difficult for me to found their computer IP address. Even finding their computer Host to provide remote support can be a problem.  So I resorted to Goo…
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
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…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

772 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