Solved

Cant copy VHD file, possibly corrupt...

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

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 87

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 78

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found here: http://www.experts-exchang…
I have put this article together as i needed to get all the information that might be available already into one general document that could be referenced once without searching the Internet for the different pieces. I have had a few issues where…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now