Previous Topic: dpmvc-clone Command--Clone a VM (Funclet)Next Topic: dpmvc-cycle Command--Cycle a VM (Funclet)


dpmvc-createdatastore Command--Create a Datastore (Funclet)

The dpmvc-createdatastore command creates a datastore.

This command has the following format:

dpmvc-createdatastore
-datastore_name datastorename
-esx_host_name esxhostname 
-vc_server vcservername
[-ws_user wsuser]
[-ws_password wspassword]
[-prompt {yes|no}]
-datastore_type {local|nas|vmfs}
[-vmfs_device_path path]
[-vmfs_block_size_mb blocksize]
[-local_path lpath]
[-nas_user_name nasuser]
[-nas_password naspasswd]
[-nas_remote_hostname nasremhost]
[-nas_remote_path nsarempath]
[-nas_access_mode {read-only|read-write}]
[-sc sc_url]
-datastore_name datastorename

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

-esx_host_name esxhostname

Specifies the name of the ESX server that hosts a VM.

-vc_server vcservername

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

-ws_user wsuser

(Optional) Specifies the web service user name to connect to the VC Platform Management Module (PMM).

-ws_password wspassword

(Optional) Specifies the password for the web service user to connect to the VC Performance Management Module (PMM).

-prompt {yes|no}

(Optional) Specifies whether you are prompted for the web service user ID and password.

Default: Yes

-datastore_type {vmfs|nas|local}

Specifies the type of datastore to create, VMFS, NAS, or local.

-vmfs_device_path path

(Optional) Specifies the device path of the VMFS disk to use when creating a datastore. You can obtain the path using the "getavailablescsidisks" command.

-vmfs_block_size_mb blockzize

(Optional) Specifies the block size to use when creating a datastore, in MB. Blocksizes available are 1, 2, 4 and 8. Blocksizes enable VM disk files to reach a maximum of 256GB, 512GB, 1024GB, and 2048GB respectively.

-local_path lpath

(Optional) When creating a local datastore, this path specifies the ESX host local file system path that used to create the datastore.

-nas_user_name nasuser

(Optional) Specifies the remote host user name for NAS datastore creation.

-nas_password naspasswd

(Optional) Specifies the remote host password for NAS datastore creation.

-nas_remote_hostname nasremhost

(Optional) Specifies the hostname of the server hosting the network-based storage.

-nas_remote_path nasrempath

(Optional) Specifies the file system path on the remote server used for the NAS datastore

-nas_access_mode nasaccmode

(Optional) Specifies the desired access to the network-based storage used for the NAS datastore. Available modes are "read-only" and "read-write".

Default: "read-write"