天天看点

Set VM RDM disk to Round Bobin and set IOPS path to 1

KB Related to IOPS setting

Adjusting Round Robin IOPS limit from default 1000 to 1 (2069356)

<a href="https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=2069356" target="_blank">https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=2069356</a>

To adjust the IOPS parameter from the default 1000 to 1, run this command:

In ESXi 5.x/6.x:

for i in `esxcfg-scsidevs -c |awk '{print $1}' | grep naa.xxxx`; do esxcli storage nmp psp roundrobin deviceconfig set --type=iops --iops=1 --device=$i; done

Where, .xxxx matches the first few characters of your naa IDs.

To verify if the changes are applied, run this command:

esxcli storage nmp device list

You see output similar to:

Path Selection Policy: VMW_PSP_RR

Path Selection Policy Device Config: {policy=iops,iops=1,bytes=10485760,useANO=0;lastPathIndex=1: NumIOsPending=0,numBytesPending=0}

Path Selection Policy Device Custom Config:

Working Paths: vmhba33:C1:T4:L0, vmhba33:C0:T4:L0

Query the paths of the VM LUNs:

esxcli storage nmp path list --device naa.******************

Set the path policy to Round Robin: 

esxcli storage nmp device set --device naa.***************** --psp VMW_PSP_RR

Set the Round Robin IOPS for switch path to 1:

esxcli storage nmp psp roundrobin deviceconfig set --type=iops --iops=1 --device=naa.**********************

本文转自学海无涯博客51CTO博客,原文链接http://blog.51cto.com/549687/1927467如需转载请自行联系原作者

520feng2007