Solved

Cant copy VHD file, possibly corrupt...

Posted on 2012-04-04
9
2,882 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 80

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

Suggested Solutions

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration of the Data Protection Manager product. Note that this demonstration was prepared on the basis of Windows OS is 2008 R2 and DPM 2010. DATA PROTECTI…
Microsoft has released remote PowerShell capabilities to all commercial Office 365 customers. So you can be controlled via PowerShell and not from the Office 365 admin center Download Windows PowerShell Module for Lync Online http://www.micros…
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…
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…

860 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