Previous Topic: dpmvc addesxhost Command--Add an ESX HostNext Topic: dpmvc addvmvnic Command--Add Virtual NIC


dpmvc addvmvdisk Command--Add Virtual Disk

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
[-sc sc_url]
[-wait timeout]
[-pre]
[-post]
-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]
[-locale iso639value]
-datastore_name datastorename

Specifies the name of the data store where the new VM is located.

-datacenter_name datacentername

(Optional) Specifies the data center where the VM is located.

-vm_name vmname

Specifies the VM.

-vc_server vcservername

Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.

-sc sc_url

(Optional) Defines the URL for the service controller host.

Example: https://hostname:port/...

hostname

Defines the fully qualified host where the service controller is installed.

Example: localhost.ca.com

port

Defines the listening port for the service controller server.

Example: 80

-wait timeout

(Optional) Indicates whether to display the status of the job and not return until the operation completes, fails, or the timeout period is met (if you specify a timeout value). If you do not specify this option, the CLI returns without waiting for completion. If there is no response, the optional timeout value defines the timeout period in minutes. If you enter the wait option with no timeout value, the CLI uses the default wait time from the caimgconf.cfg file or defaults to 120 minutes. In addition to any positive integer, the following timeout values are also possible:

""

No timeout value.

0

Wait indefinitely.

-pre

(Optional) Specifies whether to generate an event before the operation is performed.

-post

(Optional) Specifies whether to generate an event after the operation is performed.

-capacity_in_mb disk_capacity

Specifies the capacity of the virtual disk in MB.

-controller_key controllerkey

(Optional) Specifies the controller key of the disk.

-disk_mode {append | independent_nonpersistent | independent_persistent | nonpersistent | persistent | undoable}

(Optional) Specifies the mode of the disk.

-thin_provisioning {no | yes}

(Optional) Indicates whether the disk must be thin provisioned.

-unit disk_unitnumber

(Optional) Specifies the unit number of the disk.

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

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