No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Huawei IN200 NIC User Guide 07

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Upgrading the Driver

Upgrading the Driver

Prerequisites

  • The latest RoCE driver package has been downloaded.

    The RoCE driver package is included in the IN200 software package. For details about how to obtain the IN200 package, see Obtaining Software Packages.

  • The IN200 driver has been installed.

    For details, see Maintaining the NIC Driver.

  • The RoCE driver to be upgraded has been installed.
  • The driver package has been uploaded to the server OS.

Constraints

  • The target version must be later than the source version.
  • If the target driver version is earlier than or the same as the source driver version, the new driver does not take effect after you run the rpm -Uvh command to upgrade the driver.
  • To roll back to the earlier version, uninstall the driver by referring to Uninstalling the Driver and then install the driver of the earlier version by referring to Installing the Driver.

Impact

The upgrade process cannot be interrupted. During the upgrade, the OS cannot be restarted. Otherwise, the OS may be abnormal or cannot be started.

On the OS Supported by HW OFED

  1. Log in to the server OS.

    For details, see Logging In to the Real-Time Server Desktop.

  2. Run the following command in the directory where the RoCE driver package is stored to decompress the OFED package:

    tar -xvf OFED-*.tar.gz

  3. Run the following command to go to the OFED package directory:

    cd OFED-*

  4. Run the following commands to install the OFED package:

    bash ofed_install.sh

    The command output is as follows:
    [root@localhost OFED]# bash ofed_install.sh
    2019-07-10 09:30:43 
    2019-07-10 09:30:43 
    2019-07-10 09:30:43 [INSTALL] install OFED software start.
    2019-07-10 09:30:43 [INSTALL] check RPMS/compat-rdma-devel*rpm ok
    2019-07-10 09:30:43 [INSTALL] check RPMS/compat-rdma*rpm ok
    2019-07-10 09:30:43 [INSTALL] check RPMS/rdma-core-devel*rpm ok
    2019-07-10 09:30:43 [INSTALL] check RPMS/rdma-core*rpm ok
    2019-07-10 09:30:43 [INSTALL] check RPMS/libibverbs*rpm ok
    2019-07-10 09:30:43 [INSTALL] check RPMS/libibverbs-utils*rpm ok
    2019-07-10 09:30:43 [INSTALL] check RPMS/libibumad*rpm ok
    2019-07-10 09:30:43 [INSTALL] check RPMS/librdmacm*rpm ok
    2019-07-10 09:30:43 [INSTALL] check RPMS/librdmacm-utils*rpm ok
    2019-07-10 09:30:43 [INSTALL] check RPMS/perftest-debuginfo*rpm ok
    2019-07-10 09:30:43 [INSTALL] check RPMS/perftest*rpm ok
    This program will install the OFED 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 OFED, do not reinstall them.
    Do you want to continue?[y/N]:y
    ……………………………………………………………………………………………………………………………………………………………………………………………………………….
    ……………………………………………………………………………………………………………………………………………………………………………………………………………….
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:perftest-debuginfo-4.4-0.5.g1ceab################################# [ 50%]
       2:perftest-4.4-0.5.g1ceab48        ################################# [100%]
    2019-07-10 09:33:26 [INSTALL] install_rpm perftest ok
    2019-07-10 09:33:26 [INSTALL] install driver   -----------------pass
    2019-07-10 09:33:26 [INSTALL] install OFED software ok.
    To load the new driver, run:
    /etc/init.d/openibd restart

  5. Install the RoCE driver in the directory where the RoCE driver package is stored.

    • On the CentOS, SUSE, EulerOS, or RHEL:

      Run the rpm -Uvh<name of the driver software package command to upgrade the driver package.

      The following commands use CentOS 7.3 as an example:
      [root@localhost driver]# rpm -Uvh hiroce-2.3.1.0_3.10.0_514.el7.x86_64-1.el7.x86_64.rpm
      Preparing...                          ################################# [100%]
      Updating / installing...    
        1:hiroce-2.3.1.0_3.10.0_514.el7.x86################################# [100%]
      • On the Ubuntu:

        Run the dpkg -i<name of the driver software package command to upgrade the RoCE driver.

        The following commands use Ubuntu 18.04.1 as an example:

        root@ubuntu18041:/home/ubuntu # dpkg -i hiroce-2.3.0.2-4.15.0_29_generic.ubuntu.amd64.deb
        Selecting previously unselected package hiroce.
        (Reading database ... 80445 files and directories currently installed.)
        Preparing to unpack hiroce-2.3.0.2-4.15.0_29_generic.ubuntu.amd64.deb ...
        Unpacking hiroce (2.3.0.2) ...
        Setting up hiroce (2.3.0.2) ...
        Installing... Please wait for a moment.
        Install hiroce driver package successfully.

  6. Make the driver take effect.

    Run the following commands on the OS.

    rmmod hiroce

    modprobe hiroce

    This method takes effect temporarily. If you require the OS to automatically load the driver upon startup, add the preceding two commands to the automatic startup script of the OS.

On the OS Supported by OFA OFED

  1. Log in to the OS of the standby server.

    For details, see Logging In to the Real-Time Server Desktop.

  2. Click OFA OFED-4.8-2 to download the OFA OFED package of the 4.8-2 version.
  3. Compile the rpm/deb package (including compat-rdma and rdma-core) by referring to README.txt in the OFA OFED package.
  4. Upload the rpm/deb package to the OS by referring to 7.3 Transferring a File Using the Virtual Directory.
  5. Run therpm -ivh *.rpm or dpkg -i *.deb command to install the OFA OFED V4.8-2.
  6. Install the RoCE driver in the directory where the RoCE driver package is stored.

    • On the CentOS, SUSE, EulerOS, or RHEL:

      Run the rpm -Uvh<name of the driver software package command to upgrade the driver package.

      The following commands use RHEL 7.3 as an example:
      [root@localhost driver]# rpm -Uvh hiroce-2.3.1.0_3.10.0_514.el7.x86_64-1.el7.x86_64.rpm
      Preparing...                          ################################# [100%] 
      Updating / installing...    
      1:hiroce-2.3.1.0_3.10.0_514.el7.x86################################# [100%]
    • On the Ubuntu:

      Run the dpkg -i<name of the driver software package command to upgrade the RoCE driver.

      The following commands use Ubuntu 18.04.1 as an example:

      root@ubuntu18041:/home/ubuntu # dpkg -i hiroce-2.3.0.2-4.15.0_29_generic.ubuntu.amd64.deb
      Selecting previously unselected package hiroce.
      (Reading database ... 80445 files and directories currently installed.)
      Preparing to unpack hiroce-2.3.0.2-4.15.0_29_generic.ubuntu.amd64.deb ...
      Unpacking hiroce (2.3.0.2) ...
      Setting up hiroce (2.3.0.2) ...
      Installing... Please wait for a moment.
      Install hiroce driver package successfully.

  7. Make the driver take effect.

    Run the following commands on the OS.

    rmmod hiroce

    modprobe hiroce

    This method takes effect temporarily. If you require the OS to automatically load the driver upon startup, add the preceding two commands to the automatic startup script of the OS.

Translation
Download
Updated: 2019-11-19

Document ID: EDOC1100063073

Views: 8368

Downloads: 46

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next