On Apr 28, 2025, at 09:14, GEORGE ZHAO via lustre-discuss 
<[email protected]> wrote:

Hi Guys,

I'm a beginner of Lustre and kernel development. Spend weeks to figure out how 
to build Lustre server from source code. But reach nowhere.

The wiki is for RHEL7, which is too old. Although, RHEL subscription is 
expensive.

Maybe Ubuntu is a better choice for me? There is a confluence page for building 
with ldiskfs, not zfs. Maybe zfs is simpler? I'm not sure.

My goal is being able to contribute to Lustre, so I need to build from source 
code. Official RPMs doesn't matches AWS AMI kernel version, that's an other 
reason.

The TL;DR to make Lustre server code is the same as the client, regardless of 
the kernel distro:

bash autogen
./configure
make (or "make rpms")

the important caveat is that you need the source code for fs/ext4/.  If you 
download and install a pre-built kernel (including .src.rpm and kernel-debug) 
for your distro from https://build.whamcloud.com/<http://build.whamcloud.com/> 
then you don't need to worry about that step.  Patching the kernel is not 
strictly required for server kernels (either ldiskfs or ZFS), but with ldiskfs 
you need to have patch series that matches the in-kernel ext4 code.

Cheers, Andreas
—
Andreas Dilger
Lustre Principal Architect
Whamcloud/DDN




_______________________________________________
lustre-discuss mailing list
[email protected]
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

Reply via email to