HyperV Merge VHD
Last Updated: Dec 15, 2017 01:41PM CET
1. HyperV Manager-> VM-> Hard Disk-> check provides dependency between the AVHDX
2. Shut down HyperV Manager-> VM->
3. With Powershell Merge-VHD the respective avhdxes can be gradually mixed into the respective parent.
4. Remove HyperV Manager-> VM-> Hard Disk->
5. Add HyperV Manager-> VM-> Disk_
Example point 3 for a hard disk.
Point 1 provides the following dependencies:
FS1.VHDX
FS1_B1C0C599-4468-4FD3-9866-1806664AE44D.avhdx
FS1_FFA1D4D5-033F-4E3C-ACB4-222CBFBCE14D.avhdx
FS1_F6BECDB6-FE79-4A43-A550-7F5FD563A062.avhdx
PowerShell:
cd "C: \ ClusterStorage \ volume3 \ FS1 \ FS1 \ virtual hard disks"
merge-vhd -Path FS1_F6BECDB6-FE79-4A43-A550-7F5FD563A062.avhdx -DestinationPath FS1_FFA1D4D5-033F-4E3C-ACB4-222CBFBCE14D.avhdx
merge-vhd -Path FS1_FFA1D4D5-033F-4E3C-ACB4-222CBFBCE14D.avhdx -DestinationPath FS1_B1C0C599-4468-4FD3-9866-1806664AE44D.avhdx
merge-vhd -Path FS1_B1C0C599-4468-4FD3-9866-1806664AE44D.avhdx -DestinationPath FS1.VHDX