VMware Cloud Community
Gabrie1
Commander
Commander
Jump to solution

Changing SATP / PSP rules

Hi. On ESXi 5.5 host I have three storage arrays connected. Hitachi HUS-VM and Hitachi DF600F AMS2500 and Hitachi HUS-130. After fresh ESXi install, the HUS-VM come with a multipath policy of "Fixed" and the other as "RoundRobin". I would like to have them all show up as "RoundRobin" (support according to HDS).

As I understand it I should first create a new claimrule and then a SATP rule. However, when creating these rules I need to use vendor and model. Where can I find the correct model type? Maybe I could just connect all Hitachi systems to this rule and leave out the model, but I'm afraid that I might run into issues later on when another array would be used that can't handle RoundRobin.

And is my assumption correct that by creating the claimrules and the SATP rules, I could use this host as reference host for my host profiles and then apply it to all other hosts.

Regards

Gabrie

http://www.GabesVirtualWorld.com
Tags (3)
Reply
0 Kudos
1 Solution

Accepted Solutions
tomtom901
Commander
Commander
Jump to solution

Hi Gabrie,

No, I meant esxcli storage core device list -d <naa ID>. I'll show you what I did. Default PSP for my VMW_SATP_ALUA plugin was VMW_PSP_MRU and I first took note of the naa ID of an existing LUN on this storage array (it's a QNAP NAS Smiley Happy).  I then ran esxcli storage core device list -d naa.6001405f96715a2d050bd4648db766dc, which provided me with this output.

Screen Shot 2013-12-16 at 21.36.59.png

Note that the Vendor and Model both turn up here. I used this information in a custom SATP rule to let all devices with this model / vendor combination use Round Robin:

~ # esxcli storage nmp satp rule add -V QNAP -M "iSCSI Storage" -P VMW_PSP_RR -s VMW_SATP_ALUA

~ # esxcli storage core claimrule load

Now, note that a new device that is created on this array gets Round Robin, just as we want it.

Screen Shot 2013-12-16 at 21.48.02.png

Hope this clears things up for you.

View solution in original post

Reply
0 Kudos
10 Replies
tomtom901
Commander
Commander
Jump to solution

What is the SATP rule for the devices? You can view this in the client by selecting the proporties of your datastore, then going to the manage paths tab:

Screen Shot 2013-12-16 at 15.20.34.png

Then, if we know the SATP is VMW_SATP_ALUA, do the following command:

esxcli storage nmp satp set -s VMW_SATP_ALUA -P VMW_PSP_RR

This should set the default path selection policy for all devices that use the SATP VMW_SATP_ALUA SATP plugin to RoundRobin.

Reply
0 Kudos
tomtom901
Commander
Commander
Jump to solution

This can also be pushed down via a host profile:

Screen Shot 2013-12-16 at 15.30.20.png

Reply
0 Kudos
Gabrie1
Commander
Commander
Jump to solution

Well, the current SATP rule is: VMW_SATP_DEFAULT_AA

But I don't want to change that one, because then all new Hitachi arrays would fall back to this rule. So I want to make a rule for each specific Array. Therefor I need to find out what the model name is.

http://www.GabesVirtualWorld.com
Reply
0 Kudos
tomtom901
Commander
Commander
Jump to solution

You can do a:

esxcli storage core device list -d <naa ID of a disk hosted on the HUS-VM>

It should give you both vendor and model, which you then can use in a SATP rule:

esxcli storage nmp satp rule add -s VMW_SATP_DEFAULT_AA -V HITACHI -M <model id> -P VMW_PSP_RR

esxcli storage core claimrule load

Gabrie1
Commander
Commander
Jump to solution

Did you mean "esxcli storage nmp device list" which gives me the info below. I'm not at work now, I retrieved this from my notes. If you think it is the incorrect command I will try tomorrow morning. But the output is below and only gave me Device Display Name.

naa.60060e80132892005020289200002010

   Device Display Name: HITACHI Fibre Channel Disk (naa.60060e80132892005020289200002010)

   Storage Array Type: VMW_SATP_DEFAULT_AA

   Storage Array Type Device Config: SATP VMW_SATP_DEFAULT_AA does not support device configuration.

   Path Selection Policy: VMW_PSP_FIXED

   Path Selection Policy Device Config: {preferred=vmhba1:C0:T0:L57;current=vmhba1:C0:T0:L57}

   Path Selection Policy Device Custom Config:

   Working Paths: vmhba1:C0:T0:L57

   Is Local SAS Device: false

   Is Boot USB Device: false

http://www.GabesVirtualWorld.com
Reply
0 Kudos
tomtom901
Commander
Commander
Jump to solution

Hi Gabrie,

No, I meant esxcli storage core device list -d <naa ID>. I'll show you what I did. Default PSP for my VMW_SATP_ALUA plugin was VMW_PSP_MRU and I first took note of the naa ID of an existing LUN on this storage array (it's a QNAP NAS Smiley Happy).  I then ran esxcli storage core device list -d naa.6001405f96715a2d050bd4648db766dc, which provided me with this output.

Screen Shot 2013-12-16 at 21.36.59.png

Note that the Vendor and Model both turn up here. I used this information in a custom SATP rule to let all devices with this model / vendor combination use Round Robin:

~ # esxcli storage nmp satp rule add -V QNAP -M "iSCSI Storage" -P VMW_PSP_RR -s VMW_SATP_ALUA

~ # esxcli storage core claimrule load

Now, note that a new device that is created on this array gets Round Robin, just as we want it.

Screen Shot 2013-12-16 at 21.48.02.png

Hope this clears things up for you.

Reply
0 Kudos
Gabrie1
Commander
Commander
Jump to solution

Looks good and exactly as I'm looking for. Will test this first thing in the morning. Thanks !!!

http://www.GabesVirtualWorld.com
Reply
0 Kudos
Gabrie1
Commander
Commander
Jump to solution

WORKED !!! Thank you !!

http://www.GabesVirtualWorld.com
Reply
0 Kudos
tomtom901
Commander
Commander
Jump to solution

Great, thanks for the confirmation.

Reply
0 Kudos
Gabrie1
Commander
Commander
Jump to solution

Wrote a blogpost on this topic: http://www.gabesvirtualworld.com/changing-satp-claimrules-specific-storage-configurations/

http://www.GabesVirtualWorld.com
Reply
0 Kudos