I made several checkpoints before an update, and now the storage drive is full, the VM has stopped, and AVHDX files are still there. What should I check first without risking the disk chain?
How do I safely deal with a full drive and leftover AVHDX files?
Answers
First, donโt delete or rename any AVHDX files. One of them may be the VMโs current disk, and deleting a parent in the chain can make the whole guest unusable. Pause backup or checkpoint jobs that might still be working on this VM, then make a copy of the VM files to other storage if you can.
Free space by moving unrelated data or adding storage, not by guessing which VM disk file is safe to remove. Once thereโs room for a merge, check the VMโs disk settings and checkpoint list, and use Hyper-Vโs supported merge or checkpoint-removal options. If the chain is unclear or you donโt have a usable backup, get support before changing it.
Reply to this answer
Check the backup software before trying to clean up anything manually. A backup job can create a temporary checkpoint and leave it behind if the job stalls or fails. Look for an active or stuck job, cancel it only through the backup tool, and check its job history for errors. Then see whether Hyper-V starts merging the disks.
If the backup tool no longer recognizes the checkpoint, or this happens again after a clean run, collect the job logs and Hyper-V events and contact the backup vendor. Repeatedly making new checkpoints or deleting files can make recovery harder.
Reply to this answer
For a careful diagnosis, inspect the disk chain rather than relying only on the checkpoint list. Hyper-Vโs disk inspection tools or PowerShell can show each AVHDX parent path. Compare that chain with the disk path actually attached to the VM. An empty checkpoint list does not by itself prove that every AVHDX is unused.
Only merge once youโve confirmed the chain and have enough free space. Work from the active child toward its parent using Hyper-Vโs merge tools, and keep an untouched copy of the files until the VM boots and the data checks out. If you canโt establish the right order, stop and use a verified backup or get an experienced Hyper-V admin involved.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions