question

JeyKadirgamanathan-2559 avatar image
0 Votes"
JeyKadirgamanathan-2559 asked JeyKadirgamanathan-2559 commented

Deleteting Hyper V Checkpoint deletes .vhdx files of detached virtual drives.

Hi
We are using S2D Cluster to host our VMs.

On one of our VM we have done the following steps, which produced data loss:
1. The VM has 3 VHD (Drive C, E, G) attached on it
2. We created Hyper V production checkpoint.
3. We shut down the vm and detached 2 drives (E and G).
4. We deleted the Checkpoint of this VM and it has deleted the .vhdx files of the detached drives (E, G).
Now, we have only the .avhdx files of this dirives - not usable!

We tried it on Server 2016 and on Server 2019, the same behaviour.

windows-server-hyper-v
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

From your description, we find the issue is related to Hyper-v, I would remove the tag of "msc-virtual-machine-manager-hyper-v", which represents deploying Hyper-v in SCVMM. Thanks!

0 Votes 0 ·

Yes, you are right.
We use SCVMM to deploy and mange VMs in our S2D Cluster.
And I have done all this steps in VMM.

I tried it also over failover cluster manger, the result is the same.

It is hyper v issue

0 Votes 0 ·

1 Answer

jiayaozhu-MSFT avatar image
1 Vote"
jiayaozhu-MSFT answered JeyKadirgamanathan-2559 commented

Hi,

Thank you for your visit!

Based on your descriptions, it is not recommended to delete checkpoints when the disk drives are removed from your VM.

This is because, upon the disks are mounted, when you create checkpoints, the specific VHD disk will also generate the corresponding avhdx. files. In short, the avhdx. files are relied on their parent VHD file. If you delete your checkpoints, your avhdx. files will merge into their parent VHD files. As a result, without disks mounted, the corresponding avhdx. files cannot find their parent VHD files to merge.

If you have already conducted your deletion, and if you have done backup for your VM, then you can try to restore your VHD files first, delete your checkpoints and remove your disks (E, G).

Thank you for your time!

Best regards
Joann


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi
Thanks for your response.
For me is that clear, if there is a checkpoint created on a vm, don't change VM configuration!
Is there a official documentation form Microsoft according to that?
I want to know, it is a bug or not.

From my perspective, it should not delete .vhdx files of detached drives, even they are included in Checkpoint.




0 Votes 0 ·