Hyper-V | Convert Fixed Size VHD to Dynamic
Which disk type did you choose when creating your Hyper-V virtual machine? If you created a fixed size disk, did you have the storage problem? In this article, you can find the solution to convert Hyper-V disk type.
What is fixed disk and dynamic disk
When you create a Hyper-V virtual machine, you are asked to choose the disk type. Mostly, you may choose fixed disk or dynamic disk as virtual machine storage. So what’s the difference between Hyper-V fixed VHD and dynamic VHD?
Fixed-size disks are file-based virtual hard disks (VHDs) that have the pre-allocated size on the physical volume. On the other hand, Dynamically expanding VHDs start with small size, usually only kilobytes, but expand as additional storage space is required.
Fixed disk vs Dynamically expanding VHD
Before converting Hyper-V fixed disk to dynamic, you need to know the difference between fixed disk and dynamic disk. So in this section, we will discuss the differences between the fixed disk and dynamic disk in detail.
Fixed Disk: This type of disk will be divided with a fixed size at the time of creation.
Pros: It usually provides better performance when running applications that require advanced disk activity. It won’t change size when data is deleted and added.
Cons: The disadvantage is that it takes longer to create large fixed disks and the extra disk space reserved for future growth cannot be used for other virtual machine files, which takes up real resources.
Dynamically Expanding Disk: It is small at the beginning of creation, but gradually get larger as data is added to it.
Pros: It’s flexible to use physical storage space. It is recommended for servers that do not contain applications that use disks intensively.
Cons: As the disk expands, the performance will be degraded and the speed of reading data will be slowed down. And it’s riskier to cause disk fragmentation.
If your virtual machine requires frequent disk activity but lack of capacity, you just expand Hyper-V disk size. But if you still want to convert Hyper-V disk, please refer to the next part that introduces the detailed steps to convert fixed disk to dynamic.
How to convert fixed disk to dynamic in Hyper-V
You can convert Hyper-V fixed disk to dynamic disk through Hyper-V Manager, which allows you to utilize disk space flexibly and efficiently. If you want to convert dynamic to fixed disk in Hyper-V, the process is similar.
Steps of Hyper-V convert fixed disk to dynamic:
1. Access to Hyper-V Manager, make sure you have powered off the virtual machine.
2. Right-click the VM and select Settings. On the opened window, locate the virtual hard disk and select Edit.
3. Click Next to Choose Action, select Convert >> Next.
4. On Choose Disk Format, select VHD or VHDX >> Next. VHD format support 2TB size of Virtual Hard Disk and VHDX format support 64TB size of Virtual Hard Disk.
5. On Choose Disk Type, you can convert the Fixed size disk to Dynamically expanding that provides better use of physical storage. The disk file created is small initially and changes as data is added.
6. Specify a destination to store the dynamic virtual hard disk. Then review the information and click Finish to close the window. You can notice that the converted VHD becomes smaller than the previous one because of the “Dynamically expanding”.
But dynamic virtual hard disks are not recommended for virtual machines that run server workloads in a production environment. You need to make sure you have enough physical storage space and delete or merge all snapshots before the disk conversion, otherwise the conversion process may fail. So, it’s better to back up your virtual machine before converting Hyper-V disk to prevent data loss in the process.
How to backup Hyper-V VM before disk conversion (free way)
For enterprises, data security comes first. 60 percent of small businesses that lose data will shut down within six months. That’s according to new information gathered by Washington, DC-based research firm Clutch. Before you make big changes, backup is necessary for you that helps you to avoid human error, natural disaster, viruses & malware etc.
With the built-in feature, you can export and import VM or use a professional tool to backup Hyper-V VM efficiently. Here, I will use AOMEI Cyber Backup, the free Hyper-V backup software to show the backup process. With this powerful backup software, it brings the following benefits:
Save storage and time: Perform incremental backup to greatly reduce storage space and backup time.
Enterprise security: The most reliable infrastructure to protect your data - both your data is in transit or at rest, and meet the security needs of your business.
Automate Backup: Set up a schedule backup to auto run the VM backup daily, weekly, monthly.
Fast Recovery: Instantly recover entire VMs, files and objects from any created backup versions.
*You can choose to install this VM backup software on either Windows or Linux system.
Hassle-free Hyper-V VM backup solution
1. Add device: Open AOMEI Cyber Backup and click Source Device >> Hyper-V >> Add Hyper-V to add a Hyper-V host. After that, bind the device.
2. Create Backup Task: Click Backup Task >> Create New Task to open the settings window. Select Hyper-V Backup.
✜ Name: Select the virtual machines you want to backup.
✜ Target: Both local path or network path are available to store the virtual machine backup files.
✜ Schedule: Select backup methods as full or incremental backup and automate execution time as daily, weekly, monthly (by date / week).
3. Restore: After completing backups, you can easily recover the Hyper-V VM from any history version.
✎While the Free Edition has covered most of VM backup needs, you can also upgrade to enjoy:
✜Batch VM Backup: Batch backup large numbers of VMs managed by hosts.
✜Backup cleanup: Set up a retention policy to delete old backup files automatically and save your storage space.
✜Restore to new location: Create an identical VM in the same or another datastore/host from the backup.
In this article, I have introduced the detailed process to convert fixed disk to dynamic in Hyper-V. Before you start disk conversion, remember to back up your important VM data and note the cautions when using dynamic VHD, which enables virtualization disaster recovery for Hyper-V VMs.