惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - 三角形

Docker镜像加速器,检测失效 & 测速 出租司机给我上的MBA课 -- 转载(文末有18年后的续集) 飞牛影视配置独立端口号,不与飞牛公用web端口 esxi 7 定时关机 Oracle RAC 部署 (VMware共享磁盘配置方法) esxi 无法在浏览器中关闭虚拟机 使用Rocky Linux 快速部署虚拟化环境,浏览器访问,开源免费 Esxi 使用 RDM (Raw Device Mapping) 功能直接将磁盘分配给虚拟机,直通 esxi重装后,之前的卷没能自动挂载 OpenSSH 远程代码执行漏洞(CVE-2024-6387) Ubuntu22.04 和 centos7处理方法 部署SFTP服务,并限制访问目录 esxi 虚拟机 导出 & 导入 QYN2 2025年免费收徒(运维) XFS误删除文件,数据恢复 在esxi上:获取vm列表,批量给vm关机,批量给vm强制关机 esxi主机,自动创建30个vm,并自动完成vm初始化操作 自动查询12306余票,结果以txt形式放到nginx网站目录下 ubuntu自动下载电视剧《鸣龙少年》
ESXi 不认SN640 SN750 等容量大的 NVME
三角形 · 2026-01-28 · via 博客园 - 三角形

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)