Troy, I see the same when I do a list(), but I seem to be able to set the default to RR
Or am I missing the point here ?
Btw, there is a 'storage' qualifier that needs to be added since vSphere 5.
And you can now do a 'Get-EsxCli -VMHost $esx' while connected to the vCenter.Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz1 person found this helpful
I think I see the light. So, to set the default PSP we'll need to do something like
$esxcli = Get-EsxCli
Name Port User ---- ---- ---- myesxhost.mydomain.com 443 root Default PSP for VMW_SATP_DEFAULT_AA is now VMW_PSP_RR
Correct, that seems to work for me at least.
And the change in the namespace seems to be confirmed by ESXi 5 - Set Roundrobin multipathing policy on all LUNs
And it corresponds with the esxcli storage docBlog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz1 person found this helpful
Thank you again sir!
Hi Troy and Luc,
It seems like the changed PSP settings are lost after a reboot of the system.
If it try it directly via the console or remote via VMwareCLi the changed settings are remembered.
Used PowerCLI 5.0 on an ESXi 5.0 build 515841 host.
Try changing the first parameter from $false to $true.Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
so to make this persistant acrros reboots we need to add the $true? Better update my post install script
We don't have any new LUNs to present to our hosts at this time, so we'll have to wait until we present a new LUN to see what happens after a reboot. With that said, any existing LUNs that are already Round Robin don't lose the PSP at reboot with the $false
Thanks for the tip!
Hi Luc and Troy,
Thanks for your fast replies.
In my original script I used 1 instead of $true, like this:
The script was also followed by going through all the LUN's and setting the psp.
So far on vSphere 4 we havent had any problems, even after adding LUN's.
Today I'll reinstall the host (just to be sure) and set the value to $true instead of 1.
Just finished reinstalling and trying the script again. Same result; The settings are not remembered.
When using vSphereCLI the settings are rememberd.
Any ideas? Should I file a SR?
You can try Onyx to see what code is generated when you do it in the vSphere client.
I don't think it possible to change the default Path Selection Policy for a given Storage Array Type Plugin from within the vSphere Client. What I ment was that I used the vSphere vSphere CLi (the perl scripts).