背景

最近需要部署一套K8S+Slurm+Lustre的服务,先在测试环境部署试了下。由于有三台服务器是CentOS 7.9(大容量),三台服务器是Ubuntu24.04,所以本次部署方案为服务端使用CentOS7.9 + Lustre 2.12.9-1.el7版本,客户端使用Ubuntu24.04 + Lustre 2.16.1。

部署方案

  • 服务端:CentOS 7.9 + Lustre 2.12.9

    • 10.10.10.28 : Lustre Server
    • 10.10.10.29: Lustre Server
    • 10.10.10.30: Lustre Server
  • 客户端:Ubuntu24.04 + Lustre 2.16.1 (需要自己编译)

    • 10.10.10.17:Kubernetes Master
    • 10.10.10.18:Kubernetes Worker
    • 10.10.10.19:Kubernetes Worker

下载依赖包

在Lustre服务端下载Lustre的安装依赖包,下载地址为:https://downloads.whamcloud.com/public/lustre/lustre-2.12.9/el7/

1
2
3
4
5
6
7
8
[root@comm-08 ~]# cd lustre-rpms
[root@comm-08 lustre-rpms]# ll
总用量 18348
-rw-r--r-- 1 root root 4980736 9月 26 20:06 bpftool-3.10.0-1160.49.1.el7_lustre.x86_64.rpm
-rw-r--r-- 1 root root 824272 6月 18 2022 lustre-2.12.9-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 672912 6月 18 2022 lustre-client-2.12.9-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 12287436 6月 18 2022 lustre-ldiskfs-dkms-2.12.9-1.el7.noarch.rpm
-rw-r--r-- 1 root root 14852 6月 18 2022 lustre-osd-ldiskfs-mount-2.12.9-1.el7.x86_64.rpm

安装依赖包

给服务端的三台服务器安装依赖包

核对必要的服务器信息

例如:``hostname -f、uname -r、rpm -qa | grep -i lustre、lsblk -f、lctl get_param version、lctl list_nids、lctl dl`等等,请根据实际的情况进行核对。

确定 MGS/MDT/OST 拓扑、设备和格式化计划

那台服务器

执行安装和格式化

验证

客户端挂载

客户端验证

集成到K8S中

这一步应该是lustre-csi-driver和lustre-csi-chart-v0.1.0-harbor等相关的安装