Solved

Hyper-V VM running off avhd and not vhd

Posted on 2014-02-07
5
1,656 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 37

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 58

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 58

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
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…
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…

696 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