Merge 2GB vmdk files

At some point you may have noticed the option to create your VMware disk with the option of splitting it over 2GB files.
This feature is handy when run on a FAT32 drive, NAS, or bespoke drive storage. However it brings an unnecessary untidiness to the folder structure especially when dealing with multiple disks over 40 GB and will become obsolete as we move away from these basic drive storage types.

So like me you may want/need to merge these 2GB splits into a single file. To do this you need to use the VMware supplied tool called “vmware-vdiskmanager.exe“. This can be found in the VMware installation path “C:Program Files (x86)VMwareVMware Server” (or “C:Program FilesVMwareVMware Server” if using a 32bit Operating System).

To merge the files we actually want to convert them to another disk then mount that as the new drive. With vmware-vdiskmanager.exe use the -r flag followed by the the current main .vdmk file (this is used to convert the selected disk) then -t and chose the type of disk you want:

Disk types:
0 : single growable virtual disk
1 : growable virtual disk split in 2GB files
2 : preallocated virtual disk
3 : preallocated virtual disk split in 2GB files
4 : preallocated ESX-type virtual disk
5 : compressed disk optimized for streaming

Then finally the newly converted disk location.

String all this together and you will get:
vmware-vdiskmanager.exe -r “D:server1Disk1.vmdk” -t 0 “D:server1Disk1-Merged.vmdk”

So run command prompt using elevated rights,
cd to “C:Program Files (x86)VMwareVMware Server”
type vmware-vdiskmanager.exe -r “D:server1Disk1.vmdk” -t 0 “D:server1Disk1-Merged.vmdk”
and wait.

Leave a Reply

Your email address will not be published. Required fields are marked *