Shrink Option is not avaialable

Aziz Husain 196 Reputation points
2021-02-01T06:09:08.987+00:00

Dear All,

I am not getting option to shrink in the disk in hyper v VM Setting --> edit disk, VM, I have 1.8 TB unallocated space inside the disk and i want to free that space.

Thanks
Aziz

62382-image.png

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,735 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Leon Laude 85,816 Reputation points
    2021-02-01T07:49:04.077+00:00

    Hi @Aziz Husain ,

    It's not possible to shrink a VHDX file because you cannot shrink the volume on the virtual disk, for more information read the blog post here:
    https://blog.workinghardinit.work/2016/08/09/you-cannot-shrink-a-vhdx-file-because-you-cannot-shrink-the-volume-on-the-virtual-disk/

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Best regards,
    Leon


  2. Eric Siron 1,566 Reputation points MVP
    2021-02-01T16:45:45.047+00:00

    Assuming that you are using a currently-supported version of Hyper-V (not 2008 R2 or older), then you can create a VHDX from the VHD.

    1. Shut down the VM.
    2. Detach the VHD from the VM.
    3. Create a new dynamically expanding VHDX from the source VHD (screenshot below).
    4. Shrink the newly created VHDX.
    5. If you wish, convert to fixed.
    6. Reattach the final VHDX to the VM.
    7. Test that everything works.
    8. Delete the old VHD and any intermediary VHDXs.

    62624-image.png

    0 comments No comments

  3. Mikhael Kosminsky 0 Reputation points
    2024-07-17T18:00:32.3233333+00:00

    Op, how did you fix this? im facing this same issue right now, appreciate any feedback! Thanks!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.