Oct 222011

You might be interested in getting the most out of an inexpensive vSphere lab setup. I have not done this update in a production environment yet, so be warned – your mileage may vary.

Enable the SSH console on your ESXi 5.0 host.

List your disks to verify the list you’re going to be adjusting.

ls /vmfs/devices/disks

Now we want to use a vSphere 5 command to update the pathing and IOPs configuration. To do this, find the similar prefix on the disks you want to adjust and then enter the following command. In my case, my iSCSI disks were prefixed by the ‘t10.’ identifier. Replace t10 below with the prefix that matches your environment.

for i in `ls /vmfs/devices/disks | grep t10` ; do esxcli storage nmp psp roundrobin deviceconfig set –device $i –iops 1 –type iops; done

To verify, enter the following command to verify.

esxcli storage nmp device list

You should see the following string showing IOPs now equal to one!

Device Display Name: OPNFILER iSCSI Disk (t10.F405E46494C45425F4D614162357D2354745A4D295162773)
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_RR
Path Selection Policy Device Config: {policy=iops,iops=1,bytes=10485760,useANO=0;lastPathIndex=2: NumIOsPending=0,numBytesPending=0}
Path Selection Policy Device Custom Config:
Working Paths: vmhba33:C0:T3:L4, vmhba33:C1:T3:L4, vmhba33:C2:T3:L4, vmhba33:C3:T3:L4