ESX/ESXi 4.x example

The command is the same for ESX/ESXi 4.x. The output shown is for ESX 4.0:

#esxcli nmp device list naa.50002ac000b40125

Device Display Name: 3PARdata Fibre Channel Disk (naa.50002ac000b40125)

Storage Array Type: VMW_SATP_DEFAULT_AA Storage Array Type Device Config:

Path Selection Policy: VMW_PSP_RR Path Selection Policy Device Config:

{policy=rr,iops=1000,bytes=10485760,useANO=0;lastPathIndex=3:

NumIOsPending=0,numBytesPending=0}

Working Paths: vmhba5:C0:T0:L25, vmhba5:C0:T1:L25, vmhba4:C0:T0:L25, vmhba4:C0:T1:L25

For ESX 4.1, the iops will be 100 for the device list output shown above.

Script Alternative for Path Policy Changes on Storage Devices without a Host Reboot

If a reboot of the ESX/ESXi host to affect path policy changes through SATP on a large number of existing, previously presented storage devices is not desirable, the path policy changes on a batch of LUNs can be made by scripting esxcli commands.

Create a script that uses the following commands:

1.List all the HP 3PAR devices present on the host: ESXi 5.x

#esxcli storage nmp device list grep -i naa.50002ac grep -v Device naa.50002ac0005800ac

naa.50002ac003b800ac

naa.50002ac0039300ac

ESX/ESXi 4.x

#esxcli nmp device list grep -i naa.50002ac grep -v Device naa.50002ac0005800ac

naa.50002ac003b800ac

naa.50002ac0039300ac

2.Change the I/O path policy to round robin for each device identified in the previous output: ESXi 5.x

#esxcli storage nmp device set -d naa.50002ac0005800ac -P VMW_PSP_RR

ESX/ESXi 4.x

#esxcli nmp device setpolicy -d naa.50002ac0005800ac -P VMW_PSP_RR

3.Verify that the change has been made. ESXi 5.x

#esxcli storage nmp device list -d naa.50002ac0005800ac

46 Configuring the Host for a Fibre Channel Connection

Page 46
Image 46
HP QR516B manual # esxcli nmp device list naa.50002ac000b40125, # esxcli storage nmp device list -d naa.50002ac0005800ac