Previous Topic: dpmvc clone Command--Clone a VMNext Topic: dpmvc cycle Command--Cycle a VM


dpmvc createdatastore Command--Create a Datastore

The dpmvc createdatastore command creates a new 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]
[-locale iso639value]
-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 be created, VMFS, NAS, or local.

-vmfs_device_path path

(Optional) Specifies the device path of the VMFS disk to use when creating a new 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 new datastore, in MB. Blocksizes available are 1, 2, 4 and 8. They enabled 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's local file system path that will be 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 which is to be used for the NAS datastore

-nas_access_mode nasaccmode

(Optional) Specifies the desired kind of access to the network-based storage which will be used for the NAS datastore. Available modes are "read-only" and "read-write". If not specified, the default mode is read-write.

-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".

-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