[lustre-discuss] Compiling lustre 2.16.1 for Ubuntu 24.04 client

Åke Sandgren ake.sandgren at umu.se
Wed Jan 29 00:12:50 PST 2025


Hi again!

I've found the problems.

Configure runs kernel related tests even when we have --disable-modules, fix is
===
diff --git a/config/lustre-build.m4 b/config/lustre-build.m4
index fd62f314f4..57de734200 100644
--- a/config/lustre-build.m4
+++ b/config/lustre-build.m4
@@ -460,7 +460,7 @@ LB_CONFIG_MODULES
 AS_IF([test x$enable_modules = xno], [enable_server=no])
 LB_CONFIG_LDISKFS
 LB_CONFIG_ZFS
-AS_IF([test "x$enable_dist" = xno], [
+AS_IF([test "x$enable_modules" = xyes], [
        LB_KABI_LDISKFS
        LZ_KABI_ZFS
        LB_KABI_CHECKS
===

Then EXTRAFLAGS in debian/rules is broken, there are multiple occasions where it just does
export EXTRAFLAGS="--disable-tests";
instead of the correct
export EXTRAFLAGS="$${EXTRAFLAGS} --disable-tests";
for varying options.

And the lustre-tests package builds a kernel module even if we have --disable-modules.
That kernel module should only be built as part of  a lustre-client-modules package or during dkms building of the modules.

So I also removed lustre-tests from debian/control

Now I have the packages I want including ustre-client-modules-dkms_2.16.1-1~noble0.1_amd64.deb


________________________________________
From: lustre-discuss <lustre-discuss-bounces at lists.lustre.org> on behalf of Åke Sandgren <ake.sandgren at umu.se>
Sent: Tuesday, January 28, 2025 12:31
To: lustre-discuss at lists.lustre.org
Subject: Re: [lustre-discuss] Compiling lustre 2.16.1 for Ubuntu 24.04 client

Hi!

I'm in the process of doing just that. But my usual process for doing this has been "broken" between 2.15.4 and 2.16.1.
There seems to be config sections being processed when they shouldn't.
I'm trying to build client packages with dkms enabled but without explicit modules, and some of the kernel config tests are being run even without modules enabled.

I.e. what I want to do is this
configure --enable-dist
make dkms-debs

but during config (in make dkms-debs) it tries to do lnet kernel and lustre kernel config checks.
In my opinion this is wrong and something that.

It boils down to
configure --enable-client --disable-modules
doing the wrong things during configure, i.e. testing for things that are only needed during actual building of the dkms modules.

I'll try to sort this out but any help will be useful.



________________________________________
From: lustre-discuss <lustre-discuss-bounces at lists.lustre.org> on behalf of Ramiro Alba Queipo <ramiro.alba at upc.edu>
Sent: Tuesday, January 28, 2025 10:15
To: lustre-discuss at lists.lustre.org
Subject: [lustre-discuss] Compiling lustre 2.16.1 for Ubuntu 24.04 client

Hi all,

We need to compile lustre 2.16.1 and produce packages for Ubuntu 24.04 client, as available packages are no compiled with infiniband so ko2iblnd module is not present.
We are doubting about using a fixed kernel like 6.8.0-31-generic or using dkms to recompiling on the fly when updating kernel, because of problems that might be raising when compiling with other kernels 6.8.0-XXX-generic. Might we have such a problem? What do you recommend me?

Thanks in advance
Best regards

--
Ramiro Alba

Centre Tecnològic de Tranferència de Calor
http://www.cttc.upc.edu/<http://www.cttc.upc.edu/>

Escola Tècnica Superior d'Enginyeries
Industrial i Aeronàutica de Terrassa
Colom 11, E-08222, Terrassa, Barcelona, Spain
Tel: (+34) 93 739 8928
_______________________________________________
lustre-discuss mailing list
lustre-discuss at lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org


More information about the lustre-discuss mailing list