[lustre-devel] [lustre-discuss] Beginner: Lustre server compile and deploy

Andreas Dilger adilger at ddn.com
Mon Apr 28 17:06:05 PDT 2025


On Apr 28, 2025, at 09:14, GEORGE ZHAO via lustre-discuss <lustre-discuss at lists.lustre.org> 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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-devel-lustre.org/attachments/20250429/6f20950d/attachment.htm>


More information about the lustre-devel mailing list