nvmf 基本使用

背景: 虚拟化openstack测试使用nvmf
配置 NVMe/RDMA 客户端

安装mlnx_nvme-ofed driver

1
2
下载 MLNX_OFED_LINUX-5.4-1.0.3.0-rhel8.1-x86_64.iso
安装 kmod-mlnx-nvme-5.4-OFED.5.4.1.0.3.1.rhel8u1.x86_64
1
# yum install nvme-cli
1
# modprobe nvme-rdma

troubleshooting

1
2
3
4
5
# nvme connect -t rdma -n nqn.2021-10.io.spdk:cnode2 -a 10.224.129.226 -s 4420
Failed to open /dev/nvme-fabrics: No such file or directory

解决:
#modprobe nvme_fabrics
1
2
3
4
5
6
7
Failed to write to /dev/nvme-fabrics: Invalid argument
nvme_fabrics: no handler found for transport rdma.
解决: 安装mlx_ofd drvier
https://www.mellanox.com/products/infiniband-drivers/linux/mlnx_ofed
下载 MLNX_OFED_LINUX-5.4-1.0.3.0-rhel8.1-x86_64.iso
安装 kmod-mlnx-nvme-5.4-OFED.5.4.1.0.3.1.rhel8u1.x86_64