MLNX ofed驱动安装
可以通过多种方式来安装MLNX OFED驱动程序。 这些方法之一是使用wget获取tgz图像,将其提取并安装MLNX OFED。
1.从Mellanox网站获取MLNX_OFED版本(单击此处),或运行wget(确保特定发行版有MLNX_OFED的可用版本)。 使用以下格式:
应用介绍
可以通过多种方式来安装MLNX OFED驱动程序。 这些方法之一是使用wget获取tgz图像,将其提取并安装MLNX OFED。
1.从Mellanox网站获取MLNX_OFED版本(单击此处),或运行wget(确保特定发行版有MLNX_OFED的可用版本)。 使用以下格式:
# wget http://www.mellanox.com/downloads/ofed/MLNX_OFED-<version>/MLNX_OFED_LINUX-<version>-<distribution>-<arch>.tgz .
例如,对于MLNX_OFED v3.4-2.x.x.x,RHEL7.2和x86 CPU架构,请使用:
2.解压并安装。
# tar -xvf MLNX_OFED_LINUX-3.4-2.0.0.0-rhel7.2-x86_64.tgz
...
# cd MLNX_OFED_LINUX-3.4-2.0.0.0-rhel7.2-x86_64/
# ./mlnxofedinstall [options] <---- Note: Before you install MLNX_OFED review the various of installation options
<---- E.g. use --add-kernel-support flag in case the kernel is not aligned with the inbox kernel (use -h) . See below
3.重新启动驱动程序。
# /etc/init.d/openibd restart
注意:
如果您使用的是其他内核,请使用安装标志--add-kernel-support。
在安装MLNX_OFED时,可能会要求您添加或删除内核模块。
例如:
./mlnxofedinstall --add-kernel-support
rpm --nosignature -e --allmatches --nodeps rdma
Note: This program will create MLNX_OFED_LINUX TGZ for rhel7.2 under /tmp/MLNX_OFED_LINUX-3.4-2.0.0.0-4.8.7 directory.
See log file /tmp/MLNX_OFED_LINUX-3.4-2.0.0.0-4.8.7/mlnx_ofed_iso.8834.log
Checking if all needed packages are installed...
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 python-devel
Failed to build MLNX_OFED_LINUX for 4.8.7
要解决此问题,请安装或卸下所需的模块。
# yum remove libibumad libibverbs-devel libibverbs libmlx5 libibverbs-utils
# yum install python-devel
...
使用-h标志获取安装的所有可用选项:
# ./mlnxofedinstall -h
Usage: ./mlnxofedinstall [OPTIONS]
Options
-c|--config <packages config_file> Example of the configuration file
can be found under docs
-n|--net <network config_file> Example of the network configuration file can be found under docs
-k|--kernel <kernel version> Use provided kernel version instead of 'uname -r'
-s|--kernel-sources <path to the kernel sources> Default on this system: /lib/modules/4.8.7/build
-p|--print-available Print available packages for current platform
And create corresponding ofed.conf file
-U|--update Update installed version.
--with-32bit Install 32-bit libraries
--without-32bit Skip 32-bit libraries installation (Default)
--without-depcheck Skip Distro's libraries check
--check-deps-only Check Linux dependencies and exit.
--distro Set Distro name for the running OS (e.g: rhel6.5, sles11sp3). Default: Use auto-detection.
--without-fw-update Skip firmware update
--fw-update-only Update firmware. Skip driver installation
--force-fw-update Force firmware update
--force Force installation
--tmpdir Change tmp directory. Default: /tmp
--all|--hpc|--basic|--msm Install all, hpc, basic or Mellanox Subnet manager packages correspondingly
--kernel-only Install kernel space packages only
--dpdk Install packages required for DPDK
--vma|--vma-vpi Install packages required by VMA to support VPI
--vma-eth Install packages required by VMA to work over Ethernet
--with-vma Set configuration for VMA use (to be used with any installation parameter).
--guest Install packages required by guest os
--hypervisor Install packages required by hypervisor os
--user-space-only Filter selected packages and install only User space packages
-v|-vv|-vvv Set verbosity level
--umad-dev-rw Grant non root users read/write permission for umad devices instead of default
--umad-dev-na Prevent from non root users read/write access for umad devices. Overrides '--umad-dev-rw'
--enable-affinity Run mlnx_affinity script upon boot
--disable-affinity Disable mlnx_affinity script (Default)
--enable-mlnx_tune Enable Running the mlnx_tune utility
--add-kernel-support Add kernel support (Run mlnx_add_kernel_support.sh)
--kmp Install kernel RPMs with KMP support if available
- Enabled by default with official MLNX_OFED_LINUX releases.
- Disabled by default if new MLNX_OFED_LINUX was created with mlnx_add_kernel_support.sh
- Passing it along with --add-kernel-support will pass --kmp to mlnx_add_kernel_support.sh
--disable-kmp Install kernel RPMs without KMP support if available
- Enabled by default if new MLNX_OFED_LINUX was created with mlnx_add_kernel_support.sh
--skip-kmp-verify Do not check if the KMP rpms are compatiable with the target kernel.
--post-start-delay <sec> Set openibd POST_START_DELAY parameter in seconds. (Default 0)
--skip-distro-check Do not check MLNX_OFED_LINUX vs Distro matching
-q Set quiet - no messages will be printed
--without-<package> Do not install package
--with-<package> Force installing package
--with-fabric-collector Install fabric-collector package.
--pre-install-<package> <path to script> Run given script before given package's install.
--post-install-<package> <path to script> Run given script after given package's install.
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: [email protected] 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » MLNX ofed驱动安装
文件列表(部分)
名称 | 大小 | 修改日期 |
---|
发表评论 取消回复