Hyper-v not merging snapshots on shutdown

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?
SupracomAsked:
Who is Participating?
 
SupracomConnect With a Mentor Author Commented:
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
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Are you using any hardware by the Vendor Intel?

Intel motherboard or storage controllers?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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)
0
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.

 
SupracomAuthor Commented:
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?
0
 
SupracomAuthor Commented:
And yes, it's a HP DL380 G7 packed with Intel devices
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
0
 
SupracomAuthor Commented:
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?
Logfile.CSV
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Can you check with Process Explorer that this file is not locked?
0
 
SupracomAuthor Commented:
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?
0
 
Darius GhassemCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.