개요
Lustre 파일 시스템의 기능 검증을 위해 단일 노드 환경에서 간단한 설정을 수행하였다. 본 문서는 Rocky Linux 8.10 기반으로 Lustre 2.15.6 버전을 서버와 클라이언트에 설치하고, 기본 스토리지 구성 후 마운트하는 과정을 설명한다.
시스템 구성 정보
| 구분 | OS | 관리 네트워크 | 데이터 네트워크 |
| 서버 | Rocky Linux 8.10 | 10.17.86.45 (ens192) | 192.168.1.45 (ens224) |
| 클라이언트 | Rocky Linux 8.10 | 10.17.86.44 (ens192) | 192.168.1.44 (ens224) |
- Secure Boot 비활성화 필수
- 방화벽(firewalld) 및 SELinux 비활성화 필요
디스크 준비
서버 노드에 아래와 같은 추가 디스크를 연결하고 파티셔닝 완료:
/dev/sdb1 – 10GB (MGS용)
/dev/sdb2 – 30GB (MDT용)
/dev/sdc1 – 40GB (OST용)
네트워크 모듈 설정
Lustre가 사용할 네트워크 인터페이스를 지정하기 위해 LNet 모듈 설정을 추가:
# /etc/modprobe.d/lustre.conf
options lnet networks=tcp0(ens224)
이후 재부팅 또는 모듈 재적재로 반영.
Yum 저장소 등록
서버 및 클라이언트 모두에 대해 `/etc/yum.repos.d/lustre.repo` 파일 생성:
[lustre_el8_client]
name=Whamcloud Lustre Client
baseurl=https://downloads.whamcloud.com/public/lustre/lustre-2.15.6/el8.10/client/
enabled=1
priority=5
gpgcheck=0
[lustre_el8_server]
name=Whamcloud Lustre Server
baseurl=https://downloads.whamcloud.com/public/lustre/lustre-2.15.6/el8.10/server/
enabled=1
priority=5
gpgcheck=0
[e2fsprogs_latest]
name=Whamcloud e2fsprogs
baseurl=https://downloads.whamcloud.com/public/e2fsprogs/latest/el8/
enabled=1
priority=5
gpgcheck=0
Lustre 서버 설치 및 구성
저장소 갱신 후 서버 패키지 설치:
yum makecache && yum install -y lustre
설치 후 시스템 재시작 필요.
MGS (Metadata Service) 생성
mkfs.lustre --mgs --fsname=lustre --reformat \
--mgsnode=192.168.1.45@tcp0 /dev/sdb1
mkdir -p /mnt/mgs
mount.lustre /dev/sdb1 /mnt/mgs
MDT (Metadata Target) 생성
mkfs.lustre --fsname=lustre --mdt --index=0 \
--mgsnode=192.168.1.45@tcp0 /dev/sdb2
mkdir -p /mnt/mdt
mount.lustre /dev/sdb2 /mnt/mdt
OST (Object Storage Target) 생성
mkfs.lustre --fsname=lustre --ost --index=0 --reformat \
--mgsnode=192.168.1.45@tcp0 /dev/sdc1
mkdir -p /mnt/ost
mount.lustre /dev/sdc1 /mnt/ost
클라이언트 설치 및 마운트
클라이언트 머신에서도 동일한 저장소를 기반으로 클라이언트 패키지 설치:
yum makecache && yum install -y lustre-client
설치 후 재부팅을 통해 커널 모듈 로드 확인.
마운트 디렉터리 생성 후 파일 시스템 마운트:
mkdir -p /mnt/lustre
mount.lustre 192.168.1.45@tcp0:/lustre /mnt/lustre
결과 확인
df -h 명령어로 마운트 상태 확인:
Filesystem Size Used Avail Use% Mounted on
...
192.168.1.45@tcp:/lustre 39G 1.3M 37G 1% /mnt/lustre
정상적으로 Lustre 볼륨이 클라이언트에 마운트된 것을 확인할 수 있다.