I am using ESXi 4.1. The storage is NetApp FC. I have enabled ALUA on the Initiator groups. The Storage Array Type is VMW_SATP_ALUA. The Path Selection is defaulting to Most Recently Used. What is the cmd to for ESXi4.1 to set the default path selection to Round Robin. Thanks
Which means the policy in your case was changed to MRU, but not RR, so maybe you can run the command again, it didn't appear to set correctly.
esxcli --server --username root nmp satp setdefaultpsp --psp VMW_PSP_RR --satp VMW_SATP_DEFAULT_AA
You will need to use esxcli utility from vCLI that should be installed on a Linux or Windows management host or using VMware's vMA appliance.
To set the default PSP, you'll use the following syntax:
esxcli --server <esx_or_esxi_host_ip_or_hostname> --username root nmp satp setdefaultpsp --psp VMW_PSP_RR --satp VMW_SATP_ALUA
To download the vCLI, take a look here http://www.vmware.com/support/developer/vcli/ which also includes documentation and examples.
=========================================================================
William Lam
VMware vExpert 2009,2010
VMware scripts and resources at:
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
You could also do it by the vsphere client by the properties of the datastore under Configuration > Storage and clicking properties
See:
http://www.virtualizationbuster.com/?p=380
Obviously the command will do it across the board.
Cheers,
Chad King
VCP-410 | Server+
If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
I keep getting the following error when I try to run save_session
'chcp' is not recognized as an internal or external command,
operable program or batch file.
Can't open c:\session: Permission denied at C:/Program Files (x86)/VMware/VMware
vSphere CLI/Perl/lib/HTTP/Cookies.pm line 409.
Can't open c:\session: Permission denied at C:/Program Files (x86)/VMware/VMware
vSphere CLI/Perl/lib/HTTP/Cookies.pm line 409.
END failed--call queue aborted.
Could you please pate the entire command you're running, it's hard me to tell what issue you're running into
=========================================================================
William Lam
VMware vExpert 2009,2010
VMware scripts and resources at:
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
I issued this command on a server that I installed vCLI on
C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\apps\session>save_session.
pl --savedessionfile c:\session --server esxserver --username root --password password
Were you able to get this sorted out?
Cheers,
Chad King
VCP-410 | Server+
Twitter: http://twitter.com/cwjking
If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
I was able to issue the following command: esxcli --server <esx_or_esxi_host_ip_or_hostname> --username root nmp satp setdefaultpsp --psp VMW_PSP_RR --satp VMW_SATP_ALUA
It did not set the default psp to roundrobin. I ended up selecting the datastores and setting the psp manually.
You need to also do a list to see what's currently loaded, it will tell you if the policy is changed:
esxcli --server esxserver nmp satp list
Name Default PSP Description
-
-
-
VMW_SATP_SYMM VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_SVC VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_MSA VMW_PSP_MRU Placeholder (plugin not loaded)
VMW_SATP_LSI VMW_PSP_MRU Placeholder (plugin not loaded)
VMW_SATP_INV VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_EVA VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_EQL VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_DEFAULT_AP VMW_PSP_MRU Placeholder (plugin not loaded)
VMW_SATP_ALUA_CX VMW_PSP_FIXED_AP Placeholder (plugin not loaded)
VMW_SATP_CX VMW_PSP_MRU Supports EMC CX that do not use the ALUA protocol
VMW_SATP_ALUA VMW_PSP_RR Supports non-specific arrays that use the ALUA protocol
VMW_SATP_DEFAULT_AA VMW_PSP_RR Supports non-specific active/active arrays
VMW_SATP_LOCAL VMW_PSP_FIXED Supports direct attached devices
Here is the output from a server where I ran the command "esxcli --server <esx_or_esxi_host_ip_or_hostname> --username root
nmp satp setdefaultpsp --psp VMW_PSP_RR --satp VMW_SATP_ALUA" ......It did not change the default psp to round robin
Name Default PSP Description
-
-
-
VMW_SATP_SYMM VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_SVC VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_MSA VMW_PSP_MRU Placeholder (plugin not loaded)
VMW_SATP_LSI VMW_PSP_MRU Placeholder (plugin not loaded)
VMW_SATP_INV VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_EVA VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_EQL VMW_PSP_FIXED Placeholder (plugin not loaded)
VMW_SATP_DEFAULT_AP VMW_PSP_MRU Placeholder (plugin not loaded)
VMW_SATP_ALUA_RR VMW_PSP_RR Placeholder (plugin not loaded)
VMW_SATP_ALUA_CX VMW_PSP_FIXED_AP Placeholder (plugin not loaded)
VMW_SATP_CX VMW_PSP_MRU Supports EMC CX that do not use the ALUA pr
otocol
VMW_SATP_ALUA VMW_PSP_MRU Supports non-specific arrays that use the A
LUA protocol
VMW_SATP_DEFAULT_AA VMW_PSP_FIXED Supports non-specific active/active arrays
VMW_SATP_LOCAL VMW_PSP_FIXED Supports direct attached devices
Which means the policy in your case was changed to MRU, but not RR, so maybe you can run the command again, it didn't appear to set correctly.
esxcli --server --username root nmp satp setdefaultpsp --psp VMW_PSP_RR --satp VMW_SATP_DEFAULT_AA
Thanks for your help. I ran the following command:
esxcli --server <esx_or_esxi_host_ip_or_hostname> --username root
nmp satp setdefaultpsp --psp VMW_PSP_RR --satp VMW_SATP_ALUA
I rebooted after I issued the command. Once the ESXi host came online all the datastores were using round robin.