示例
使用SSH登录ESXi主机,查询单个LUN的PSP选路算法及配置参数:
[root@localhost:~] esxcli storage nmp device list -d naa.620f17c10076c7a1010c217000000004
naa.620f17c10076c7a1010c217000000004
Device Display Name: V3-900G
Storage Array Type: VMW_SATP_DEFAULT_AA
Storage Array Type Device Config: {action_OnRetryErrors=off}
Path Selection Policy: VMW_PSP_RR
Path Selection Policy Device Config: {policy=rr,iops=1000,bytes=10485760,useANO=0; lastPathIndex=2: NumIOsPending=0,numBytesPending=0}
Path Selection Policy Device Custom Config:
Working Paths: vmhba3:C0:T10:L2, vmhba3:C0:T1:L2, vmhba2:C0:T10:L2, vmhba3:C0:T0:L2, vmhba2:C0:T1:L2, vmhba3:C0:T9:L2, vmhba2:C0:T0:L2, vmhba2:C0:T9:L2
Is USB: false
设置此LUN的IOPS值为1
[root@localhost:~] esxcli storage nmp psp roundrobin deviceconfig set --device=naa.620f17c10076c7a1010c217000000004 --iops=1 --type=iops
字段policy变为iops,iops值变为1,则应用生效
[root@localhost:~] esxcli storage nmp device list -d naa.620f17c10076c7a1010c217000000004
naa.620f17c10076c7a1010c217000000004
Device Display Name: V3-900G
Storage Array Type: VMW_SATP_DEFAULT_AA
Storage Array Type Device Config: {action_OnRetryErrors=off}
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: vmhba3:C0:T10:L2, vmhba3:C0:T1:L2, vmhba2:C0:T10:L2, vmhba3:C0:T0:L2, vmhba2:C0:T1:L2, vmhba3:C0:T9:L2, vmhba2:C0:T0:L2, vmhba2:C0:T9:L2
Is USB: false
naa.xxx需要跟待更改的LUN的naa ID相匹配