<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 <<a href="mailto:jan@comind.io">jan@comind.io</a>> 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="Rocky Linux"<br>
VERSION="8.8 (Green Obsidian)"<br>
ID="rocky"<br>
ID_LIKE="rhel centos fedora"<br>
VERSION_ID="8.8"<br>
PLATFORM_ID="platform:el8"<br>
PRETTY_NAME="Rocky Linux 8.8 (Green Obsidian)"<br>
ANSI_COLOR="0;32"<br>
LOGO="fedora-logo-icon"<br>
CPE_NAME="cpe:/o:rocky:rocky:8:GA"<br>
HOME_URL="<a href="https://rockylinux.org/" rel="noreferrer" target="_blank">https://rockylinux.org/</a>"<br>
BUG_REPORT_URL="<a href="https://bugs.rockylinux.org/" rel="noreferrer" target="_blank">https://bugs.rockylinux.org/</a>"<br>
SUPPORT_END="2029-05-31"<br>
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"<br>
ROCKY_SUPPORT_PRODUCT_VERSION="8.8"<br>
REDHAT_SUPPORT_PRODUCT="Rocky Linux"<br>
REDHAT_SUPPORT_PRODUCT_VERSION="8.8"<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'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 "" | 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 'make' 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 '/root/lustre-release'<br>
Making all in ldiskfs<br>
make[2]: Entering directory '/root/lustre-release/ldiskfs'<br>
make[2]: *** No rule to make target '../ldiskfs/kernel_patches/series/ldiskfs-', needed by 'sources'.  Stop.<br></blockquote><div><br></div><div>This looks like it can't detect the ldiskfs-4.18-rhel8.8.series property.  Most probably the ext4 kernel source rpm (kernel-debuginfo-common-x86_64) hasn'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 '/root/lustre-release/ldiskfs'<br>
make[1]: *** [autoMakefile:649: all-recursive] Error 1<br>
make[1]: Leaving directory '/root/lustre-release'<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="$rpmbuilddir" rpm-local || exit 1; \<br>
cp ./rpm/* .; \<br>
/usr/bin/rpmbuild \<br>
         --define "_tmppath $rpmbuilddir/TMP" \<br>
         --define "_topdir $rpmbuilddir" \<br>
         --define "dist %{nil}" \<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 '/root/lustre-release'<br>
make[1]: Leaving directory '/root/lustre-release'<br>
error: line 239: Dependency tokens must begin with alpha-numeric, '_' or '/': BuildRequires: %kernel_module_package_buildreqs<br>
make: *** [autoMakefile:1237: srpm] Error 1<br>
<br>
<br>
So, I'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>