Lustre文件系统安装

作者: lihanglucien | 来源:发表于2019-05-16 10:58 被阅读0次

1. 环境

1.1 创建临时的yum源

cat >/tmp/lustre-repo.conf <<\__EOF
[lustre-server]
name=lustre-server
baseurl=https://downloads.whamcloud.com/public/lustre/latest-release/el7/server
# exclude=*debuginfo*
gpgcheck=0

[lustre-client]
name=lustre-client
baseurl=https://downloads.whamcloud.com/public/lustre/latest-release/el7/client
# exclude=*debuginfo*
gpgcheck=0

[e2fsprogs-wc]
name=e2fsprogs-wc
baseurl=https://downloads.whamcloud.com/public/e2fsprogs/latest/el7
# exclude=*debuginfo*
gpgcheck=0
__EOF

1.2 下载相关软件包

mkdir -p /var/www/html/repo
cd /var/www/html/repo
reposync -c /tmp/lustre-repo.conf -n \
-r lustre-server \
-r lustre-client \
-r e2fsprogs-wc

1.3 创建repo

cd /var/www/html/repo
for i in e2fsprogs-wc lustre-client lustre-server; do
(cd $i && createrepo .)
done

1.4 lustre repo

hn=`hostname --fqdn`
cat >/var/www/html/lustre.repo <<__EOF
[lustre-server]
name=lustre-server
baseurl=https://$hn/repo/lustre-server
enabled=0
gpgcheck=0
proxy=_none_

[lustre-client]
name=lustre-client
baseurl=https://$hn/repo/lustre-client
enabled=0
gpgcheck=0

[e2fsprogs-wc]
name=e2fsprogs-wc
baseurl=https://$hn/repo/e2fsprogs-wc
enabled=0
gpgcheck=0
__EOF

1.5 查看lustre repo

yum repolist all

2. 安装

2.1 安装Lustre Server软件

2.1.1. 安装e2fsprogs

yum --nogpgcheck --disablerepo=* --enablerepo=e2fsprogs-wc \
install e2fsprogs

2.1.2. 安装并升级内核

yum --nogpgcheck --disablerepo=base,extras,updates \
--enablerepo=lustre-server install \
kernel \
kernel-devel \
kernel-headers \
kernel-tools \
kernel-tools-libs \
kernel-tools-libs-devel

2.1.3. 重启

reboot

2.1.4. 安装ldiskfs kmod和lustre包

yum --nogpgcheck --enablerepo=lustre-server install \
kmod-lustre \
kmod-lustre-osd-ldiskfs \
lustre-osd-ldiskfs-mount \
lustre \
lustre-resource-agents

2.1.5 加载lustre到内核

modprobe -v lustre
modprobe -v ldiskfs

2.2 安装lustre client

2.2.1 升级内核

yum install \
kernel \
kernel-devel \
kernel-headers \
kernel-abi-whitelists \
kernel-tools \
kernel-tools-libs \
kernel-tools-libs-devel

2.2.2 重启

reboot

2.2.3 安装kmod包

yum --nogpgcheck --enablerepo=lustre-client install \
kmod-lustre-client \
lustre-client

2.2.4 加载lustre到内核

modprobe -v lustre

3.创建lustre文件系统

配置说明

  • --fsname:指定生成后的lustre文件系统名,如sgfs,将来客户端采用mount -t 192.168.100.1@tcp0:192.168.100.2@tcp0:/sgfs /home进行挂载。
  • --mgs:指定为MGS分区
  • --mgt:指定为MGT分区
  • --ost:指定为OST分区
  • --servicenode=ServiceNodeIP@tcp0:指定本节点失效时,接手提供服务的节点,如为InfiniBand网络,那么tcp0需要换成o2ib
  • --index:指定索引,不能相同

3.1 安装MGS

#格式化
mkfs.lustre --fsname=lustrefs --reformat --mgs --servicenode=mds1@tcp0  /dev/vdb

#挂载
mount -t lustre /dev/vdb /mnt/mgs

3.2 安装MDT

#格式化
mkfs.lustre --mdt --fsname=lustrefs --index=0 --mgsnode=mds1@tcp0 --servicenode=mds1@tcp0 --reformat /dev/vdb

#开启quota
tune2fs -O project /dev/vdb

#挂载目录
mount -t lustre /dev/vdc /mnt/mdt

3.3 安装OST

#格式化
mkfs.lustre --fsname=lustrefs --ost --reformat --index=0 --servicenode=ost1@tcp0 --servicenode=ost2@tcp0 --mgsnode=mds1@tcp0 /dev/vdb

#开启quota
tune2fs -O project,quota /dev/vdb

mount -t lustre /dev/vdb /mnt/ost1

启用quota

lctl conf_param lustrefs.quota.ost=ugp; 
lctl conf_param lustrefs.quota.mdt=ugp;

相关文章

  • lustre 简易部署

    简易部署lustre文件系统,不含lustre软件安装。 MGS/MDT 在块设备上创建一个MGS/MDT组合文件...

  • Lustre文件系统安装

    1. 环境 1.1 创建临时的yum源 1.2 下载相关软件包 1.3 创建repo 1.4 lustre rep...

  • Lustre参数调整

    1. 设置和查看lustre参数 创建文件系统时,使用mkfs.lustre。 当服务器停止运行时,使用use t...

  • CentOS-7 安装Lustre-2.10.1文件系统

    注:原创文章,转载请注明出处 一、文档说明 Lustre是一种强大的平行分布式文件系统,通常用于HPC行业。主要组...

  • Lustre 2.12.53 + MOFED 4.6

    编译RPM包 安装Lustre内核,自己编译或者官网下载rpm包都可以安装Mellanox驱动,注意要解决后面提到...

  • 关于lustre-stripe-配置实践

    背景: lustre ost 个数=24以下截图,blocksize不同,count是针对lustre ost数量...

  • Lustre FS简介

    历史 Lustre这个词来自Linux和Cluster两个词的组合 Lustre最早源于Carnegie Mell...

  • Linux命令之——df

    查看文件系统磁盘空间使用情况df显示指定文件系统的可用磁盘容量,如果不指定文件系统,则会显示所有当前安装的文件系统...

  • Linux云计算学习笔记day34

    NFS服务 wrong fs type 错误的文件系统类型 nfs文件系统无法识别没有安装nfs-utils 客...

  • i.MX6ULL终结者Debian文件系统的构建i.MX6ULL

    文章目录 1 安装Qumu和Debootstrap 2 抽取Debain文件系统 3 完善文件系统 4 打包文件系...

网友评论

    本文标题:Lustre文件系统安装

    本文链接:https://www.haomeiwen.com/subject/fedcpqtx.html