1: Create NFS datastore:
New-Datastore
-Nfs -VMHost 10.1.1.22 -Name NFSDatastore -Path /mynfs -NfsHost 10.1.1.34
2:Create VMFS datastore:
Connect to vCenter:
Connect-VIServer -Server
“vcenter_IP” -User UserName -Password Password
Get canonical names:
Get-SCSILun -VMhost 192.168.1.103
-LunType Disk | Select CanonicalName,Capacity
Create datastore:
New-Datastore -VMHost
Host -Name Datastore -Path CanonicalName -VMFS
Connect-VIServer -Server “vcenter_IP” -User UserName -Password Password
Get-SCSILun -VMhost 192.168.1.103 -LunType Disk | Select CanonicalName,Capacity