Solved

Hyper-V VM running off avhd and not vhd

Posted on 2014-02-07
5
1,582 Views
Last Modified: 2014-11-12
I virtualized a physical box some time ago and it has been running fine on Hyper-V 2012. I could create, delete and merge snapshots and the avhd files would disappear. Now I notice that I have no snapshot listed in settings for this server but there is one on the Hyper-V host and according to settings for this guest, it is now attached to the avhd as the data drive and the regular vhd is not listed in settings, tho it is still on the host where it belongs.

The avhd has the GUID name appended to what the vhd was named and is only one-third the size of the vhd. The server is running fine and there are no issues for the users.

How do I get rid of the avhd file and get the vhd back as the primary, and only, drive?
0
Comment
Question by:LarryDAH
  • 2
  • 2
5 Comments
 
LVL 35

Accepted Solution

by:
Mahesh earned 500 total points
ID: 39842985
Have you checked that you don't have even single snapshot left for the server ?
If you do not have any snap shot of server, it should show you empty
Can you please post VM settings snap here with respect to snapshot please.

if this is not the case and If you power off the server, during start it will give you error that HDD not found most probably and in that case you need to attach original VHD again as per my guessing

Mahesh
0
 
LVL 56

Expert Comment

by:Cliff Galiher
ID: 39843234
.avhd files are any time of disk that is dependent on a parent vhd disk. While this most often means a snapshot, they can also be intentionally created separately through the disk creation wizard of Hyper-V, and is created when one chooses to create a "differencing disk."  It operates in very similar fashion as a snapshot. All changes are written to the differencing disk, but the base disk is still required for proper functionality.

You can use the disk convert option in Hyper-V to merge a differencing disk into its parent. It is a different wizard than merging a snapshot, obviously, since no shapshot exists. But what it does under the hood is essentially the same.

More info:

http://blogs.technet.com/b/yungchou/archive/2013/01/23/hyper-v-virtual-hard-disk-vhd-operations-explained.aspx
0
 

Author Comment

by:LarryDAH
ID: 39843297
Well, we do not use differencing disks so I am not sure how it would have gotten created but I will try the merge feature in the link your sent in the off hours, thanks.
0
 
LVL 56

Expert Comment

by:Cliff Galiher
ID: 39843304
As always, HAVE A BACKUP! If the circumstances that created your current state are unknown, there could be other surprises waiting for you. And a failed merge could be painful if you don't have a backup.
0
 

Author Closing Comment

by:LarryDAH
ID: 39857118
Even tho the Hyper-V console did not show the the avhd file it was on the server. The problem turned out to be not enough disk space to finish the merge. It did not give an error that I could find, but when I created a new snapshot, then deleted while watching the server a message flashed about insufficient disk space then disappeared. Once I moved some stuff around it merged all the avhd files.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

708 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

20 Experts available now in Live!

Get 1:1 Help Now