CentOS上安装Mellanox OFED

这篇具有很好参考价值的文章主要介绍了CentOS上安装Mellanox OFED。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

打开Mellanox官网下载驱动 Linux InfiniBand Drivers

CentOS上安装Mellanox OFED,centos,linux,运维

点击下载链接跳转至

CentOS上安装Mellanox OFED,centos,linux,运维

 Tgz解压缩执行 ./mlnxofedinstall发现缺少模块

# ./mlnxofedinstall 
Logs dir: /tmp/MLNX_OFED_LINUX.11337.logs
General log file: /tmp/MLNX_OFED_LINUX.11337.logs/general.log
Verifying KMP rpms compatibility with target kernel...
Error: One or more required packages for installing MLNX_OFED_LINUX are missing.
Please install the missing packages using your Linux distribution Package Management tool.
Run:
yum install kernel-modules-extra tk

先安装 kernel modules

# yum install kernel-modules-extra tk

再安装OFED

# ./mlnxofedinstall 
Logs dir: /tmp/MLNX_OFED_LINUX.33933.logs
General log file: /tmp/MLNX_OFED_LINUX.33933.logs/general.log
Verifying KMP rpms compatibility with target kernel...
This program will install the MLNX_OFED_LINUX package on your machine.
Note that all other Mellanox, OEM, OFED, RDMA or Distribution IB packages will be removed.
Those packages are removed due to conflicts with MLNX_OFED_LINUX, do not reinstall them.

Do you want to continue?[y/N]:y

Uninstalling MLNX_EN driver

rpm --nosignature -e --allmatches --nodeps libibverbs libibverbs-utils libibumad ibacm librdmacm opensm opensm-libs infiniband-diags opensm opensm-libs libibumad ibacm libibverbs libibverbs-utils librdmacm infiniband-diags

Starting MLNX_OFED_LINUX-23.10-1.1.9.0 installation ...

Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Installing mlnx-ofa_kernel RPM
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
mlnx-ofa_kernel-23.10-OFED.23.10.1.1.9########################################
Configured /etc/security/limits.conf
Installing kmod-mlnx-ofa_kernel 23.10 RPM
Verifying...                          ########################################
Preparing...                          ########################################
Installing mlnx-ofa_kernel-devel RPM
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
mlnx-ofa_kernel-devel-23.10-OFED.23.10########################################
Installing mlnx-ofa_kernel-source RPM
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
mlnx-ofa_kernel-source-23.10-OFED.23.1########################################
Installing kmod-kernel-mft-mlnx 4.26.1 RPM
Verifying...                          ########################################
Preparing...                          ########################################
Installing knem RPM
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
knem-1.1.4.90mlnx3-OFED.23.10.0.2.1.1.########################################
Installing kmod-knem 1.1.4.90mlnx3 RPM
Verifying...                          ########################################
Preparing...                          ########################################
Installing xpmem RPM
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
xpmem-2.7.3-1.2310055.rhel8u1         ########################################
Installing kmod-xpmem 2.7.3 RPM
Verifying...                          ########################################
Preparing...                          ########################################
Installing kmod-iser 23.10 RPM
Verifying...                          ########################################
Preparing...                          ########################################
Installing kmod-srp 23.10 RPM
Verifying...                          ########################################
Preparing...                          ########################################
Installing kmod-isert 23.10 RPM
Verifying...                          ########################################
Preparing...                          ########################################
Installing libxpmem 2.7.3 RPM
Verifying...                          ########################################
Preparing...                          ########################################
Updating / installing...
libxpmem-2.7.3-1.2310055.rhel8u1      ########################################
Installing user level RPMs:
Verifying...                          ########################################
Preparing...                          ########################################
Device (0000:2f:00.0):
	0000:2f:00.0 Ethernet controller: Mellanox Technologies MT28908 Family [ConnectX-6]
	Link Width: x16
	PCI Link Speed: 8GT/s

Device (0000:2f:00.1):
	0000:2f:00.1 Ethernet controller: Mellanox Technologies MT28908 Family [ConnectX-6]
	Link Width: x16
	PCI Link Speed: 8GT/s


Installation finished successfully.


Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:mlnx-fw-updater-23.10-1.1.9.0    ################################# [100%]

Added 'RUN_FW_UPDATER_ONBOOT=no to /etc/infiniband/openib.conf

