The dpmvc-addvmvdisk command adds a virtual disk to a VM.
This command has the following format:
dpmvc-addvmvdisk -datastore_name datastorename [-datacenter_name datacentername] -vm_name vmname -vc_server vcservername -capacity_in_mb disk_capacity [-controller_key controllerkey] [-disk_mode {append|independent_nonpersistent|independent_persistent|nonpersistent|persistent|undoable}] -thin_provisioning {no|yes} [-unit_number unitnumber]
Specifies the name of the data store where the new VM is located.
(Optional) Specifies the data center where the VM is located.
Specifies the VM.
Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.
Specifies the capacity of the virtual disk in MB.
(Optional) Specifies the controller key of the disk.
(Optional) Specifies the mode of the disk.
(Optional) Indicates whether the disk must be thin provisioned.
(Optional) Specifies the unit number of the disk.
Example: Add a Virtual Disk
This example adds a virtual disk to the VM, "myvm."
dpmvc-addvmvdisk -datastore_name disk1 -vm_name myvm -vc_server myvcenterserver -capacity_in_mb 20000 -thin_provisioning no
Copyright © 2013 CA. All rights reserved. |
|