Skip to main content
Asked a question last year

How can I build Lustre RPMs for the Mellanox OFED?

Where am I?

In Bright Computing, Inc. you can ask and answer questions and share your experience with others!

You will need to  download the Lustre source RPM from:

Replace 2.9.0 with the desired version

The SRPM can be installed  on a node that is running the correct kernel version and Mellanox OFED  version:
rpm -Uvh lustre-2.9.0-1.src.rpm

After installing the SRPM package you will need to edit the SPEC file:

cd /usr/src/redhat/SPECvim lustre.spec

and  append the following to the configure line:


If you do not add that line it will use the Linux distribution's bundled OFED and if the Mellanox OFED is installed the Lustre module will fail to work due to incompatible symbol versions.

If you want to compile for very OLD kernels e.g. RHEL5 :

EXTRA_LNET_INCLUDE="-I/usr/src/ofa_kernel/default/include/ -include /usr/src/
ofa_kernel/default/include/linux/compat-2.6.h" ./configure --with-o2ib=/usr/src/

To build the RPMs run:

rpmbuild -ba --without servers lustre.spec

The RPM files will be saved in /usr/src/redhat/RPMS/x86_64