VMware Cloud Community
jvm2016
Hot Shot
Hot Shot
Jump to solution

changing path policy to round robin_powercli

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 ??

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

Reply
0 Kudos
5 Replies
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

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??

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

wel for the time being i need storage array name,firmware version and model to choose the correct psp and satp.

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos