/ Published in: Windows PowerShell
Assumes the targets are already visible in the storage adapter, and you just want to create the VMFS volume
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function New-DatastoreByLun { param($vmHost, [string]$hbaId, [int]$targetId, [int]$lunId, [string]$dataStoreName) New-Datastore -Name $dataStoreName -Path $scsiLun.CanonicalName -Vmfs }