<div dir="ltr"><div dir="ltr">Hi Jan,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 2 Jan 2024 at 22:29, Jan Andersen &lt;<a href="mailto:jan@comind.io">jan@comind.io</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have installed Rocky 8.8 on a new server (Dell PowerEdge R640):<br>
<br>
[root@mds 4.18.0-513.9.1.el8_9.x86_64]# cat /etc/*release*<br>
Rocky Linux release 8.8 (Green Obsidian)<br>
NAME=&quot;Rocky Linux&quot;<br>
VERSION=&quot;8.8 (Green Obsidian)&quot;<br>
ID=&quot;rocky&quot;<br>
ID_LIKE=&quot;rhel centos fedora&quot;<br>
VERSION_ID=&quot;8.8&quot;<br>
PLATFORM_ID=&quot;platform:el8&quot;<br>
PRETTY_NAME=&quot;Rocky Linux 8.8 (Green Obsidian)&quot;<br>
ANSI_COLOR=&quot;0;32&quot;<br>
LOGO=&quot;fedora-logo-icon&quot;<br>
CPE_NAME=&quot;cpe:/o:rocky:rocky:8:GA&quot;<br>
HOME_URL=&quot;<a href="https://rockylinux.org/" rel="noreferrer" target="_blank">https://rockylinux.org/</a>&quot;<br>
BUG_REPORT_URL=&quot;<a href="https://bugs.rockylinux.org/" rel="noreferrer" target="_blank">https://bugs.rockylinux.org/</a>&quot;<br>
SUPPORT_END=&quot;2029-05-31&quot;<br>
ROCKY_SUPPORT_PRODUCT=&quot;Rocky-Linux-8&quot;<br>
ROCKY_SUPPORT_PRODUCT_VERSION=&quot;8.8&quot;<br>
REDHAT_SUPPORT_PRODUCT=&quot;Rocky Linux&quot;<br>
REDHAT_SUPPORT_PRODUCT_VERSION=&quot;8.8&quot;<br>
Rocky Linux release 8.8 (Green Obsidian)<br>
Rocky Linux release 8.8 (Green Obsidian)<br>
Derived from Red Hat Enterprise Linux 8.8<br>
Rocky Linux release 8.8 (Green Obsidian)<br>
cpe:/o:rocky:rocky:8:GA<br>
<br>
I downloaded the kernel source (I don&#39;t remember the exact command):<br>
<br>
[root@mds 4.18.0-513.9.1.el8_9.x86_64]# ll /usr/src/kernels<br>
total 8<br>
drwxr-xr-x. 24 root root 4096 Jan  2 13:49 4.18.0-513.9.1.el8_9.x86_64/<br>
drwxr-xr-x. 23 root root 4096 Jan  2 11:41 4.18.0-513.9.1.el8_9.x86_64+debug/<br>
<br>
Copied the config from /boot and ran:<br>
<br>
yes &quot;&quot; | make oldconfig<br>
<br>
After that I cloned the Lustre source and configured (according to my notes):<br>
<br>
git clone git://<a href="http://git.whamcloud.com/fs/lustre-release.git" rel="noreferrer" target="_blank">git.whamcloud.com/fs/lustre-release.git</a><br>
cd lustre-release<br>
git checkout 2.15.3<br>
<br>
dnf install libtool<br>
dnf install flex<br>
dnf install bison<br>
dnf install openmpi-devel<br>
dnf install python3-devel<br>
dnf install python3<br>
dnf install kernel-devel kernel-headers<br>
dnf install elfutils-libelf-devel<br>
dnf install keyutils keyutils-libs-devel<br>
dnf install libmount<br>
dnf --enablerepo=powertools install libmount-devel<br>
dnf install libnl3 libnl3-devel<br>
dnf config-manager --set-enabled powertools<br>
dnf install libyaml-devel<br>
dnf install patch<br>
dnf install e2fsprogs-devel<br>
dnf install kernel-core<br>
dnf install kernel-modules<br>
dnf install rpm-build<br>
dnf config-manager --enable devel<br>
dnf config-manager --enable powertools<br>
dnf config-manager --set-enabled ha<br>
dnf install kernel-debuginfo<br>
<br>
sh autogen.sh<br>
./configure<br>
<br>
This appeared to finish without errors:<br>
<br>
...<br>
config.status: executing libtool commands<br>
<br>
CC:            gcc<br>
LD:            /usr/bin/ld -m elf_x86_64<br>
CPPFLAGS:      -include /root/lustre-release/undef.h -include /root/lustre-release/config.h -I/root/lustre-release/lnet/include/uapi -I/root/lustre-release/lustre/include/uapi -I/root/lustre-release/libcfs/include -I/root/lustre-release/lnet/utils/ -I/root/lustre-release/lustre/include<br>
CFLAGS:        -g -O2 -Wall -Werror<br>
EXTRA_KCFLAGS: -include /root/lustre-release/undef.h -include /root/lustre-release/config.h  -g -I/root/lustre-release/libcfs/include -I/root/lustre-release/libcfs/include/libcfs -I/root/lustre-release/lnet/include/uapi -I/root/lustre-release/lnet/include -I/root/lustre-release/lustre/include/uapi -I/root/lustre-release/lustre/include -Wno-format-truncation -Wno-stringop-truncation -Wno-stringop-overflow<br>
<br>
Type &#39;make&#39; to build Lustre.<br>
<br>
However, when I run make:<br>
<br>
[root@mds lustre-release]# make<br>
make  all-recursive<br>
make[1]: Entering directory &#39;/root/lustre-release&#39;<br>
Making all in ldiskfs<br>
make[2]: Entering directory &#39;/root/lustre-release/ldiskfs&#39;<br>
make[2]: *** No rule to make target &#39;../ldiskfs/kernel_patches/series/ldiskfs-&#39;, needed by &#39;sources&#39;.  Stop.<br></blockquote><div><br></div><div>This looks like it can&#39;t detect the ldiskfs-4.18-rhel8.8.series property.  Most probably the ext4 kernel source rpm (kernel-debuginfo-common-x86_64) hasn&#39;t been installed yet.</div><div>And like Andreas said try latest 2.15.4.</div><div><br></div><div>Best,</div><div>Xinliang</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
make[2]: Leaving directory &#39;/root/lustre-release/ldiskfs&#39;<br>
make[1]: *** [autoMakefile:649: all-recursive] Error 1<br>
make[1]: Leaving directory &#39;/root/lustre-release&#39;<br>
make: *** [autoMakefile:521: all] Error 2<br>
<br>
Alternatively, I tried make rpms which results in:<br>
<br>
...<br>
rpmbuilddir=`mktemp -t -d rpmbuild-lustre-$USER-XXXXXXXX`; \<br>
make  \<br>
         rpmbuilddir=&quot;$rpmbuilddir&quot; rpm-local || exit 1; \<br>
cp ./rpm/* .; \<br>
/usr/bin/rpmbuild \<br>
         --define &quot;_tmppath $rpmbuilddir/TMP&quot; \<br>
         --define &quot;_topdir $rpmbuilddir&quot; \<br>
         --define &quot;dist %{nil}&quot; \<br>
         -ts lustre-2.15.3.tar.gz || exit 1; \<br>
cp $rpmbuilddir/SRPMS/lustre-2.15.3-*.src.rpm . || exit 1; \<br>
rm -rf $rpmbuilddir<br>
make[1]: Entering directory &#39;/root/lustre-release&#39;<br>
make[1]: Leaving directory &#39;/root/lustre-release&#39;<br>
error: line 239: Dependency tokens must begin with alpha-numeric, &#39;_&#39; or &#39;/&#39;: BuildRequires: %kernel_module_package_buildreqs<br>
make: *** [autoMakefile:1237: srpm] Error 1<br>
<br>
<br>
So, I&#39;m stuck - it seems this is something I do a lot; how do I move forward from here?<br>
<br>
_______________________________________________<br>
lustre-discuss mailing list<br>
<a href="mailto:lustre-discuss@lists.lustre.org" target="_blank">lustre-discuss@lists.lustre.org</a><br>
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
</blockquote></div></div>