Download the tgz MOFED package form:
http://www.mellanox.com/page/software_overview_ib
Untar it on your node
run ./mlnxofedinstall --add-kernel-support --skip-repo
if you don't have the needed packages the script will prompt you to install them
yum -y install libxml2-python
yum -y install libnl
yum -y install python-devel redhat-rpm-config rpm-build
yum -y install gcc-gfortran
Rebuilt lustre:
sh ./autogen.sh
./configure --with-linux=/usr/src/kernels/3.10.0-514.10.2.el7_lustre.x86_64/ --with-o2ib=/usr/src/ofa_kernel/default
make rpms