Installing the Oracle-Supported OFED Packages

This section describes how to install the OFED packages provided by Oracle, including how to remove any existing OFED packages.

To install the OFED packages provided by Oracle:

  1. If your system is registered with ULN, subscribe the system to the ol6_x86_64_UEKR4_OFED or ol7_x86_64_UEKR4_OFED channel on ULN as appropriate.

    By default, the ol7_x86_64_UEKR4 and ol7_x86_64_latest channels are enabled when you register an Oracle Linux 7 system with ULN; and the ol6_x86_64_UEKR4 and ol6_x86_64_latest channels are enabled when you register an Oracle Linux 6 system with ULN. Check that these channels are still enabled before you begin installing the OFED packages provided by Oracle.

    If you want to install the packages from the Oracle Linux Yum Server, edit the yum repository file at /etc/yum.repos.d/public-yum-olN.repo and enable the ol6_UEKR4_OFED or ol7_UEKR4_OFED repository as appropriate. If there is no ol6_UEKR4_OFED or ol7_UEKR4_OFED repository in the yum repository file, do the following:

    1. Move the existing yum repository file to a backup file, for example:

      # mv /etc/yum.repos.d/public-yum-olN.repo /etc/yum.repos.d/public-yum-olN.repo.bck
    2. Download the latest yum repository file for Oracle Linux 6 or Oracle Linux 7 from the Oracle Linux yum server.

      # wget -O /etc/yum.repos.d/public-yum-olN.repo https://yum.oracle.com/public-yum-olN.repo
    3. Edit the downloaded yum repository file and enable the ol6_UEKR4_OFED or ol7_UEKR4_OFED repository as appropriate.

  2. If you are running Oracle Linux 7, stop and disable the rdma.service service.

    # systemctl stop rdma.service
    # systemctl disable rdma.service
  3. Remove any existing OFED packages:

    # yum remove 'ibacm*'
    # yum remove 'ib-bonding*'
    # yum remove 'ibutils*'
    # yum remove 'infiniband-diags*'
    # yum remove 'libibcm*'
    # yum remove 'libibmad*'
    # yum remove 'libibumad*'
    # yum remove 'libibverbs*'
    # yum remove 'libmlx4*'
    # yum remove 'librdmacm*'
    # yum remove 'libsdp*'
    # yum remove 'mstflint*'
    # yum remove 'ofed-docs*'
    # yum remove 'ofed-scripts*'
    # yum remove 'opensm*'
    # yum remove 'perftest*'
    # yum remove 'qperf*'
    # yum remove 'sdpnetstat*'
    # yum remove 'rdma-*'
    # yum remove 'rds-tools*'
  4. Clean all yum cached files from all enabled repositories:

    # yum clean all
  5. Run one of the following commands, based on server type:

    • For a bare metal server, install the OFED packages for UEK R4 as follows:

      # yum install oracle-ofed-release
    • For a server that will function as a guest, install the OFED packages for UEK R4 as follows:

      # yum install oracle-ofed-release-guest
  6. Enable the RDMA service by entering the following command:

    # chkconfig rdma on

Each UEK release requires a different set of OFED packages. If you change the kernel on your system to a UEK release earlier than UEK R4, remove the existing UEK R4-based OFED packages before installing the correct packages for the new kernel:

# yum remove --setopt=clean_requirements_on_remove=1 oracle-ofed-release

Caution:

Downgrading UEK versions is not advisable except for testing purposes.

To update OFED packages already installed for UEK R4, simply run:

# yum update oracle-ofed-release