Creating Datastore using vsphere powercli



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

No comments:

Post a Comment

How to increase ESXi webclient login user application timeout

 To increase the default 15min timeout to 2hr Login to the esxi webclient on the right top corner ->Click the User login tab Select "...