Hi Luc ,
could you suggest the syntax to change multipath policy of datastore roundrobin.
and i think this has will facilitate better path utilization compared to fixed .and this may also reduce the disk latency .could you share yur thoughts on this ??
You can change the multipathpolicy with the Set-ScsiLun cmdlet.
Something like this
$dsName = 'MyDS'
$ds = Get-Datastore -Name $dsName
Get-ScsiLun -Datastore $ds | Set-ScsiLun -MultipathPolicy RoundRobin -Confirm:$false
And yes, round-robin is in general the better multi-path policy.
But I would strongly advise to consult the Best Practices from your storage vendor, and eventually talk with your storage admins, before making a change.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You can change the multipathpolicy with the Set-ScsiLun cmdlet.
Something like this
$dsName = 'MyDS'
$ds = Get-Datastore -Name $dsName
Get-ScsiLun -Datastore $ds | Set-ScsiLun -MultipathPolicy RoundRobin -Confirm:$false
And yes, round-robin is in general the better multi-path policy.
But I would strongly advise to consult the Best Practices from your storage vendor, and eventually talk with your storage admins, before making a change.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
thanks i m checking this.
i am thinking if we can find maximum infomation of storage array by knowing datastore name only.are there any hidden properties or can we do it through api way??
Are you thinking of statistical data?
For that the datastorename is sufficient to feed to the Get-Stat cmdlet.
It also depends on how much data you save (depends on the Statistical Lelels in the vCenter).
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
wel for the time being i need storage array name,firmware version and model to choose the correct psp and satp.
Firmware version might be an issue, it can be retrieved but it depends on the HW vendor and type.
Give this one a try and see what is reported.
Note that it is for FC storage
foreach($hba in Get-VMHost | Get-VMHostHba -Type FibreChannel){
$esxcli = Get-EsxCli -VMHost $hba.VMHost
$esxcli.storage.san.fc.list() | where{$_.Adapter -eq $hba.Device} |
Select @{N='VMHost';E={$hba.VMHost.Name}},
@{N='HBA';E={$hba.Name}},
ModelDescription,DriverName,DriverVersion,FirmwareVersion,HardwareVersion
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference