Solved

Merge .avhd to .vhd in Hyper-V

Posted on 2014-10-30
5
722 Views
Last Modified: 2014-11-23
Hi all, I am looking for some advice on the best way to manage a potential snapshot problem.

Last weekend I installed some MS updates onto a Windows 2008 R2 Hyper-V server VM, this server had a snapshot and once the updates installed the server booted. The snapshot merged, but the server would not boot again stating it could not find the .AVHD drive.  The drive it was looking for was the snapshot ID, this has totally been blown away following the potential merge.  Recovery steps are currently underway.

Checking my other installations I noticed the following, I have .AVHD files associated to a server running drives that actually has no snapshots listed.  This server has been rebooted to see if a merge happened but when it came up again (thankfully) the .AVHD files are still being used (see below).

Does anyone know the best (safe way) to merge these files?

Thanks in advance for any suggestions and advise :-)

Hyper-V-Server
Cluster-Storage-for-Server
Cluster-Storage
Cluster-Storage-data
0
Comment
Question by:mercuriousu2
  • 3
5 Comments
 
LVL 79

Accepted Solution

by:
David Johnson, CD, MVP earned 250 total points
ID: 40414964
you are using a differencing disk which will always have a avhd.
0
 

Author Comment

by:mercuriousu2
ID: 40415000
It does not on all of my other VM's running, not until such time as a snapshot is taken does the .AVHD appear.
0
 
LVL 38

Assisted Solution

by:Philip Elder
Philip Elder earned 250 total points
ID: 40415012
How to merge is here: TechNet: Manually Merge VHDs.

Perhaps a PowerShell script was run to fire off a snapshot for each VM or they were set up with Differencing Disks to begin with using a base OS image?

Note that the method indicated requires VM downtime. Plus, you need enough storage for both source and destination files (depending on your CSV layout).

We usually pull the main file and one AVHD file at a time over to a standalone system with Hyper-V on it to run the merge process.
0
 

Author Comment

by:mercuriousu2
ID: 40425710
Thanks for the comments, checking online I don't think this is a differencing disk though.

The VM has been in use for a few years and this has not been a problem before, I assume that the last snapshot taken at some point did not fully get shown on the interface?

This is what I see:
Hyper-V-Server-Snapshots.jpg

Although the snapshot is mentioned, the VM does not show it in the pane below the high-lighted running VM.

As this is a large production server, I think the test will be to not re-boot but to shut it down and then restart it.  I will do this at the weekend, this will allow time to first take a local backup and enable enough time to recover should anything actually go wrong.

Any suggestions to a good ADHOC local backup option on a Hyper-V, looking at Veeam?
0
 

Author Closing Comment

by:mercuriousu2
ID: 40461543
Finally found time to shut down the server, I stand corrected as this was indeed a differencing disk.  It's the only one in our system that has been originally setup like this is appears.

At least I know there is not a bigger issue going on with this regarding missing snapshots not showing on the host!

Thanks for you time in looking as this.

Points shared :-)
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
Introduction RemoteFX is already in use today, but you're probably not aware of it.  With the advent of Windows 2012 and Windows 8, RDP has gotten a whole lot better due to the fact that RDP now uses even more RemoteFX technologies to make desktop …
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

863 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