Prerequisites

Before building the LUTF, make sure to install the following packages

  • swig 3
  • python 3

Setup and Build Lustre

Follow the instructions here:

Walk-thru- Build Lustre MASTER on RHEL/Rocky linux 8.7 from Git

Dec 25th, 2019 Note

As of this date the LUTF is on the master branch. To get it you need to:

git clone git://git.whamcloud.com/fs/lustre-release.git
# note make sure to pull out whatever the latest patch series is
# Checkout the LUTF patch series
git fetch https://review.whamcloud.com/fs/lustre-release refs/changes/58/39458/2 && git checkout FETCH_HEAD
# install python3
yum install python3
yum install python3-devel
pip3 install paramiko
pip3 install netifaces
pip3 install pyyaml
pip3 install psutil
# install swig 3
# http://www.swig.org/download.html
#configure
sh ./autogen.sh
./configure --with-linux=<kernel_path>
# follow the rest of the build instructions in the top link
make rpms

Deploy Lustre rpms

Deploy lustre RPMs on your test nodes using your favourite method.

Suggested Method:

  • Copy the RPMs to the test node in some directory
mkdir ~/lustre_rpms
scp root@buildmachine:~/lustre_build/*.rpm ~/lustre_rpms
  • uninstall any existing Lustre rpms
rpm -e --nodeps kmod-lustre kmod-lustre-osd-ldiskfs kmod-lustre-tests lustre lustre-iokit \
lustre-osd-ldiskfs-mount lustre-tests lustre-resource-agents lustre-debuginfo
  • Install the new rpms
rpm --nodeps --ivh *.rpm
  • The LUTF is now installed with the rest of the lustre tests
cd /usr/lib64/lustre/tests/lutf