CentOS上安装Mellanox OFED

2024-01-20 00:04
文章标签 安装 centos mellanox ofed

本文主要是介绍CentOS上安装Mellanox OFED,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

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

点击下载链接跳转至

 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
Last metadata expiration check: 0:41:59 ago on Fri 19 Jan 2024 08:46:46 PM CST.
Dependencies resolved.
=====================================================================================================================================================================================================================Package                                                Architecture                             Version                                                         Repository                                     Size
=====================================================================================================================================================================================================================
Installing:tk                                                     x86_64                                   1:8.6.8-1.el8                                                   CentOS8.4-0                                   1.6 Mkernel-modules-extra                                   x86_64                                   4.18.0-305.19.1.el8_4                                           CentOS8.4-1                                   6.6 M
Upgrading:dracut                                                 x86_64                                   049-135.git20210121.el8                                         CentOS8.4-1                                   372 kdracut-config-rescue                                   x86_64                                   049-135.git20210121.el8                                         CentOS8.4-1                                    58 kdracut-network                                         x86_64                                   049-135.git20210121.el8                                         CentOS8.4-1                                   105 kdracut-squash                                          x86_64                                   049-135.git20210121.el8                                         CentOS8.4-1                                    58 kiptables                                               x86_64                                   1.8.4-17.el8                                                    CentOS8.4-1                                   586 kiptables-ebtables                                      x86_64                                   1.8.4-17.el8                                                    CentOS8.4-1                                    71 kiptables-libs                                          x86_64                                   1.8.4-17.el8                                                    CentOS8.4-1                                   107 kkexec-tools                                            x86_64                                   2.0.20-46.el8_4.2                                               CentOS8.4-1                                   508 klibnftnl                                               x86_64                                   1.1.5-4.el8                                                     CentOS8.4-1                                    83 klinux-firmware                                         noarch                                   20201218-102.git05789708.el8                                    CentOS8.4-1                                   123 Msystemd                                                x86_64                                   239-45.el8_4.3                                                  CentOS8.4-1                                   3.6 Msystemd-container                                      x86_64                                   239-45.el8_4.3                                                  CentOS8.4-1                                   744 ksystemd-libs                                           x86_64                                   239-45.el8_4.3                                                  CentOS8.4-1                                   1.1 Msystemd-pam                                            x86_64                                   239-45.el8_4.3                                                  CentOS8.4-1                                   469 ksystemd-udev                                           x86_64                                   239-45.el8_4.3                                                  CentOS8.4-1                                   1.4 M
Installing dependencies:kernel-core                                            x86_64                                   4.18.0-305.19.1.el8_4                                           CentOS8.4-1                                    36 Mkernel-modules                                         x86_64                                   4.18.0-305.19.1.el8_4                                           CentOS8.4-1                                    28 M
Installing weak dependencies:memstrack                                              x86_64                                   0.1.11-1.el8                                                    CentOS8.4-1                                    48 kTransaction Summary
=====================================================================================================================================================================================================================
Install   5 Packages
Upgrade  15 PackagesTotal download size: 204 M
Is this ok [y/N]: y
Downloading Packages:

