<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
On Apr 28, 2025, at 09:14, GEORGE ZHAO via lustre-discuss &lt;lustre-discuss@lists.lustre.org&gt; wrote:<br>
<div>
<blockquote type="cite"><br class="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 &quot;make rpms&quot;)</div>
<div><br>
</div>
<div>the important caveat is that you need the source code for fs/ext4/. &nbsp;If you download and install a pre-built kernel (including .src.rpm and kernel-debug) for your distro from&nbsp;<a href="http://build.whamcloud.com/">https://build.whamcloud.com/</a>&nbsp;then you
 don't need to worry about that step. &nbsp;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="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>Cheers, Andreas</div>
<div>\u2014</div>
<div>Andreas Dilger</div>
<div>Lustre Principal Architect</div>
<div>Whamcloud/DDN</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</body>
</html>