On 2/9/24 02:21, Yao Weng via lustre-discuss wrote:
Hi,
I have a question about installing lustre on Ubuntu. There is no lustre-server deb package in https://downloads.whamcloud.com/public/lustre <https://downloads.whamcloud.com/public/lustre>. We have to build the deb package ourselves

You will have to probably have use 5.15.0-92-generic version, as of 94 the ldiskfs patches do not apply.

If you do not already have e2fsprogs with ldiskfs support you should get it here:
https://build.whamcloud.com/job/e2fsprogs-master/

Next get the matching headers and sources installed:
   sudo apt install linux-headers-5.15.0-92 linux-headers-5.15.0-92-generic
   sudo apt install linux-source-5.15.0=5.15.0-92.102

You can use apt-cache to find the package version:
    apt-cache policy linux-source-5.15.0

Now extract the 'fs/ext4' sources from /usr/src/linux-source-5.15.0/linux-source-5.15.0.tar.bz2 and copy them to your /usr/src/linux-headers-<version>/fs/ext4

mkdir tmp
cd tmp
tar xf /usr/src/linux-source-5.15.0/linux-source-5.15.0.tar.bz2
sudo cp -v linux-source-5.15.0/fs/ext4/* /usr/src/linux-headers-5.15.0-92/fs/ext4/
cd ..
rm -fr tmp

Note that 5.15 for ubuntu is recently landed:
  LU-17131 ldiskfs: Add Ubuntu 20.04.5 release 5.15 kernel

So with the prepared sources and current lustre (master branch) that includes LU-17131:

sh ./autogen.sh

./configure --config-cache --enable-server --enable-client \
  --with-linux=/usr/src/linux-headers-5.15.0-92 \
  --with-linux-obj=/usr/src/linux-headers-5.15.0-92-generic \
  --enable-ldiskfs --enable-modules

make -j$(nproc)

# Additional ./configure options to consider:
  --with-o2ib=/usr/src/ofa_kernel/x86_64/$(uname -r)
  --without-zfs
  --enable-gss
  --enable-gss-keyring
  --enable-crypto

We use ubuntu 22.04

Distributor ID:        Ubuntu

Description:        Ubuntu 22.04.3 LTS

Release:        22.04

Codename:        jammy

Kernel is

5.15.0-56-generic

You will have to probably have use 5.15.0-92-generic

We got gcc error when run

./configure --with-linux=/home/<user-name>/linux-source-5.15.0/linux-source-5.15.0/

gcc: *error*: unrecognized command-line option '-V'

gcc: fatal *error*: no input files

gcc: *error*: unrecognized command-line option '-qversion'; did you mean '--version'?

our gcc is

gcc -v

Using built-in specs.

COLLECT_GCC=gcc

COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper

OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa

OFFLOAD_TARGET_DEFAULT=1

Target: x86_64-linux-gnu

Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2

Thread model: posix

Supported LTO compression algorithms: zlib zstd

gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)


Could anyone help suggest how to properly build the lustre package ?

Thank you !


_______________________________________________
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

_______________________________________________
lustre-discuss mailing list
lustre-discuss@lists.lustre.org
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

Reply via email to