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

Patrick Farrell <[email protected]> Tue, 29 Apr 2025 14:30:48 +0000
Newsgroups org.lustre.lists.lustre-devel
Message-ID <DM6PR19MB26366C743933C2132E4BDBA1C9802@DM6PR19MB2636.namprd19.prod.outlook.com>
--===============5242059597334940792==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_DM6PR19MB26366C743933C2132E4BDBA1C9802DM6PR19MB2636namp_"

--_000_DM6PR19MB26366C743933C2132E4BDBA1C9802DM6PR19MB2636namp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Note you can use Rocky or Alma Linux instead of RHEL.

There are links to current instructions here:
https://wiki.whamcloud.com/plugins/servlet/mobile?contentId=3D9536415#conte=
nt/view/9536415



________________________________
From: lustre-devel <[email protected]> on behalf of And=
reas Dilger <[email protected]>
Sent: Monday, April 28, 2025 7:06 PM
To: GEORGE ZHAO <[email protected]>
Cc: [email protected] <[email protected]>; lust=
[email protected] <[email protected]>
Subject: Re: [lustre-devel] [lustre-discuss] Beginner: Lustre server compil=
e and deploy

On Apr 28, 2025, at 09:14, GEORGE ZHAO via lustre-discuss <lustre-discuss@l=
ists.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 exp=
ensive.

Maybe Ubuntu is a better choice for me? There is a confluence page for buil=
ding 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 sour=
ce code. Official RPMs doesn't matches AWS AMI kernel version, that's an ot=
her 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-deb=
ug) for your distro from https://build.whamcloud.com/<http://build.whamclou=
d.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 wi=
th ldiskfs you need to have patch series that matches the in-kernel ext4 co=
de.

Cheers, Andreas
=97
Andreas Dilger
Lustre Principal Architect
Whamcloud/DDN





--_000_DM6PR19MB26366C743933C2132E4BDBA1C9802DM6PR19MB2636namp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</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=3D"https://wiki.whamcloud.com/plugins/servlet/mobile?contentId=
=3D9536415#content/view/9536415" data-ogsc=3D"" style=3D"">https://wiki.wha=
mcloud.com/plugins/servlet/mobile?contentId=3D9536415#content/view/9536415<=
/a><br>
</div>
<div><br>
</div>
<br>
<div></div>
<br>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size: 11pt;" color=3D"#000000" data-ogsc=3D""><b>From:</b> lust=
re-devel &lt;[email protected]&gt; on behalf of Andreas=
 Dilger &lt;[email protected]&gt;<br>
<b>Sent:</b> Monday, April 28, 2025 7:06 PM<br>
<b>To:</b> GEORGE ZHAO &lt;[email protected]&gt;<br>
<b>Cc:</b> [email protected] &lt;[email protected].=
org&gt;; [email protected] &lt;[email protected]&gt=
;<br>
<b>Subject:</b> Re: [lustre-devel] [lustre-discuss] Beginner: Lustre server=
 compile and deploy</font>
<div>&nbsp;</div>
</div>
<div style=3D"line-break:after-white-space">On Apr 28, 2025, at 09:14, GEOR=
GE ZHAO via lustre-discuss &lt;[email protected]&gt; wrote:<b=
r>
<div>
<blockquote type=3D"cite"><br class=3D"x_Apple-interchange-newline">
<div>
<div dir=3D"auto">Hi Guys,
<div dir=3D"auto"><br>
</div>
<div dir=3D"auto">I'm a beginner of Lustre and kernel development. Spend we=
eks to figure out how to build Lustre server from source code. But reach no=
where.</div>
<div dir=3D"auto"><br>
</div>
<div dir=3D"auto">The wiki is for RHEL7, which is too old. Although, RHEL s=
ubscription is expensive.</div>
<div dir=3D"auto"><br>
</div>
<div dir=3D"auto">Maybe Ubuntu is a better choice for me? There is a conflu=
ence page for building with ldiskfs, not zfs. Maybe zfs is simpler? I'm not=
 sure.</div>
<div dir=3D"auto"><br>
</div>
<div dir=3D"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 ver=
sion, 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, regard=
less 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/. &n=
bsp;If you download and install a pre-built kernel (including .src.rpm and =
kernel-debug) for your distro from&nbsp;<a href=3D"http://build.whamcloud.c=
om/" data-auth=3D"NotApplicable" data-ogsc=3D"" style=3D"">https://build.wh=
amcloud.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 ldis=
kfs you need to have patch series that matches the in-kernel ext4 code.</di=
v>
<div><br>
</div>
<div>
<div dir=3D"auto" style=3D"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=3D"auto" style=3D"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>=97</div>
<div>Andreas Dilger</div>
<div>Lustre Principal Architect</div>
<div>Whamcloud/DDN</div>
</div>
<br class=3D"x_Apple-interchange-newline">
</div>
<br class=3D"x_Apple-interchange-newline">
<br class=3D"x_Apple-interchange-newline">
</div>
<br>
</div>
</body>
</html>

--_000_DM6PR19MB26366C743933C2132E4BDBA1C9802DM6PR19MB2636namp_--

--===============5242059597334940792==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============5242059597334940792==--