vmware虚拟化,在安装esxi主机时,使用固态硬盘要注意,勿使用服务器的RAID卡配置程序,将硬盘用RAID0配置,否则esxi将不能正确识别出SSD固态硬盘,会作为普通硬盘使用,但在大多数情况下,具体环境并不是这样的,如果做了raid,可以手工进行更改,更改方法如下:
用SSH连接工具,登陆esxi主机,
输入如下命令
[root@MiWiFi-RM2100-srv:~] esxcli storage nmp device list
mpx.vmhba1:C0:T7:L0
Device Display Name: Local HL-DT-ST CD-ROM (mpx.vmhba1:C0:T7: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:T7:L0;current=vmhba1:C0:T7:L0}
Path Selection Policy Device Custom Config:
Working Paths: vmhba1:C0:T7:L0
Is USB: false
naa.50000396a1b811a9
Device Display Name: Local ATA Disk (naa.50000396a1b811a9)
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=vmhba2:C0:T3:L0;current=vmhba2:C0:T3:L0}
Path Selection Policy Device Custom Config:
Working Paths: vmhba2:C0:T3:L0
Is USB: false
naa.6004e010018f0900251dfa04035dd4ff
Device Display Name: Local DELL Disk (naa.6004e010018f0900251dfa04035dd4ff)
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=vmhba2:C2:T0:L0;current=vmhba2:C2:T0:L0}
Path Selection Policy Device Custom Config:
Working Paths: vmhba2:C2:T0:L0
Is USB: false
[root@MiWiFi-RM2100-srv:~]
重新设置磁盘属性
清除该硬盘的驱动器类型SSD标识:
esxcli storage nmp satp rule remove -s VMW_SATP_LOCAL --device naa.50000396a1b811a9 --option="enable_ssd"
- 1
开启该硬盘的驱动器类型SSD标识:
esxcli storage nmp satp rule add -s VMW_SATP_LOCAL --device naa.50000396a1b811a9 --option="enable_ssd"
- 1
重启ESXI
使用reboot
命令或者再控制台点击重启
# esxcli storage nmp device list
#列出储存清单(SSD设备的“device name”,
其实可以在GUI内看到;也可以通过“esxcli storage core device list”指令,确认SSD设备的“device name”)
esxcli storage nmp satp rule remove -s VMW_SATP_LOCAL --device naa.6b083fe0ce7f2a0028d86ea311b0e3c6 --option="enable_ssd"
esxcli storage nmp satp rule add -s VMW_SATP_LOCAL --device naa.6b083fe0ce7f2a0028d86ea311b0e3c6 --option="enable_ssd" #执行指令,将未识别的SSD设备设置为SSD