Writing custom SATP claimrules

I’ve been using HP 3PAR systems for a couple of years now and the documentation is quite extensive. So for creating your own custom SATP claimrule HP/3PAR created a very simple one-liner that will automatically ensure that all your LUN’s are configured correctly.

Now since a few day’s we’ve also acquired an HP EVA P6550 system and i though it would be helpfull to haveĀ a simular claimrule to ensure low maintenance on the VMware part. Unfortunately the HP documentation on the SATP Claimrules of HP EVA is a bit less extensive and i was stuck with a half-completed claimrule that was meant for an EVA P4xxx series and didn’t do anything for my EVA.

So, time to create my own.

First, let’s disassemble the 3PAR claimrule we are using, since that one works great, it’s a good starting point.

esxcli storage nmp satp rule add -s "VMW_SATP_ALUA" -P "VMW_PSP_RR" -O iops=3 -c "tpgs_on" -V "3PARdata" -M "VV" -e "HP 3PAR ALUA Rule"

now i won’t go into all the parameters, but it should be obvious that what we need is the Vendor and Model of the LUN’s that we are creating.
Also note, the iops setting on this rule is ‘3’. HP/3PAR recommendation for both 3PAR and EVA systems is “1” but we found that 3 gives us a bit more performance. It’s marginal offcourse, but since it won’t cost us anything, we’ll take it šŸ™‚

The easiest way i found to quickly find the correct Vendor and Model information is to simply present a LUN to one of the ESX(i) hosts and then logon to the host using SSH.

Copy the device identifier (for EVA it’s in the naa.6001* range) and run the following command in the SSH shell

esxcli storage core device list -d <identifier>

The output should look like this

   Display Name: HP Fibre Channel Disk (naa.600143801259e92e0000600004e30000)
   Has Settable Display Name: true
   Size: 16777216
   Device Type: Direct-Access 
   Multipath Plugin: NMP
   Devfs Path: /vmfs/devices/disks/naa.600143801259e92e0000600004e30000
   Vendor: HP      
   Model: HSV360          
   Revision: 1130
   SCSI Level: 5
   Is Pseudo: false
   Status: on
   Is RDM Capable: true
   Is Local: false
   Is Removable: false
   Is SSD: false
   Is Offline: false
   Is Perennially Reserved: false
   Queue Full Sample Size: 0
   Queue Full Threshold: 0
   Thin Provisioning Status: yes
   Attached Filters: 
   VAAI Status: supported
   Other UIDs: vml.0200010000600143801259e92e0000600004e30000485356333630
   Is Local SAS Device: false
   Is USB: false
   Is Boot USB Device: false

Note the Vendor and Model information is shown here.

So now the claimrule should look like

esxcli storage nmp satp rule add -s "VMW_SATP_ALUA" -P "VMW_PSP_RR" -O iops=3 -c "tpgs_on" -V "HP" -M "HSV360" -e "HP P6550 ALUA Rule"

Now run this claimrule on every ESX(i) host that you have where the EVA Lun’s will be used and after rebooting the ESX(i) host, all EVA LUN’s (existing and new) will automatically Ā be set to RoundRobin with an IOPs limitĀ of 3.

Leave a Reply

Your email address will not be published. Required fields are marked *