<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div>On 3/19/24 02:16, Khoi Mai via lustre-discuss wrote:</div>
<blockquote>
<div style="direction: ltr;">Hi</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">I'm having a difficult time understanding how to build a dkms package and have it rebuild/load the lustre kernel module when a new OS kernel is detected. I'm using oracle linux</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">4.18.0-477.21.1.el8_8.x86_64 #1 SMP Wed Aug 9 09:40:37 PDT 2023 x86_64 x86_64 x86_64 GNU/Linux</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"<br>
ORACLE_BUGZILLA_PRODUCT_VERSION=8.8<br>
ORACLE_SUPPORT_PRODUCT="Oracle Linux"<br>
ORACLE_SUPPORT_PRODUCT_VERSION=8.8<br>
Red Hat Enterprise Linux release 8.8 (Ootpa)<br>
Oracle Linux Server release 8.8</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">I have followed <a href="https://wiki.lustre.org/Compiling_Lustre#Lustre_Server_(DKMS_Packages_only" data-auth="NotApplicable">https://wiki.lustre.org/Compiling_Lustre#Lustre_Server_(DKMS_Packages_only</a></div>
<div style="direction: ltr;">and my path to manage lustre is with the "patchless kernel" method.</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">My error when I have try to have the rpm installed on a newer kernel-4.18.0-513.18.1.el8_9.x86_64 building lustre source version 2.15.3</div>
<div style="direction: ltr;"><br>
</div>
</blockquote>
<p>Just an FYI that it not advisable to use DKMS for servers, exactly for this reason. Your DKMS source does not have support for RHEL 8.9 kernel.</p>
<p>You will need to update your lustre to one with support for el8.9.</p>
<p><br>
</p>
<p>A client DKMS package is likely to work as it is less reliant on the kernel version.</p>
<blockquote>
<div style="direction: ltr;"><br>
</div>
<pre><div style="direction: ltr;">dkms install lustre-ldiskfs/2.15.3
#failed trying to build below. It appears its trying to apply patches but its not finding the right version.#
Type 'make' to build Lustre.Building module:
Cleaning build area...
make -j2 KERNELRELEASE=4.18.0-513.18.1.el8_9.x86_64...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.18.0-513.18.1.el8_9.x86_64 (x86_64)
Consult /var/lib/dkms/lustre-ldiskfs/2.15.3/build/make.log for more information.
[root@oss-test-instance-dkms lustre-server-dkms]# cat /var/lib/dkms/lustre-ldiskfs/2.15.3/build/make.log
DKMS make.log for lustre-ldiskfs-2.15.3 for kernel 4.18.0-513.18.1.el8_9.x86_64 (x86_64)
Fri Mar 15 06:13:36 GMT 2024
make all-recursive
make[1]: Entering directory '/var/lib/dkms/lustre-ldiskfs/2.15.3/build'
Making all in ldiskfs
make[2]: Entering directory '/var/lib/dkms/lustre-ldiskfs/2.15.3/build/ldiskfs'
make[2]: *** No rule to make target '../ldiskfs/kernel_patches/series/ldiskfs-', needed by 'sources'. Stop.
make[2]: Leaving directory '/var/lib/dkms/lustre-ldiskfs/2.15.3/build/ldiskfs'
make[1]: *** [autoMakefile:649: all-recursive] Error 1
make[1]: Leaving directory '/var/lib/dkms/lustre-ldiskfs/2.15.3/build'
make: *** [autoMakefile:521: all] Error 2 </div></pre>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"> </div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre><div>_______________________________________________
lustre-discuss mailing list
<a href="mailto:lustre-discuss@lists.lustre.org" class="moz-txt-link-abbreviated">lustre-discuss@lists.lustre.org</a>
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" class="moz-txt-link-freetext" data-auth="NotApplicable">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a>
</div></pre>
</blockquote>
<p><br>
</p>
</body>
</html>