Initializing...
Attempting to perform Firmware update...

The firmware for this device is not distributed inside Mellanox driver: 0000:2f:00.0 (PSID: LNV0000000017)
To obtain firmware for this device, please contact your HW vendor.

Failed to update Firmware.
See /tmp/MLNX_OFED_LINUX.33933.logs/fw_update.log
To load the new driver, run:
/etc/init.d/openibd restart
    
# /etc/init.d/openibd restart
Unloading rdma_cm                                          [FAILED]
rmmod: ERROR: Module rdma_cm is in use by: rpcrdma ib_srpt ib_isert

# modprobe -r rdma_cm
modprobe: FATAL: Module rdma_cm is in use.

# rmmod rdma_cm
rmmod: ERROR: Module rdma_cm is in use by: rpcrdma ib_srpt ib_isert

# cat /tmp/MLNX_OFED_LINUX.33933.logs/fw_update.log

The firmware for this device is not distributed inside Mellanox driver: 0000:2f:00.0 (PSID: LNV0000000017)
To obtain firmware for this device, please contact your HW vendor.

EXIT_STATUS: 2

继续安装OFED,但是kernel不支持,先增加kernel模块,缺少装啥即可

# yum install kernel-devel-4.18.0-305.19.1.el8_4.x86_64 kernel-rpm-macros

# bash mlnx_add_kernel_support.sh -m ./
Note: This program will create MLNX_OFED_LINUX TGZ for rhel8.1 under /tmp directory.
Do you want to continue?[y/N]:y
See log file /tmp/mlnx_iso.20469_logs/mlnx_ofed_iso.20469.log

Checking if all needed packages are installed...
/lib/modules/4.18.0-305.19.1.el8_4.x86_64/build//scripts is required to build mlnx-ofa_kernel-modules RPM.
Please install the corresponding kernel-devel RPM.

Error: One or more required packages for installing OFED-internal are missing.
Please install the missing packages using your Linux distribution Package Management tool.
Run:
yum install kernel-devel-4.18.0-305.19.1.el8_4.x86_64 kernel-rpm-macros

再继续安装

./mlnxofedinstall --add-kernel-support

驱动需要重启Server次阿能生效,注意IB的VF路径与RDMA卡是不同的

# echo 6 > /sys/class/infiniband/mlx5_0/device/mlx5_num_vfs 

VF生成成功了文章来源地址https://www.toymoban.com/news/detail-809012.html

# lspci -nn|grep Mellanox
0000:2f:00.0 Ethernet controller [0200]: Mellanox Technologies MT28908 Family [ConnectX-6] [15b3:101b]
0000:2f:00.1 Ethernet controller [0200]: Mellanox Technologies MT28908 Family [ConnectX-6] [15b3:101b]
0000:2f:00.2 Ethernet controller [0200]: Mellanox Technologies MT28908 Family [ConnectX-6 Virtual Function] [15b3:101c]
0000:2f:00.3 Ethernet controller [0200]: Mellanox Technologies MT28908 Family [ConnectX-6 Virtual Function] [15b3:101c]
0000:2f:00.4 Ethernet controller [0200]: Mellanox Technologies MT28908 Family [ConnectX-6 Virtual Function] [15b3:101c]
0000:2f:00.5 Ethernet controller [0200]: Mellanox Technologies MT28908 Family [ConnectX-6 Virtual Function] [15b3:101c]
0000:2f:00.6 Ethernet controller [0200]: Mellanox Technologies MT28908 Family [ConnectX-6 Virtual Function] [15b3:101c]
0000:2f:00.7 Ethernet controller [0200]: Mellanox Technologies MT28908 Family [ConnectX-6 Virtual Function] [15b3:101c]

# ip link
link/ether b4:96:91:bf:94:94 brd ff:ff:ff:ff:ff:ff
16: ens1f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether b8:3f:d2:d3:e4:c6 brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 00:00:00:00:00:00, spoof checking off, link-state auto, trust off, query_rss off
    vf 1 MAC 00:00:00:00:00:00, spoof checking off, link-state auto, trust off, query_rss off
    vf 2 MAC 00:00:00:00:00:00, spoof checking off, link-state auto, trust off, query_rss off
    vf 3 MAC 00:00:00:00:00:00, spoof checking off, link-state auto, trust off, query_rss off
    vf 4 MAC 00:00:00:00:00:00, spoof checking off, link-state auto, trust off, query_rss off
    vf 5 MAC 00:00:00:00:00:00, spoof checking off, link-state auto, trust off, query_rss off

