Hostsvc/datastore/nas create

From VI-Toolkit
Revision as of 21:18, 5 January 2009 by Lamw (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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"