Creates a new datastore.
Syntax
New-EmcDatastore -Name <String> -ScsiLun <ScsiLun> [-FileSystemVersion <VmfsVersion>] [-Silent] [<CommonParameters>]
Parameters
-Name <String>
Attributes: Required, Position: named
Specifies the name of the new datastore.
-ScsiLun <ScsiLun>
Attributes: Required, Position: named
Specifies the ESI SCSI LUN object, which you can get by using the ESI VMware system or ESI ESX host system objects, or by using Get-EmcScsiLun cmdlet.
-FileSystemVersion <VmfsVersion>
Attributes: Optional, Position: named
Specifies the version of the VMFS for the datastore. Valid values are VMFS_5 and VMFS_3. The default value is VMFS_5.
-Silent <SwitchParameter>
Attributes: Optional, Position: named
Turns off all the informational and verbose messages. However, it still displays errors.
<CommonParameters>
This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.
Examples
-------------- Example 1 --------------
C:\PS>$h = Get-EmcVcenterSystem
PS C:\> $h | Update-EmcSystem -Silent
PS C:\> $l = Get-EmcLun lun2
PS C:\> $sc = Get-EmcScsiLun -Lun $l
PS C:\> $sc.hostdiskidentifier
02000600006000097000019260541253303230443353594d4d4554
PS C:\> New-EmcDatastore -Name esi-ds-1 -ScsiLun $sc -Silent
Name : esi-ds-1
Type : VMFS5
Capacity : 1.750 GB
FreeSpace : 1.206 GB
Url : ds:///vmfs/volumes/50c3a51b-45835678-9840-a4badb394393/
Uuid : 50c3a51b-45835678-9840-a4badb394393
VcenterUuid : e942d303-eff4-4098-a3cf-e249894bd63b
HostLunIdentifiers : {Wwn=60:00:09:70:00:01:92:60:54:12:53:30:32:30:44:33}
CanonicalNames : {naa.60000970000192605412533032304433}
EsxHosts : {x.x.x.x, y.y.y.y }
This example creates a VMFS_5 datastore.
-------------- Example 2 --------------
C:\PS>$h = Get-EmcVcenterSystem
PS C:\> $h | Update-EmcSystem -Silent
PS C:\> $l = Get-EmcLun lun2
PS C:\> $sc = Get-EmcScsiLun -Lun $l
PS C:\> $sc.hostdiskidentifier
02000600006000097000019260541253303230443353594d4d4554
PS C:\> New-EmcDatastore -Name esi-ds-1 -ScsiLun $sc -FileSystemVersion vmfs_3 -Silent
Name : esi-ds-1
Type : VMFS3
Capacity : 1.750 GB
FreeSpace : 1.229 GB
Url : ds:///vmfs/volumes/50c3a81b-db1ccdf6-10da-a4badb394393/
Uuid : 50c3a81b-db1ccdf6-10da-a4badb394393
VcenterUuid : e942d303-eff4-4098-a3cf-e249894bd63b
HostLunIdentifiers : {Wwn=60:00:09:70:00:01:92:60:54:12:53:30:32:30:44:33}
CanonicalNames : {naa.60000970000192605412533032304433}
EsxHosts : {x.x.x.x}
This example creates a VMFS_3 datastore.