If the virtual hard disk is not NTFS formatted, you must prepare the virtual hard disk for compacting by using a non-Microsoft disk utility program to replace the blank space with zeroes. Increases the storage capacity of a dynamically expanding virtual hard disk or a fixed virtual hard disk. Applies to differencing disks only. Allows you to combine the changes stored in a differencing disk with the contents of the parent disk.
You can either copy the contents of the parent disk and differencing disk into a new virtual hard disk, which leaves both source disks intact, or you can apply the changes to the parent disk. If you select a differencing disk and the parent virtual hard disk cannot be located, this page appears automatically.
If the disks are part of a chain of differencing disks, this page will appear if the wizard cannot locate any of the disks in the chain. When a VHD has been attached that is, made available to the system for use , it appears blue. If the disk is detached that is, made unavailable , its icon reverts to gray. You must be a member of the Backup Operators or Administrators group, at minimum, to complete these steps.
Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. When working with Hyper-V dynamically expanding disks, there is always a risk that those disks will grow uncontrollably and reach their maximum size in no time. The only way to deal with this issue is to regularly monitor disk size changes and then manually reconfigure the virtual hard disk properties. To ensure effective storage space allocation, you can either shrink or compact virtual hard disks.
What is a dynamically expanding disk? When you first create a dynamically expanding disk, it is small in size and only takes up the storage space that it actually needs. A dynamically expanding disk grows when new data is added to it, thus allowing you to minimize storage costs. Moreover, dynamically expanding disks work well in testing and development environments, and are greatly compatible with servers running non-disk intensive applications.
How can you reduce the disk size? However, deleting files from the virtual hard disk will not resolve this issue. The only way to do this is to manually reconfigure the disk through shrinking or compacting. When the disk has reached its maximum size, you should open the Edit Disk wizard in Hyper-V Manager and select whether you want to shrink or compact a virtual hard disk.
Remember that the virtual machine VM should be turned off for these operations to work. What is the difference between shrinking and compacting virtual hard disks? When compacting a Hyper-V disk, the physical disk space consumed by a virtual disk is reduced and unused physical disk space gets reclaimed.
The shrink option reduces the storage capacity of the virtual hard disk, while the compact option allows you to compact the file size of a virtual hard disk, leaving the storage capacity intact. Looking for a powerful yet simple and affordable data protection solution? Now you can perform VMware vSphere backup , set up custom disaster recovery workflows, backup Office workloads and even test your Microsoft Hyper-V backups from one centralized web interface. In Hyper-V environment, you can shrink, convert, expand, merge, reconnect or compact a virtual hard disk by editing the corresponding file using either the GUI or CLI tools.
Any virtual hard disk type fixed, differencing, and dynamically expanding has a fixed upper size limit, which can be reduced using the shrink operation. To shrink the virtual hard disk of the selected VM, you should do the following:.
0コメント