<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div>Note you can use Rocky or Alma Linux instead of RHEL.</div>
<div><br>
</div>
<div>There are links to current instructions here:</div>
<div><a href="https://wiki.whamcloud.com/plugins/servlet/mobile?contentId=9536415#content/view/9536415" data-ogsc="" style="">https://wiki.whamcloud.com/plugins/servlet/mobile?contentId=9536415#content/view/9536415</a><br>
</div>
<div><br>
</div>
<br>
<div></div>
<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size: 11pt;" color="#000000" data-ogsc=""><b>From:</b> lustre-devel <lustre-devel-bounces@lists.lustre.org> on behalf of Andreas Dilger <adilger@ddn.com><br>
<b>Sent:</b> Monday, April 28, 2025 7:06 PM<br>
<b>To:</b> GEORGE ZHAO <georgezhaojobs@gmail.com><br>
<b>Cc:</b> lustre-discuss@lists.lustre.org <lustre-discuss@lists.lustre.org>; lustre-devel@lists.lustre.org <lustre-devel@lists.lustre.org><br>
<b>Subject:</b> Re: [lustre-devel] [lustre-discuss] Beginner: Lustre server compile and deploy</font>
<div> </div>
</div>
<div style="line-break:after-white-space">On Apr 28, 2025, at 09:14, GEORGE ZHAO via lustre-discuss <lustre-discuss@lists.lustre.org> wrote:<br>
<div>
<blockquote type="cite"><br class="x_Apple-interchange-newline">
<div>
<div dir="auto">Hi Guys,
<div dir="auto"><br>
</div>
<div dir="auto">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.</div>
<div dir="auto"><br>
</div>
<div dir="auto">The wiki is for RHEL7, which is too old. Although, RHEL subscription is expensive.</div>
<div dir="auto"><br>
</div>
<div dir="auto">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.</div>
<div dir="auto"><br>
</div>
<div dir="auto">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.</div>
</div>
</div>
</blockquote>
<br>
</div>
<div>The TL;DR to make Lustre server code is the same as the client, regardless of the kernel distro:</div>
<div><br>
</div>
<div>bash autogen</div>
<div>./configure</div>
<div>make (or "make rpms")</div>
<div><br>
</div>
<div>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 <a href="http://build.whamcloud.com/" data-auth="NotApplicable" data-ogsc="" style="">https://build.whamcloud.com/</a> 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.</div>
<div><br>
</div>
<div>
<div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; line-break: after-white-space; color: rgb(0, 0, 0);">
<div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; line-break: after-white-space; color: rgb(0, 0, 0);">
<div>Cheers, Andreas</div>
<div>—</div>
<div>Andreas Dilger</div>
<div>Lustre Principal Architect</div>
<div>Whamcloud/DDN</div>
</div>
<br class="x_Apple-interchange-newline">
</div>
<br class="x_Apple-interchange-newline">
<br class="x_Apple-interchange-newline">
</div>
<br>
</div>
</body>
</html>