Command syntax:
VMware-vdiskmanager[ options]
For the options here, you must include the following options or parameters.
Options and parameters
describe
& ltdiskname & gt
The name of the virtual disk file. The virtual disk file must have the. vmdk extension. You can specify the path of the virtual disk file to be stored. If you have mapped a network share in the host, you can also provide the exact path information of the virtual disk file to create a virtual disk in the network share.
-C.
Create a virtual disk. You must use -a, -s and -t and specify the option parameters, and then you need to specify the file name of the virtual disk file to be created.
-r & lt; sourcediskname & gt
Convert the type of virtual disk with the specified type, and the result will be output to create a new virtual disk. You must use the -t option to specify the type of disk to convert to and specify the file name of the destination virtual disk.
After the conversion is completed, you can test the virtual disk to ensure that it works according to your requirements, and then delete the original virtual disk file.
In order for the virtual machine to know the converted virtual disk again, you should use the virtual machine settings editor to delete the pre-existing virtual disk from the virtual machine, and then add the converted virtual disk to the virtual machine.
-x & lt; n & gt[GB | MB]& lt; diskname & gt
Increase the virtual disk to the specified capacity. You must specify a new virtual disk that is labeled larger in GB or MB. You cannot change the size of the physical disk. (nonsense)
Note: You should back up the virtual disk files before running the virtual disk management software. (Because no new files will be created, back them up in case the operation of adding disks fails. )
-d & lt; diskname & gt
Defragment the specified virtual disk. You can only defragment virtual disks that can grow. You cannot defragment a pre-allocated virtual disk.