跳到主要内容

在主机端设置 NVMe over Fibre Channel

Fibre Channel 环境中的 NVMe 发起方配置包括在主机上安装和配置 nvme-cli 包以及启用 NVMe/FC 发起方。

下面是适用于 SUSE Linux Enterprise Server 15 SP1 和 32 Gb FC HBA 的说明。

  1. 安装 nvme-cli 包:
    • 对于 SLES15 SP1:
      # zypper install nvme-cli
  2. 启用并启动 nvmefc-boot-connections 服务。
    systemctl enable nvmefc-boot-connections.service
    systemctl start nvmefc-boot-connections.service
  3. 1pfc_enable_fc4_type 设置为 3 以启用 SLES15 SP1 作为 NVMe/FC 发起方。
    # cat /etc/modprobe.d/lpfc.conf
    options lpfc lpfc_enable_fc4_type=3
  4. 重新生成 initrd 以获取 Emulex 更改和引导参数更改。
    # dracut --force
  5. 重新启动主机以重新配置 Ipfc 驱动程序。
    # reboot
    主机重新启动,且在主机上启用了 NVMe/FC 发起方。
    完成主机端设置后,将自动进行 NVMe over Fibre Channel 端口的配置。