- 积分
- 255
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 最后登录
- 1970-1-1
- 阅读权限
- 30
- 听众
- 收听
初级工程师
  
|
发表于 2012-4-7 13:14:01
|
显示全部楼层
是的,是存储的标示符。用esxcli nmp device list命令列出的第一行。
naa.6a4badb0004a95d40000064b4c06220e
Device Display Name: DELL iSCSI Disk (naa.6a4badb0004a95d40000064b4c06220e)
Storage Array Type: VMW_SATP_LSI
Storage Array Type Device Config: SATP VMW_SATP_LSI does not support device configuration.
Path Selection Policy: VMW_PSP_RR
Path Selection Policy Device Config: {policy=iops,iops=3,bytes=10485760,useANO=0;lastPathIndex=2: NumIOsPending=0,numBytesPending=0}
Working Paths: vmhba33:C2:T01, vmhba33:C3:T01
下面的naa.6a4badb0004a95d40000064b4c06220e就是标示符。
我是用下面的shell可以一口气都改掉。这个shell是ESXi 5用的,ESXi 4的vCLI命令有所不同,而且要按照自己的环境适当修改我的这个shell[ol]#!/bin/shesxcli storage nmp satp set --default-psp=VMW_PSP_RR --satp=VMW_SATP_LSIfor i in `esxcli storage nmp device list | grep "iSCSI" |awk '{print $7}'|sed 's/(//g'|sed 's/)//g'` ; do esxcli storage nmp device setpolicy -d $i --psp=VMW_PSP_RR esxcli storage nmp psp roundrobin deviceconfig set -d $i --iops 3 --type iopsdone[/ol]复制代码 |
17#
2012-4-7 13:14:01
回复(0)
收起回复
|