ESXi 不认SN640 SN750 等容量大的 NVME
1、找到nvme硬盘设备
[root@localhost:~] esxcli nvme device list HBA Name Status Signature -------- ------ --------- vmhba2 Online nvmeMgmt-nvmhba0
2、查看nvme硬盘的具体信息,防止选错硬盘
[root@localhost:~] esxcli nvme device get -A vmhba2 | egrep -A1 "Model|Serial" Serial Number: VMware NVME_0000 Model Number: VMware Virtual NVMe Disk Firmware Revision: 1.3
3、查看硬盘支持的LBA格式,以及当前使用的LBA格式
[root@localhost:~] esxcli nvme device namespace get -A vmhba2 -n 1 | grep -A 4 'LBA Format' Number of LBA Formats: 0 LBA Format: 0 Extended Metadata: false Metadata as Seperate Buffer Support: false Metadata as Extended Buffer Support: false PI Type 1 Support: false -- LBA Format Support: Format ID: 0 LBAData Size: 4096 Metadata Size: 0 Relative Performance: Best performance -- LBA Format Support: Format ID: 1 LBAData Size: 512 Metadata Size: 0 Relative Performance: Best performance
4、切换LBA格式到512
[root@localhost:~] esxcli nvme device namespace format -A vmhba2 -f 1 -n 1 -m 0 -p 0 -l 0 -s 0 Format successfully!
5、再次查看当前使用的LBA格式
[root@localhost:~] esxcli nvme device namespace get -A vmhba2 -n 1 | grep -A 4 'LBA Format' Number of LBA Formats: 0 LBA Format: 1 Extended Metadata: false Metadata as Seperate Buffer Support: false Metadata as Extended Buffer Support: false PI Type 1 Support: false -- LBA Format Support: Format ID: 0 LBAData Size: 4096 Metadata Size: 0 Relative Performance: Best performance -- LBA Format Support: Format ID: 1 LBAData Size: 512 Metadata Size: 0 Relative Performance: Best performance
6、LBA格式切换的参数说明
[root@localhost:~] esxcli nvme device namespace format Error: Missing required parameter -A|--adapter Missing required parameter -f|--format Missing required parameter -m|--ms Missing required parameter -n|--namespace Missing required parameter -p|--pi Missing required parameter -l|--pil Missing required parameter -s|--ses Usage: esxcli nvme device namespace format [cmd options] Description: format Change namespace format Cmd options: -A|--adapter=<str> Adapter to operate on (required) -f|--format=<long> LBA Format(LBAF) (required) -m|--ms=<long> Metadata Settings(MS). 0: Metadata is transferred as part of a separate buffer. 1: Metadata is transferred as part of an extended data LBA. (required) -n|--namespace=<long> Namespace ID (required) -p|--pi=<long> Protection Information(PI). 0: Protection information is not enabled. 1: Protection information is enabled, Type 1. 2: Protection information is enabled, Type 2. 3: Protection information is enabled, Type 3. (required) -l|--pil=<long> Protection Information Location(PIL). 0: PI is transferred as the last eight bytes of metadata, if PI is enabled. 1: PI is transferred as the first eight bytes of metadata, if PI is enabled. (required) -s|--ses=<long> Secure Erase Settings(SES). 0: No secure erase operation requested. 1: User Data Erase. 2: Cryptographic Erase. (required)

浙公网安备 33010602011771号