I am working on installing the lustre filesystem on Rocky 8.8; the current kernel version is
[root@mds lustre-release]# uname -r
4.18.0-477.10.1.el8_8.x86_64
Unfortunately, when I configured, built and installed lustre, it got built against 4.18.0-513.9.1.el8_9.x86_64, because that was the version of the kernel sources I got when I installed the sources without specifying the exact version. The result is that now all the lustre modules are in the wrong place under /lib/modules
.
I see, much to my surprise, that there isn’t in fact a source RPM for the running kernel:
[root@mds lustre-release]# dnf download --source kernel-4.18.0-477.10.1.el8_8.x86_64
enabling appstream-source repository
enabling baseos-source repository
enabling ha-source repository
enabling powertools-source repository
Rocky Linux 8 - BaseOS - Source 1.2 MB/s | 337 kB 00:00
Rocky Linux 8 - AppStream - Source 3.1 MB/s | 904 kB 00:00
Rocky Linux 8 - High Availability - Source 35 kB/s | 8.8 kB 00:00
Rocky Linux 8 - PowerTools - Source 879 kB/s | 195 kB 00:00
No package kernel-4.18.0-477.10.1.el8_8.x86_64 available.
Exiting due to strict setting.
Error: No package kernel-4.18.0-477.10.1.el8_8.x86_64 available.
So, do I in fact have to do all this again, starting with recompiling the the kernel sources, then rebuilding lustre, which has in fact taken most of today, after I eventually got everything to build without errors? Or is there a handy RPM that will give me the specific kernel I need?
I feel more care should be taken with coordinating the available kernel sources with the ones in the install images; it would save some of us a lot of grief.