How to merge multiple VMDK files into one or split a vmdk file into multiple

Source: Internet
Author: User

the command-line tool "Vmware-vdiskmanager", which comes with Vmware station, can be changed by changing the "Disk type" option, Combine multiple VMDK files into one or separate files into more than 2G. Its help documentation can be obtained by entering E:\Program files\vmware workstation>vmware-vdiskmanager.exe in the DOS command window.


<span style= "font-family:arial, Helvetica, Sans-serif;" >e:\program Files\vmware workstation>vmware-vdiskmanager.exe</span>

VMware Virtual Disk manager-build 1744117.<span style= "Background-color:rgb (255, 102, 102); >usage:vmware-vdiskmanager.exe OPTIONS <disk-name> |                    <mount-point></span>offline Disk Manipulation Utility Operations, only one could be specified at a time:-C  : Create disk.  Additional creation options must be specified.     Only local virtual disks can created. -d:defragment the specified virtual disk.     Only local virtual disks is defragmented. -k:shrink the specified virtual disk.     Only local virtual disks is shrunk. -N <source-disk>: Rename the specified virtual disk; Need to specify destination disk-name.     Only local virtual disks is renamed. -p:prepare the mounted virtual disk specified By the mount point for shrinking. -R <source-disk>: convert the specified disk;  Need to specify destination Disk-type.     For local destination disks the disk type must is specified. -X <new-capacity>: Expand the disk to the specified capacity.     Only local virtual disks is expanded. -r:check a sparse virtual disk for consistency and attempt to repair any ER     Rors.     -e:check for disk chain consistency.  -d:make disk deletable.  This should is used on disks that has been copied from another product. Other Options:-q:do not log Messages Additional Options for Create and convert:-a <adapt Er>: (for use with-c only) adapter type (IDE, BusLogic, lsilogic).Pass Lsilogic for other adapter types. -S <size>: Capacity of the virtual Disk<span style= "Background-color:rgb (255, 102, 102);      >-T <disk-type>: Disk type ID 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 virt UAL disk 5:compressed disk optimized for streaming 6:thin provisioned VI     Rtual Disk-esx 3.x and above</span> the capacity can be specified in sectors, KB, MB, or GB. The acceptable RANGES:IDE/SCSI adapter: [1MB, 8192.0GB] buslogic Ada Pter: [1MB, 2040.0GB] Ex 1:vmware-vdiskmanager.exe-c-S 850mb-a ide-t 0 myidedisk.vmdk ex 2:vmware-vdi SkmanaGer.exe-d mydisk.vmdk ex 3:vmware-vdiskmanager.exe-r sourcedisk.vmdk-t 0 DESTINATIONDISK.VMDK ex 4:vmwa        Re-vdiskmanager.exe-x 36GB mydisk.vmdk ex 5:vmware-vdiskmanager.exe-n SOURCENAME.VMDK DESTINATIONNAME.VMDK Ex 6:vmware-vdiskmanager.exe-r sourcedisk.vmdk-t 4-h esx-name.mycompany.com-u username-f passwordfil E "[storage1]/path/to/targetdisk.vmdk" ex 7:vmware-vdiskmanager.exe-k MYDISK.VMDK ex 8:vmware-vdiskmanage R.exe-p <mount-point> (A virtual disk first needs to being mounted at <mount-point>)
Perform the merge function ( D:\My Documents\My Virtual machines\ubuntu\ installation path for the VM)

Vmware-vdiskmanager-r < original file path (with file name) >-T 0 < merged file path (with file name) >


Perform split function:vmware-vdiskmanager-r < original file path (with file name) >-T 1 < file path after partition (with file name) >

D:\vmware_ones>vmware-vdiskmanager-r G:\ubuntu\Ubuntu.vmdk-t 1 G:\UBUNTU\UBUNTU2.VMDK
Vixdisklib:invalid configuration file parameter. Failed to read configurationfile. (error, but seems to be a bug, don't bother him)
Creating disk ' G:\UBUNTU\UBUNTU2.VMDK '
convert:100% done.
Virtual Disk Conversion successful.

How to merge multiple VMDK files into one or split a vmdk file into multiple

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.