How to Shrink and Extend the Volume in Hyper-V 2019

In the previous article, we talked about adding a virtual disk to the virtual machine. In this article, we will walk you through the process of shrinking and extending the volume based on your needs.

In order to do so, we will create a scenario. We are running Windows Server 2019 on the virtual machine. It has two disks, the system disk that has 40 GB and a second disk that has 50 GB. In the first part of this article, we will shrink the disk to 50 % and then extended it by 100 %.

Shrink Volume on the Virtual Machine

  1. Open the Hyper-V Manager
  2. Select the host and connect to the Windows virtual machine
  3. Login in the Windows Server 2019 or Windows client machine
  4. Right click on the Start menu and click on Disk Management
  5. Right click on the Disk 1 (50.00 GB) and then click Shrink Volume…
  6. Enter the amount of space to shrink in MB and then Shrink. In our case, we will shrink the volume to 25 GB. Please note that you cannot shrink a volume beyond the point where any unmovable files are located.
  7. Congratulations. You have successfully shrink your volume.
  8. Right click ok the unallocated volume and then click New Simple Volume…In our case, we will initialize and format 24.49 GB that is previously shrunk
  9. Under the Welcome to the New Simple Volume Wizard click Next
  10. Under Specify Volume Size click Next
  11. Assign the following drive letter and click Next. In our case it is F:
  12. Under Format Partition keep the default settings for File system and Allocation unit size and change the Volume label and then click Next. In our case, it is Backup 2.
  13. Under Completing the New Simple Volume Wizard check the configured settings and then click Finish
  14. Congratulations. You have successfully created a disk.
  15. Open the File Explorer (Hold Windows logo and press E)
  16. Verify if the disk is properly shrunk and ready to use.

Extend the Volume on the Virtual Machine

  1. If you have closed the Disk Management, please open it again
  2. Right-click on the Backup 2 partition that we have previously and then click Delete Volume.
  3. Under Delete simple volume click Yes to delete the volume
  4. Congratulations. You have successfully deleted the volume.
  5. Right click on the Backup 1 and then click Extend Volume…
  6. Under the Welcome to the Extend Volume Wizard click Next
  7. Under Select Disks, select the volume and then click Next. In our case, the selected disk is Disk 1 25075 MB.
  8. Under Completing the Extend Volume Wizard check the settings and then click Finish
  9. Congratulations. You have successfully extended your volume. In our case, we extended hard disk from 25 GB to 50 GB as shown in the screenshot.
  10. Open the File Explorer (hold Windows logo and press E)
  11. Verify if the disk is properly extended and ready to use.
ABOUT THE AUTHOR

Jasmin Kahriman


Jasmin is a tech-savvy Systems Engineer with over 15 years of experience in IT infrastructure, holding multiple IT certifications including CNIP, MTA, MCP, MCSA, MCT, Server+, and Network+.