再安装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]:yUninstalling MLNX_EN driverrpm --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-diagsStarting 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...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Verifying...                          ########################################
Preparing...                          ########################################
Device (0000:2f:00.0):0000:2f:00.0 Ethernet controller: Mellanox Technologies MT28908 Family [ConnectX-6]Link Width: x16PCI Link Speed: 8GT/sDevice (0000:2f:00.1):0000:2f:00.1 Ethernet controller: Mellanox Technologies MT28908 Family [ConnectX-6]Link Width: x16PCI Link Speed: 8GT/sInstallation 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.confInitializing...
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.logThe 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# yum install opensm
new_perftrace                                                                                                                                                                   602 kB/s | 2.9 kB     00:00    
new_brpc_rel                                                                                                                                                                    728 kB/s | 2.9 kB     00:00    
new_lnpfa                                                                                                                                                                       774 kB/s | 2.9 kB     00:00    
new_ftp                                                                                                                                                                         799 kB/s | 2.9 kB     00:00    
new_lnutil                                                                                                                                                                      808 kB/s | 2.9 kB     00:00    
new_deploy_frontend                                                                                                                                                             815 kB/s | 2.9 kB     00:00    
new_recoverymode                                                                                                                                                                834 kB/s | 2.9 kB     00:00    
new_dnsmasq                                                                                                                                                                     584 kB/s | 2.9 kB     00:00    
new_nas_setup                                                                                                                                                                   732 kB/s | 2.9 kB     00:00    
new_bootstrap                                                                                                                                                                   776 kB/s | 2.9 kB     00:00    
new_eagle_eye                                                                                                                                                                   811 kB/s | 2.9 kB     00:00    
new_ngds                                                                                                                                                                        819 kB/s | 2.9 kB     00:00    
centos8.4_0                                                                                                                                                                     1.5 MB/s | 4.3 kB     00:00    
centos8.4_1                                                                                                                                                                     1.2 MB/s | 3.9 kB     00:00    
centos8.4_2                                                                                                                                                                     1.3 MB/s | 3.8 kB     00:00    
centos8.4_3                                                                                                                                                                     1.4 MB/s | 3.9 kB     00:00    
centos8.4_4                                                                                                                                                                     1.7 MB/s | 4.3 kB     00:00    
centos8.4_5                                                                                                                                                                     1.5 MB/s | 4.3 kB     00:00    
centos8.4_6                                                                                                                                                                     1.3 MB/s | 3.9 kB     00:00    
centos8.4_7                                                                                                                                                                     1.3 MB/s | 3.9 kB     00:00    
centos8.4_8                                                                                                                                                                     1.3 MB/s | 3.8 kB     00:00    
centos8.4_9                                                                                                                                                                     1.5 MB/s | 3.9 kB     00:00    
centos8.4_10                                                                                                                                                                    1.4 MB/s | 3.9 kB     00:00    
centos8.4_11                                                                                                                                                                    1.1 MB/s | 2.9 kB     00:00    
centos8.4_12                                                                                                                                                                    1.5 MB/s | 4.3 kB     00:00    
centos8.4_13                                                                                                                                                                    551 kB/s | 1.5 kB     00:00    
centos8.4_15                                                                                                                                                                    991 kB/s | 3.0 kB     00:00    
centos8.4_16                                                                                                                                                                    1.0 MB/s | 3.0 kB     00:00    
centos8.4_17                                                                                                                                                                    1.0 MB/s | 3.0 kB     00:00    
centos8.4_18                                                                                                                                                                    1.1 MB/s | 3.0 kB     00:00    
centos8.4_19                                                                                                                                                                    610 kB/s | 1.5 kB     00:00    
centos8.4_20                                                                                                                                                                    628 kB/s | 1.5 kB     00:00    
centos8.4_21                                                                                                                                                                    1.2 MB/s | 3.0 kB     00:00    
centos8.4_22                                                                                                                                                                    1.2 MB/s | 3.0 kB     00:00    
centos8.4_23                                                                                                                                                                    1.2 MB/s | 3.0 kB     00:00    
centos8.4_24                                                                                                                                                                    1.2 MB/s | 3.0 kB     00:00    
centos8.4_25                                                                                                                                                                    1.2 MB/s | 3.0 kB     00:00    
centos8.4_26                                                                                                                                                                    1.3 MB/s | 3.0 kB     00:00    
centos8.4_27                                                                                                                                                                    1.2 MB/s | 3.0 kB     00:00    
centos8.4_28                                                                                                                                                                    1.1 MB/s | 3.0 kB     00:00    
centos8.4_29                                                                                                                                                                    1.2 MB/s | 3.0 kB     00:00    
centos8.4_30                                                                                                                                                                    1.2 MB/s | 3.0 kB     00:00    
centos8.4_31                                                                                                                                                                    1.3 MB/s | 3.0 kB     00:00    
centos8.4_32                                                                                                                                                                    1.2 MB/s | 3.0 kB     00:00    
centos8.4_41                                                                                                                                                                    1.2 MB/s | 3.0 kB     00:00    
centos8.4_47                                                                                                                                                                    1.1 MB/s | 3.0 kB     00:00    
centos8.4_48                                                                                                                                                                    1.2 MB/s | 3.0 kB     00:00    
centos8.4_49                                                                                                                                                                    1.3 MB/s | 3.0 kB     00:00    
Centos_samba_build                                                                                                                                                              1.2 MB/s | 2.9 kB     00:00    
Package opensm-5.17.0.MLNX20231105.d437ae0a-0.1.2310055.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!# systemctl restart opensm.service
Failed to restart opensm.service: Unit opensm.service not found.# mst start
Starting MST (Mellanox Software Tools) driver set
Loading MST PCI module - Success
[warn] mst_pciconf is already loaded, skipping
Create devices
Unloading MST PCI module (unused) - Successmt4123_pciconf0    mt4123_pciconf0.1  
# mlxconfig -d /dev/mst/mt4123_pciconf0 set SRIOV_EN=1 NUM_OF_VFS=8 FPP_EN=1Device #1:
----------Device type:        ConnectX6           
Name:               SC57A40944_Ax       
Description:        ThinkSystem Mellanox ConnectX-6 HDR100/100GbE QSFP56 2-port VPI Adapter
Device:             /dev/mst/mt4123_pciconf0Configurations:                                          Next Boot       New
-E- The Device doesn't support FPP_EN parameter# mlxconfig -d /dev/mst/mt4123_pciconf0 set SRIOV_EN=1 NUM_OF_VFS=8 FPP_EN=1Device #1:
----------Device type:        ConnectX6           
Name:               SC57A40944_Ax       
Description:        ThinkSystem Mellanox ConnectX-6 HDR100/100GbE QSFP56 2-port VPI Adapter
Device:             /dev/mst/mt4123_pciconf0Configurations:                                          Next Boot       New
-E- The Device doesn't support FPP_EN parameter# mlxfwreset --device /dev/mst/mt4123_pciconf0
mt4123_pciconf0    mt4123_pciconf0.1  # mlxfwreset --device /dev/mst/mt4123_pciconf0 resetMinimal reset level for device, /dev/mst/mt4123_pciconf0:3: Driver restart and PCI reset
Continue with reset?[y/N] y
-I- Sending Reset Command To Fw             -Done
-I- Resetting PCI                           -Done
-I- Restarting MST                          -Done
-I- FW was loaded successfully.# ibdev2netdev 
-bash: /usr/bin/ibdev2netdev: No such file or directory# lspci|grep Mellanox
0000:2f:00.0 Ethernet controller: Mellanox Technologies MT28908 Family [ConnectX-6]
0000:2f:00.1 Ethernet controller: Mellanox Technologies MT28908 Family [ConnectX-6]

