在ESXi5.5主机中将普通硬盘标注为SSD

在ESXi5.5主机中将普通硬盘标注为SSD

 

1.列出主机的storage信息

命令:

esxcli storage nmp device list

mpx.vmhba1:C0:T1:L0

Device Display Name: Local VMware, Disk (mpx.vmhba1:C0:T1:L0)

Storage Array Type: VMW_SATP_LOCAL

Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device configuration.

Path Selection Policy: VMW_PSP_FIXED

Path Selection Policy Device Config: {preferred=vmhba1:C0:T1:L0;current=vmhba1:C0:T1:L0}

Path Selection Policy Device Custom Config:

Working Paths: vmhba1:C0:T1:L0

Is Local SAS Device: false

Is USB: false

Is Boot USB Device: false

2. 请记下与设备关联的SATP (Storage Array Type: VMW_SATP_LOCAL)

3. 添加PSA声明规则将设备标记为SSD。

命令:

esxcli storage nmp satp rule add -s VMW_SATP_LOCAL –device mpx.vmhba1:C0:T1:L0 –option=”enable_ssd”

4. 回收设备,重新应用规则。

命令:

esxcli storage core claimrule load

esxcli storage core claimrule run

esxcli storage core claiming reclaim –device mpx.vmhba1:C0:T1:L0

5.验证设备是否已标记为SSD (IS SSD:true)

命令:

esxcli storage core device list -d mpx.vmhba1:C0:T1:L0 | grep SSD

 

-==========================================================

将HDD指定为SSD
esxcli storage nmp satp rule add -s VMW_SATP_LOCAL –device naa.5000c5008393d29b –option=”enable_sdd”

删除HDD指定为SSD配置
esxcli storage nmp satp rule remove –satp VMW_SATP_LOCAL –device naa.5000c5008393d29b

刷新系统
41 esxcli storage core claiming reclaim -d –device naa.5000c5008393d29b
42 esxcli storage core claiming reclaim -d naa.5000c5008393d29b
43 esxcli storage core device list -d naa.5000c5008393d29b