到了这里,关于CentOS上安装Mellanox OFED的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 【运维小知识】(一)——centos系统安装(小白入门级)

    目录 1.制作系统U盘 2.安装centos系统 3.系统配置 3.1【语言】配置​编辑 3.2【软件选择】配置  3.3【安装位置】配置 3.4【主机名、root密码、网络】配置         首先下载软件ventoy,制作系统U盘,买个新U盘。先在笔记本电脑安装ventoy软件,打开软件,然后把u盘插在笔记本电

    2024年02月17日
    浏览(40)
  • 运维小知识(一)——centos系统安装(小白入门级)

    目录 1.制作系统U盘 2.安装centos系统 3.系统配置 3.1【语言】配置​编辑 3.2【软件选择】配置  3.3【安装位置】配置 3.4【主机名、root密码、网络】配置         首先下载软件ventoy,制作系统U盘,买个新U盘。先在笔记本电脑安装ventoy软件,打开软件,然后把u盘插在笔记本电

    2024年02月16日
    浏览(44)
  • 运维笔记之centos7安装mysql数据库

    如果使用的4.1以上版本的rpm的话,除了import mysql的公钥到个人用户的配置中,还需要import mysql的公钥到RPM的配置中

    2024年02月04日
    浏览(63)
  • linux centos安装minio

    cd /opt mkdir minio 命令 :wget https://dl.minio.io/server/minio/release/linux-amd64/minio cd /minio touch minio.log chmod 777 minio vim /etc/profile 添加 export MINIO_ROOT_USER=fileadmin export MINIO_ROOT_PASSWORD=fileadmin 生效:source /etc/profile; vim start.sh nohup ./minio server /opt/minio/data --console-address :9090 --address :9001 /opt/minio

    2024年02月09日
    浏览(43)
  • Linux安装docker(CentOS)

    2024年02月22日
    浏览(40)
  • CentOS7(Linux)详细安装教程(手把手图文详解版)_centos7安装教程

    3、选择合适版本的镜像进行下载 选择合适的存放地址(这里的地址包含中文名称我用起来好像也没出啥问题,如果怕出错的同学可以使用全英文) 1、打开我们的虚拟机(VMware Workstation),点击文件进行新建 2、选择典型之后,下一步 3、选择稍会安装操作系统 4、因为安装的

    2024年04月29日
    浏览(48)
  • Linux(CentOS)安装MySQL教程

    1.1 安装CentOS虚拟机           教程[点击跳转] 1.2 将CentOS 虚拟机设置为静态IP ,否则你每次重启虚拟机后连接数据库都要重新查IP  教程[点击跳转] 1.3 如果有安装过MySQL,请先卸载MySQL  教程[点击跳转] 1.4 虚拟机执行命令 su 切换到root账号(输入密码时不会显示密码,实际已

    2024年02月12日
    浏览(36)
  • Linux(CentOS)安装Redis教程

    Redis版本仓库[点击跳转] 复制版本仓库中的下载链接         一般放在/usr/local下,可以自行调整         由于Redis是C语言编写的,所以必须装依赖 查看redis解压后的目录名称 Redis服务启动成功         Redis的默认启动方式是 前台运行 ,这种启动方式会阻塞整个会话

    2024年02月02日
    浏览(46)
  • centOS中Linux 安装JDK

    jdk-8u121-linux-x64.tar.gz http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 注意:需要登录才可以下载 查看我们的系统是否安装了jdk,使用java -version命令进行查看,一般系统会默认安装openjdk 使用rpm -qa | grep jdk 命令来查看系统自带的jdk具体的软件包信息 使用yum -y

    2023年04月08日
    浏览(45)
  • docker的安装(linux、centos)

    环境:centos7 cat /etc/redhat-release 执行下面的命令: 3.1先确定是否能上网(在centos右上角) 3.2安装gcc,我这里之前安装了gcc. yum -y install gcc 3.3安装gcc-c++,之前已经安装了。 yum -y install gcc-c++ yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 注意:这里不要按

    2023年04月22日
    浏览(43)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包