Solved

Merge .avhd to .vhd in Hyper-V

Posted on 2014-10-30
5
1,351 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 82

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 39

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Why should I virtualize?  It’s a question that’s asked often enough.  My response is usually “Why SHOULDN’T you virtualize?”
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
Suggested Courses

631 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