## 5.6.4 Mellanox OpenFabrics Enterprise Distribution 

To install the Mellanox OFED for Linux, complete the following steps. 

For more information, see the following xCAT documentation resources: 

GLYPH<SM590000> Mellanox OFED Installation Script - Preparation page 

GLYPH<SM590000> InfiniBand Network Configuration page 

1. Download and copy the ISO file to the xCAT installation directory by running the following command. 

Note:  The Mellanox OFED is available for download from the Mellanox downloads website. 

At the website, find the  IBM HPC and Technical Clusters section and download the ISO file MLNX_OFED_LINUX-4.3-4.0.5.1-rhel7.5alternate-ppc64le.iso  from the IBM MTM 8335-GT[W,C,G,H,X] row. 

Because you must accept a user agreement, the package must be downloaded by using a browser. 

$ dir=/install/software/mofed $ mkdir -p $dir 

$ Download via browser, then scp to xcat management server $ scp MLNX_OFED_LINUX-4.3-4.0.5.1-rhel7.5alternate-ppc64le.iso xcat-mn:/install/software/mofed 

2. Copy the mlnxofed_ib_install.v2  script into the postscripts  directory (with the required file name mlnxofed_ib_install ). This script is a sample script that is intended to help the installation of the Mellanox OFED drivers: 

$ script=/install/postscripts/mlnxofed_ib_install $ cp /opt/xcat/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install.v2 $script $ chmod +x $script $ ls -l $script -rwxr-xr-x 1 root root 16269 22. Nov 10:51 /install/postscripts/mlnxofed_ib_install 

3. Include the --add-kernel-support  argument to the list of default arguments ( --without-32bit --without-fw-update --force ) according to the xCAT documentation to rebuild kernel modules for the installed kernel version. 

Also, clear the  /tmp  directory after successful installation: 

$ file=MLNX_OFED_LINUX-4.3-4.0.5.1-rhel7.5alternate-ppc64le.iso $ args=' --add-kernel-support  --without-32bit --without-fw-update --force' 

$ lsdef -t osimage rh75-compute-stateless -i postinstall Object name: rh75-compute-stateless 

postinstall=/install/custom/netboot/rh/rh75-compute.postinstall 

$ echo "# Install InfiniBand MOFED" >> $new_postinstall $ echo "/install/postscripts/mlnxofed_ib_install -p $dir/$file -m $args -end- -i \$installroot -n genimage" >> $new_postinstall $ echo "rm -rf \$installroot/tmp/MLNX_OFED_LINUX*" >> $new_postinstall 

$ cat $new_postinstall 

