Solved

Merge .avhd to .vhd in Hyper-V

Posted on 2014-10-30
5
799 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
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 to another domain controller. Log onto the new domain controller with a user account t…
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…

785 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