继续安装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.logChecking 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

这篇关于CentOS上安装Mellanox OFED的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/624166

相关文章

如何解决mmcv无法安装或安装之后报错问题

《如何解决mmcv无法安装或安装之后报错问题》:本文主要介绍如何解决mmcv无法安装或安装之后报错问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录mmcv无法安装或安装之后报错问题1.当我们运行YOwww.chinasem.cnLO时遇到2.找到下图所示这里3.

Python 安装和配置flask, flask_cors的图文教程

《Python安装和配置flask,flask_cors的图文教程》:本文主要介绍Python安装和配置flask,flask_cors的图文教程,本文通过图文并茂的形式给大家介绍的非常详细,... 目录一.python安装:二,配置环境变量,三:检查Python安装和环境变量,四:安装flask和flas

Win11安装PostgreSQL数据库的两种方式详细步骤

《Win11安装PostgreSQL数据库的两种方式详细步骤》PostgreSQL是备受业界青睐的关系型数据库,尤其是在地理空间和移动领域,:本文主要介绍Win11安装PostgreSQL数据库的... 目录一、exe文件安装 (推荐)下载安装包1. 选择操作系统2. 跳转到EDB(PostgreSQL 的

Linux系统中卸载与安装JDK的详细教程

《Linux系统中卸载与安装JDK的详细教程》本文详细介绍了如何在Linux系统中通过Xshell和Xftp工具连接与传输文件,然后进行JDK的安装与卸载,安装步骤包括连接Linux、传输JDK安装包... 目录1、卸载1.1 linux删除自带的JDK1.2 Linux上卸载自己安装的JDK2、安装2.1

Linux卸载自带jdk并安装新jdk版本的图文教程

《Linux卸载自带jdk并安装新jdk版本的图文教程》在Linux系统中,有时需要卸载预装的OpenJDK并安装特定版本的JDK,例如JDK1.8,所以本文给大家详细介绍了Linux卸载自带jdk并... 目录Ⅰ、卸载自带jdkⅡ、安装新版jdkⅠ、卸载自带jdk1、输入命令查看旧jdkrpm -qa

MySQL Workbench 安装教程(保姆级)

《MySQLWorkbench安装教程(保姆级)》MySQLWorkbench是一款强大的数据库设计和管理工具,本文主要介绍了MySQLWorkbench安装教程,文中通过图文介绍的非常详细,对大... 目录前言:详细步骤:一、检查安装的数据库版本二、在官网下载对应的mysql Workbench版本,要是

Linux安装MySQL的教程

《Linux安装MySQL的教程》:本文主要介绍Linux安装MySQL的教程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录linux安装mysql1.Mysql官网2.我的存放路径3.解压mysql文件到当前目录4.重命名一下5.创建mysql用户组和用户并修

CentOS 7部署主域名服务器 DNS的方法

《CentOS7部署主域名服务器DNS的方法》文章详细介绍了在CentOS7上部署主域名服务器DNS的步骤,包括安装BIND服务、配置DNS服务、添加域名区域、创建区域文件、配置反向解析、检查配置... 目录1. 安装 BIND 服务和工具2.  配置 BIND 服务3 . 添加你的域名区域配置4.创建区域

pip无法安装osgeo失败的问题解决

《pip无法安装osgeo失败的问题解决》本文主要介绍了pip无法安装osgeo失败的问题解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一... 进入官方提供的扩展包下载网站寻找版本适配的whl文件注意:要选择cp(python版本)和你py

Android App安装列表获取方法(实践方案)

《AndroidApp安装列表获取方法(实践方案)》文章介绍了Android11及以上版本获取应用列表的方案调整,包括权限配置、白名单配置和action配置三种方式,并提供了相应的Java和Kotl... 目录前言实现方案         方案概述一、 androidManifest 三种配置方式