Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update instructions, make specific to client rebuild since that is what page is for

...

NOTE This procedure assumes you are using a RPM based distribution. For example RHEL or CentOS, CentOS, Rocky, Alma, etc.

  1. Install the following packages:
    • kernel-devel
    • rpm-build
    • make
    • libtool
    • zlib-devel 
    • libselinux-devel
    • openssl-devel

    • redhat-rpm-config
    • flex
    • bison
    • libnl3-devel
      Note
      titlekernel versions

      If you are not currently booted into the kernel provided by kernel-devel package, please review the trouble Trouble-shooting section below.

  2. Obtain Download the lustre-client VERSION.src.rpm (from the lustre-VERSION/DISTRO/client/SRPMS section of the download site if you don't already have a specific version you want to build).
  3. 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