[Last Call] Learn how to a build a cloud-first strategyRegister Now


Hyper-v not merging snapshots on shutdown

Posted on 2011-05-02
Medium Priority
Last Modified: 2012-05-11
Dear experts,

I have a Hyper-V server with a virtual machine that had some snapshots. I no longer need these snapshots so I deleted them from the Hyper-V management GUI. There are no more snapshots for this VM.

When I shut down this VM, merging should start so I end up with 1 clean VHD file instead of 1 VHD + 2 AVHD files. However, it does not seem to work.

In the event log I can see the following message: <VM NAME> background disk merge failed to complete: General access denied error (0x80070005).

The virtual disk resides on a volume with 16GB of free space. The VHD file is 100GB and the 2 AVHD files are 1.5GB and 8GB. As far as I can see, this should be enough space for merging.

Do any of you have some experience on this?
Question by:Supracom
  • 5
  • 5
LVL 124
ID: 35508098
Are you using any hardware by the Vendor Intel?

Intel motherboard or storage controllers?
LVL 124
ID: 35508143
As you may have noticed with the access denied message, it's possible that security of the AVHD files, do not belong, of have the GUID of the Virtual Machine to access.

Check the Security Permissions of the AHVD files. (snapshots)

Author Comment

ID: 35508222
Hi hanccocka

Lightning fast response. Thanks for that

I noticed that one AVHD does not have that GUID ACL of this machine. However, I cannot add it either. Must I use some manual command/tool for that?
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.


Author Comment

ID: 35508235
And yes, it's a HP DL380 G7 packed with Intel devices
LVL 124
ID: 35508275
I don't think it has an Intel Storage controller!

that the issue, missing ACL.

if you look at this article, you'll get the idea, of adding the GUID back to AHVD snapshot file.
LVL 124
ID: 35508278

Author Comment

ID: 35508651
I managed to add the correct ACL entry to the single AVHD file that was missing it. However, still no luck.

I attached an output from Process Monitor while I was shutting this machine down. I logged all entries from VMMS except the ones that were successfull.

The problem is with SRV-04

Can you see anything that makes sense?
LVL 124
ID: 35508715
Can you check with Process Explorer that this file is not locked?

Author Comment

ID: 35511577
I don't think so, but let's check:

Offcourse it is locked bij process "System" when it is running. When it is turned off, I am able to move this file to another location so there's no lock on it at that moment.

Or do you mean something else?

Accepted Solution

Supracom earned 0 total points
ID: 37233749
By the way, I fixed this myself by using a workaround.

For anyone that is facing the same problem, you could create a new (empty) virtual disk and mount it to the existing VM. Then, just boot your favorite imaging software (I used Ghost) and image your machine to the new virtual disk. Shut down the VM, attach the new virtual disk instead of the problematic one (leave this one detached) and turn the VM back on. If all is well, you can delete the old VDH and AVHD files.

Please close this question. No solution is rewarded
LVL 59

Expert Comment

by:Darius Ghassem
ID: 37466508
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

834 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