Difference between revisions of "Hostsvc/datastore/nas create"

From VI-Toolkit
Jump to: navigation, search
(New page: ==== vimsh hostsvc/datastore/nas_create ==== Usage: nas_create name remoteHost remotePath readonly Add a NAS datastore. readonly is a boolean value, 1 for readonly and 0 for rw access. [...)
 
 
Line 3: Line 3:
  
 
Add a NAS datastore.
 
Add a NAS datastore.
readonly is a boolean value, 1 for readonly and 0 for rw access.
+
readonly is a boolean value, 0 for readonly and 1 for rw access.
 +
 
 +
==== Example ====
 +
 
 +
NFS SERVER IP: 172.30.0.254<br>
 +
NFS EXPORTED PATH: /nfs/mount/path<br>
 +
RW: 1<br>
 +
DATASTORE NAME : MY_NFS_DATASTORE<br>
 +
 
 +
ESX 3.5+
 +
  vmware-vim-cmd hostsvc/datastore/nas_create MY_NFS_DATASTORE 172.30.0.254 /nfs/mount/point 1
 +
 
 +
ESXi 3.5+
 +
  vim-cmd hostsvc/datastore/nas_create MY_NFS_DATASTORE 172.30.0.254 /nfs/mount/point 1
 +
 
 +
ESX 3.0.x+
 +
  vimsh -n -e "hostsvc/datastore/nas_create MY_NFS_DATASTORE 172.30.0.254 /nfs/mount/point 1"
  
 
[[Category: Vimsh]]
 
[[Category: Vimsh]]

Latest revision as of 22:18, 5 January 2009

vimsh hostsvc/datastore/nas_create

Usage: nas_create name remoteHost remotePath readonly

Add a NAS datastore. readonly is a boolean value, 0 for readonly and 1 for rw access.

Example

NFS SERVER IP: 172.30.0.254
NFS EXPORTED PATH: /nfs/mount/path
RW: 1
DATASTORE NAME : MY_NFS_DATASTORE

ESX 3.5+

 vmware-vim-cmd hostsvc/datastore/nas_create MY_NFS_DATASTORE 172.30.0.254 /nfs/mount/point 1

ESXi 3.5+

 vim-cmd hostsvc/datastore/nas_create MY_NFS_DATASTORE 172.30.0.254 /nfs/mount/point 1

ESX 3.0.x+

 vimsh -n -e "hostsvc/datastore/nas_create MY_NFS_DATASTORE 172.30.0.254 /nfs/mount/point 1"