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]
Specifies the name of the data store where the new VM is located.
Specifies the name of the ESX server that hosts a VM.
Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.
(Optional) Specifies the web service user name to connect to the VC Platform Management Module (PMM).
(Optional) Specifies the password for the web service user to connect to the VC Performance Management Module (PMM).
(Optional) Specifies whether you are prompted for the web service user ID and password.
Default: Yes
Specifies the type of datastore to create, VMFS, NAS, or local.
(Optional) Specifies the device path of the VMFS disk to use when creating a datastore. You can obtain the path using the "getavailablescsidisks" command.
(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.
(Optional) When creating a local datastore, this path specifies the ESX host local file system path that used to create the datastore.
(Optional) Specifies the remote host user name for NAS datastore creation.
(Optional) Specifies the remote host password for NAS datastore creation.
(Optional) Specifies the hostname of the server hosting the network-based storage.
(Optional) Specifies the file system path on the remote server used for the NAS datastore
(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"
Copyright © 2013 CA. All rights reserved. |
|