注意
本文档适用于 Ceph 的开发版本。
VMware ESX 的 NVMe/TCP 发起方
先决条件
运行 VMware vSphere Hypervisor (ESXi) 7.0U3 或更高版本的 VMware ESXi 主机。
已部署的 Ceph NVMe-oF 网关。
具有 NVMe-oF 配置的 Ceph 集群。
在网关中定义的子系统。
配置
以下说明将使用默认的 vSphere Web 客户端和 esxcli。
在 NIC 上启用 NVMe/TCP
esxcli nvme fabric enable --protocol TCP --device vmnicN将
N替换为 NIC 的编号。标记 VMKernel NIC 以允许 NVMe/TCP 流量
esxcli network uip interface tag add --interface-nme vmkN --tagname NVMeTCP将
N替换为 VMkernel 的 ID。为 NVMe/TCP 配置 VMware ESXi 主机
列出 NVMe-oF 适配器
esxcli nvme adapter list可选:发现 NVMe-oF 子系统
esxcli nvme fabric discover -a NVME_TCP_ADAPTER -i GATEWAY_IP -p 4420连接到 NVME-oF 网关子系统
esxcli nvme fabrics discover -a NVME_TCP_ADAPTER -i GATEWAY_IP -p 8009 -c - This command discovers the NVMe-oF gateways in the gateway group and then connects to the gateways providing multipath access
列出 NVMe/TCP 控制器
esxcli nvme controller list列出子系统中的 NVMe-oF 命名空间
esxcli nvme namespace list
验证发起方是否已正确设置
从 vSphere 客户端转到 ESXi 主机。
在“存储”页面上,转到“设备”选项卡。
验证 NVME/TCP 磁盘是否列在表中。