Rev 1.1
Mellanox Technologies Confidential
38
An example of OPENIBD_POST_START script for activating all interfaces is provided in the MLNX_OFED
package under the docs/scripts/openibd-post-start-configure-interfaces/ folder.
4.1.3.6
Driver Load Upon System Boot
Upon system boot, the Mellanox drivers will be loaded automatically.
To prevent automatic load of the Mellanox drivers upon system boot:
•
Add the following lines to the "/etc/modprobe.d/mlnx.conf" file.
blacklist mlx4_core
blacklist mlx4_en
blacklist mlx5_core
blacklist mlx5_ib
•
Set “ONBOOT=no” in the "/etc/infiniband/openib.conf" file.
•
If the modules exist in the initramfs file, they can automatically be loaded by the
kernel.
To prevent this behavior, update the initramfs using the operating systems’
standard tools.
Note: The process of updating the initramfs will add the blacklists from step 1, and
will prevent the kernel from loading the modules automatically.
4.1.3.7
mlnxofedinstall Return Codes
The table below lists the mlnxofedinstall script return codes and their meanings.
Return Code Meaning
0
The installation ended successfully
1
The installation failed
2
No firmware was found for the adapter device
22
Invalid parameter
28
Not enough free space
171
Not applicable to this system configuration. This can occur when the required hardware is
not present on the system.
172
Prerequisites are not met. For example, missing the required software installed or the
hardware is not configured correctly.
173
Failed to start the mst driver
4.1.3.8
Uninstalling MLNX_OFED
Use the script /usr/sbin/ofed_uninstall.sh to uninstall the Mellanox OFED package. The
script is part of the ofed-scripts RPM.
4.1.4
Installing MLNX_OFED Using YUM
This type of installation is applicable to RedHat/OL, Fedora, XenServer Operating Systems.
4.1.4.1
Setting up MLNX_OFED YUM Repository
•
Log into the installation machine as root.