?
Solved

Merge .avhd to .vhd in Hyper-V

Posted on 2014-10-30
5
Medium Priority
?
1,615 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
[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
  • 3
5 Comments
 
LVL 83

Accepted Solution

by:
David Johnson, CD, MVP earned 750 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 39

Assisted Solution

by:Philip Elder
Philip Elder earned 750 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Suggested Courses

719 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