Script: Changing the Path Selection Policy

sam.aaron/ February 12, 2013/ Daily, ESXi, HowTo, VMware/ 0 comments

Last week I had performed a semi-automatic (scripted) turn key installation. Before going out to the customer site, I had set the install script to set the SATP and the PSP for an Equallogic Array (SATP = VMW_SATP_EQL, PSP = DELL_PSP_EQL_ROUTED) during the installation. Unfortunately, I found out after the fact, that they had a Compellent Array. Because of this, I needed to change the SATP and the PSP (SATP = VMW_SATP_DEFAULT_AA, PSP = VMW_PSP_RR) for each of the existing LUNs and any future LUNs.

I knew that I could do this with PowerCLI, but I didn’t feel like reinventing the wheel. A quick search found this site from “the Windows Server Guy” with a script that was basically ready to go. I modified the script a little for my environment. One of the biggest changes that I had to make was changing the Disk ID number from naa.5000 to naa.6000 for the Compellent Array.

Fun Fact: NAA stands for Network Addressing Authority identifier. EUI stands for Extended Unique Identifier. The number is guaranteed to be unique to a LUN. The NAA or EUI identifier is the preferred method of identifying LUNs and the number is generated by the storage device. Since the NAA or EUI is unique to the LUN, if the LUN is presented the same way across all ESX hosts, the NAA or EUI identifier remains the same.

Print Friendly, PDF & Email
Share this Post