Hyper-V AVHDX is huge.  Disk is full.  Only one checkpoint.

K A
K A used Ask the Experts™
on
Apologies for the newbie question.  Hyper-V (Windows Server 2016).  AVHDX file is huge (600+GB).  The D: drive where vhx and avhdx files are stored is full.  Cannot extend D: volume because it is grayed out.  Have tried shrinking C: drive, can't.  

Can I COMPACT the AVHDX file?  Or should I MERGE it?  Or DELETE it?  Will attach a picture of the snapshot screen.
Screenshot-of-Hyper-V-Checkpoints.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Philip ElderTechnical Architect - HA/Compute/Storage

Commented:
The catch with all checkpoints/snapshots is the need to create a new parent once those changes are merged back in. :(

You're stuck with manually merging things via this article.

Or, if you have a backup, shut the VM down, take a backup, delete the VM, create a new shell, restore the VM, and don't take another snapshot again. ;)

EDIT: Obviously that delete includes the VHDX/AVHDX files associated.
K A

Author

Commented:
Thanks, Philip... but I'm still left with a few questions:

1.  Can I compact the existing AVHDX file?

2.  This will expose my noobiness:  It seems to me that the "level" called "Now" in my picture would represent the CURRENT status of our VM... and that if we delete the entry dated 2018, then we're just deleting the ability to revert back to that point in time.  Yes?  No?
Hey,

You could also create another checkpoint and export it onto external drive
- Most likely to be bigger than the original
Mount it from external drive for testing, if ok
Delete the Virtual machine and recreate from scratch, mounting the exported VHD back.
- Otherwise it creates the checkpoints again..

Notes:
Deleting the Checkpoint is merging the changes up one level.
Applying the checkpoint is discarding the changes, going back in time

Cheers
Checkpoints.png
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

Technical Architect - HA/Compute/Storage
Commented:
1: Parent is not the problem. The differencing disk is. All of the changes made in the OS/Data since the snapshot/checkpoint was taken is stored in that one huge file. There is no compacting that.

2: As already mentioned, deleting the existing snapshot/checkpoint in Hyper-V Manager will initiate a MERGE. That process requires enough free space to create a whole new parent VHDX file. Obviously, there is not enough free space to do so. Do not delete that snapshot/checkpoint. That will create no end of heartache.

I'm not sure an export to another machine somewhere on the network would work since there's no space left at all.

The only real option, and quickest for that matter, is the delete and restore from backup method.
Backup & restore would be quicker, if you have a good software/strategy.

Otherwise buy an external USB3 (the server might not support, but you could also buy USB3 card and install prior). 4TB is plenty and costs bugger all. Done it before.

V.
K A

Author

Commented:
Thank you all.

For the next few hours/ day, in order to "stop the bleeding" and prevent even more disk space from being taken up, should we turn off "Enable checkpoints?"  If we do that, will it damage the VM if we do nothing else?   (See attached.)
Screenshot-of-Hyper-V-Checkpoint-Set.jpg

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial