Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Reclaiming VHDX size

$
0
0

Hi,

Hi i have Server 2012 based virtualization Host wit few VMs.

One of the VHDX grew quite large ~ 220 GB. So i went to VM and deleted some logs and windows update files. The disk size inside VM is now 160 GB but VHDX did not reclaimed free space and remained the same ~ 220 GB.

I tried to solve this using these commands using Powershell in VM

Optimize-Volume -DriveLetter C -ReTrim -Verbose

 After this i saw that the additional space was trimmed. I restarted VM but VHDX size did not change.

Afther this i turned off VM and tried command in powershell of virtualization host.

Optimize-VHD –Path C:\Temp\MyVHD.VHDX –Mode Full

The process lasted for about 15 minutes, but after this VHDX size did not change. I also tried to use Compact disk option from the Hyper-V console but this also does not help.

Any ideas how to reclaim free space ?



Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>