lustre-release icon indicating copy to clipboard operation
lustre-release copied to clipboard

Lustre Not Compatible with Latest Linux Kernel (6.x+) – Seeking Guidance on Porting Workflow

Open PiyushPatle26 opened this issue 6 months ago • 4 comments

Hi Lustre maintainers,

I’m currently exploring the process of building and deploying Lustre (v2.16.1) from source on Fedora (kernel version 6.14.x). After studying the Lustre architecture and DKMS workflow, I attempted to use both LDISKFS and ZFS-based server targets.

While ZFS builds fine using DKMS with a stock kernel (thanks to the modular approach) but I am not able to compile lustre from source code using the ZFS, about LDISKFS and patched kernel support seem to lag behind, and do not build cleanly with the latest kernel versions due to evolving Linux kernel APIs (e.g. changes in VFS, block layer, etc).

PiyushPatle26 avatar Jun 25 '25 10:06 PiyushPatle26

@PiyushPatle26 for the very latest kernels, they are added to the git master branch first. The 2.16 release is not a LTS maintenance branch, so it will not necessarily get updates.

You could try applying patch https://review.whamcloud.com/58551 ("LU-18852 build: Compatability updates for kernel v6.14") but I don't know if there are other patches that are also needed.

This could also be ported to b2_15, which is an LTS branch.

adilger avatar Jun 26 '25 03:06 adilger

@adilger , I am currently running 6.6.94-1.el9.x86_64 kernel on CentOS Stream 9. I haven't managed to find a compatible Lustre kernel patch to build from source code on GitHub.

Do you know if this is possible at the moment, given my kernel version?

alvaromartin990 avatar Jul 02 '25 17:07 alvaromartin990

I develop Lustre primarily on kernel.org 6.12 kernels. So it should be possible to get something working. If you tried Lustre master branch, I suspect it would compile. From that, you could try and sort out which patches would be need porting to 2.15 (i.e. the latest LTS) or 2.16 (i.e, the latest release).

tim-day-387 avatar Aug 06 '25 04:08 tim-day-387

That sounds good, I will try that! Thank you for the feedback!! @tim-day-387

alvaromartin990 avatar Aug 06 '25 15:08 alvaromartin990