我要评分
获取效率
正确性
完整性
易理解

Upgrading the NIC Driver

Symptom

If NVIDIA Mellanox ConnectX series NICs are used in enabling Gazelle for the Redis service, select a proper driver version based on the official description. Otherwise, errors may be reported.

For example, if you use NIC of NVIDIA ConnectX-4 or later versions, you are advised to use the MLNX_OFED driver of the 5.8-x LTS version.

Key Process and Cause Analysis

The NIC does not match the NIC driver version, which requires to upgrade the driver.

Conclusion and Solution

To upgrade the driver for the NVIDIA Mellanox ConnectX series NICs, perform the following steps:

  1. Download the MLNX_OFED driver.

    Download URL: https://network.nvidia.com/products/infiniband-drivers/linux/mlnx_ofed/

    Select a proper driver version based on the official description. For example, if you use NIC of NVIDIA ConnectX-4 or later versions, you are advised to use the MLNX_OFED driver of the 5.8-x LTS versions.

  2. Install Dependencies
    1
    2
    yum install -y tk make tcsh pciutils-devel lsof gcc kernel-devel
    yum install -y python3-devel automake rpm-build autoconf createrepo elfutils-devel lsof libtool
    
  3. Upgrade the NIC driver.
    1. If rdma-core has been installed in the system, an error may occur. Therefore, uninstall rdma-core first.
      1
      rpm -q rdma-core && yum remove -y rdma-core
      
    2. Decompress the downloaded driver package, go to the decompressed directory, and run the installation command.
      1
      2
      3
      4
      5
      6
      7
      8
      tar xf /home/MLNX*.tgz -C /home rm -f /home/MLNX*.tgz
      cd /home/MLNX*
      ./mlnxofedinstall --dpdk --add-kernel-support --skip-unsupported-devices-check
      dracut -f
      rmmod rpcrdma ib_srpt ib_isert hns_roce_hw_v2 i40iw xprtrdma svcrdma
      /etc/init.d/openibd restart
      modprobe mlx5_core
      modinfo mlx5_core | grep "filename:"