STOGAGES/LUSTRE

[Ubuntu] Cray Lustre client build

CRAY KOREA Blog 2024. 8. 28. 20:03

아래의 환경에서 Cray Lustre Client 빌드 과정을 소개 한다.

 

- OS: Ubuntu 20.04.6 LTS

- Lustre Client: Cray Lustre 2.15.B15 

 

1. 의존성 패키지 설치

# apt update
# apt install module-assistant libreadline-dev debhelper \
  dpatch automake pkg-config libtool libyaml-dev libnl-genl-3-dev \
  libselinux-dev libsnmp-dev bzip2 quilt \
  linux-headers-$(uname -r) rsync libssl-dev libpython3-dev swig \
  tk tk-dev bison tcl tcl-dev  graphviz dkms flex \
  logrotate libvirt0 libglib2.0-dev libcurl4-gnutls-dev \
  python-libxml2 libkeyutils-dev dpkg-dev \
  gfortran libnl-route-3-200 libnl-route-3-dev libgfortran5 \
  chrpath gcc debhelper pkg-config make quilt dh-autoreconf

 

2. Mellanox OFED 설치

# ./mlnxofedinstall --without-fw-update --dkms

 

3. CUDA Toolkit 설치

# wget https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda_12.2.2_535.104.05_linux.run
# chmod +x cuda_12.2.2_535.104.05_linux.run
# sh ./cuda_12.2.2_535.104.05_linux.run

 

4. Lustre의 의존성 패키지 설치

# apt install mpi-default-dev

 

5. Cray Lustre client 컴파일

# tar xvf 2.15.4.2_cray_10_gf6941f7_dkms.tgz
# tar xvf 2.15.4.2_cray_10_gf6941f7_ubuntu22.04_dkms.x86_64.tgz
# rpm2cpio lustre-client-dkms-2.15.4.2_cray_10_gf6941f7-1.el9.src.rpm  | cpio -idmv
# tar xf lustre-2.15.4.2_cray_10_gf6941f7.tar.gz
# cd lustre-2.15.4.2_cray_10_gf6941f7
# ./configure --disable-server --enable-client \
  --with-linux=/usr/src/linux-headers-5.4.0-144 \
  --with-linux-obj=/usr/src/linux-headers-5.4.0-144-generic \
  --with-o2ib=/usr/src/ofa_kernel/default
# make debs

 

6. Cray Lustre client 설치

# dpkg -i lustre-client-utils_2.15.4.2-cray-10-gf6941f7-1_amd64.deb \
lustre-dev_2.15.4.2-cray-10-gf6941f7-1_amd64.deb \
lustre-iokit_2.15.4.2-cray-10-gf6941f7-1_amd64.deb \
lustre-client-modules-5.4.0-144-generic_2.15.4.2-cray-10-gf6941f7-1_amd64.deb