Computer >> Computer tutorials >  >> Networking >> Networking

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 ManagementHow to Shrink and Extend the Volume in Hyper-V 2019
  5. Right click on the Disk 1 (50.00 GB) and then click Shrink Volume…How to Shrink and Extend the Volume in Hyper-V 2019
  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.How to Shrink and Extend the Volume in Hyper-V 2019
  7. Congratulations. You have successfully shrink your volume.How to Shrink and Extend the Volume in Hyper-V 2019
  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 shrunkHow to Shrink and Extend the Volume in Hyper-V 2019
  9. Under the Welcome to the New Simple Volume Wizard click NextHow to Shrink and Extend the Volume in Hyper-V 2019
  10. Under Specify Volume Size click NextHow to Shrink and Extend the Volume in Hyper-V 2019
  11. Assign the following drive letter and click Next. In our case it is F:How to Shrink and Extend the Volume in Hyper-V 2019
  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.How to Shrink and Extend the Volume in Hyper-V 2019
  13. Under Completing the New Simple Volume Wizard check the configured settings and then click FinishHow to Shrink and Extend the Volume in Hyper-V 2019
  14. Congratulations. You have successfully created a disk.How to Shrink and Extend the Volume in Hyper-V 2019
  15. Open the File Explorer (Hold Windows logo and press E)
  16. Verify if the disk is properly shrunk and ready to use.How to Shrink and Extend the Volume in Hyper-V 2019

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.How to Shrink and Extend the Volume in Hyper-V 2019
  3. Under Delete simple volume click Yes to delete the volumeHow to Shrink and Extend the Volume in Hyper-V 2019
  4. Congratulations. You have successfully deleted the volume.How to Shrink and Extend the Volume in Hyper-V 2019
  5. Right click on the Backup 1 and then click Extend Volume…How to Shrink and Extend the Volume in Hyper-V 2019
  6. Under the Welcome to the Extend Volume Wizard click NextHow to Shrink and Extend the Volume in Hyper-V 2019
  7. Under Select Disks, select the volume and then click Next. In our case, the selected disk is Disk 1 25075 MB.How to Shrink and Extend the Volume in Hyper-V 2019
  8. Under Completing the Extend Volume Wizard check the settings and then click FinishHow to Shrink and Extend the Volume in Hyper-V 2019
  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.How to Shrink and Extend the Volume in Hyper-V 2019
  10. Open the File Explorer (hold Windows logo and press E)
  11. Verify if the disk is properly extended and ready to use.How to Shrink and Extend the Volume in Hyper-V 2019