Page History
...
NOTE This procedure assumes you are using a RPM based distribution. For example RHEL or CentOS, CentOS, Rocky, Alma, etc.
- Install the following packages:
kernel-devel
rpm-build
make
libtool
zlib-devel
libselinux-devel
openssl-devel
redhat-rpm-config
flex
bison
libnl3-devel
Note title kernel versions If you are not currently booted into the kernel provided by
kernel-devel
package, please review the trouble Trouble-shooting section below.
- Obtain Download the
lustre-
clientVERSION.src.rpm
(from thelustre-VERSION/DISTRO/client/SRPMS
section of the download site if you don't already have a specific version you want to build). - On the build node, run the command:
Code Block |
---|
# rpmbuild --rebuild <lustre version>--without servers lustre-VERSION.src.rpm |
...
NOTE The resulting RPMS may be named 'lustre-client-modules
-*' rather than and 'kmod-lustre-client-
modules'
Building the Lustre file system client only
Follow the procedure above, substituting the code below for step 3.
*
', or 'lustre-modules
' and 'kmod-lustre-*
' depending on build options used.
Trouble-shooting
Building against a different kernel.
To build against a different installed kernel to the one currently running on the build node, you need to provide specify the chosen kernel to version and source directory to rpmbuild
. For example:
Code Block |
---|
rpmbuild --define 'kversion 24.618.320-220425.413.1.el6el8_7.x86_64' --define 'kdir /usr/src/kernels/24.618.320-220425.413.1.el6el8_7.x86_64/' --rebuild lustre-client-2.1.0-2.6.32_131.6.1.el6.x86_64_g9d71fe8VERSION.src.rpm |