NVMe over Fabrics with SPDK with iRDMA总结 - 3

本文档介绍了如何配置和测试连接到 SPDK NVMe-oF 目标的 SPDK 主机和 Linux 内核主机。内容包括在 SPDK 主机上安装 fio 和 SPDK,发现和连接 NVMe 硬盘,以及断开连接。同时,也涵盖了在 Linux 内核主机上安装 fio 和 nvme-cli,加载模块,连接和验证 NVMe over Fabrics 连接,并进行性能测试。
摘要由CSDN通过智能技术生成

6.0       Configure and Test NVMe over Fabrics Host(s) to Connect to SPDK Target配置和测试 NVMe over Fabrics 主机以连接 SPDK 目标机

The SPDK NVMe-oF target system is spec compliant, which allows for the use of either an SPDK host or Linux Kernel host to connect to an NVMe-oF subsystem exported by the SPDK NVMe-oF target. SPDK NVMe-oF 目标机系统符合规范,允许使用 SPDK 主机或 Linux 内核主机连接 SPDK NVMe-oF 目标机导出的 NVMe-oF 子系统。

This section outlines both methods: 本节概述了这两种方法

  • Section 6.1, “Option 1: SPDK Host” 选项 1SPDK 主机
  • Section 6.2, “Option 2: Linux Kernel Host”

6.1 Option 1: SPDK Host选项 1:SPDK 主机

6.1.1 Install fio for SPDK Host System为 SPDK 主机系统安装 fio

  1. Download fio from Releases · axboe/fio · GitHub 从 https://github.com/axboe/fio/releases 下载 fio
  2. Install fio on the host: 在主机上安装 fio:

cd /<path_to_fio>/;./configure; make; make install

Note提示: For the latest instructions, refer to the fio documentation included in the version being used. 有关最新说明,请参阅所使用版本中的 fio 文档。

6.1.2 Install SPDK on the Host在主机上安装 SPDK

Install SPDK on the host using the steps outlined in Section 5.2. 使用第 5.2 节中概述的步骤在主机上安装 SPDK。

When installing SPDK on the host as described in Section 5.2, use the following ./configure parameters to configure it with fio plugin: 按照第 5.2 节所述在主机上安装 SPDK 时,使用以下 ./configure 参数将其与 fio 插件进行配置:

./configure --with-fio=/opt/<path-to-fio>/ --with-rdma --enable-lto

6.1.3 Discover NVMe Drives Available on Target发现目标主机上提供的 NVMe 硬盘

Discover the NVMe drives available for connection over a transport (-t), with a target IP Address (-a) on a port (-s): 通过传输类型 (-t)、端口 (-s) 上的目标 IP 地址 (-a) 发现可用于连接的 NVMe 硬盘:

nvme discover -t rdma -a <targetIP> -s 4420

6.1.4 Connect NVMe-oF Drives连接 NVMe-oF 驱动器

There are two different ways to connect NVMe over Fabrics drives to the SPDK host for testing. 将 NVMe over Fabrics 硬盘连接到 SPDK

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

mounter625

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值