HELP!!!! Reduce VHD Size


  • Hi,

    On Hyper-V host (Windows Server 2012 r2), I have the following setup

    C: 300GB - 150GB Free space

    D: 1.2TB - 60GB Free Space

    C Drive has VHD for C drive & D has a Data VHD drive sized 960GB.

    Inside the Virtual Server, Data drive (disk 1) has  a partition sized 400GB & 560GB unallocated space.

    I have tried to use Edit VHD Wizard & it has no option to Shrink and when trying to compact, it took hours and hours without much progress.

    Is there a fast way of reducing the VHD size by 560GB (unallocated spaces not used)

    Thanks in advance.




    Sunday, March 12, 2017 1:29 PM

All replies

  • That 560GB unallocated space, was that always unallocated? If there once was data, you need to create a partition again and write zeroes to it (with PRECOMPACT or another tool).

    You should also run PRECOMPACT against the 400GB partition.

    (Precompact fills empty clusters with zeroes. VHD compaction removes zero-filled clusters from the VHD file.)

    Sunday, March 12, 2017 3:13 PM
  • Create a new VHD of the size you want and copy the data from the existing VHD to the new VHD.  That will rearrange all the data on the disk more quickly than any other attempt to shrink the VHD.

    . : | : . : | : . tim

    Sunday, March 12, 2017 5:15 PM
  • Hi,
    Are there any updates on the issue?
    You could mark the reply as answer if it is helpful.
    Best Regards,

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Wednesday, March 22, 2017 5:51 AM