制作一个本地镜像

reposync configfile:

[root@localhost html]# cat lustre-repo.conf
[lustre-server]
name=lustre-server
baseurl=https://downloads.whamcloud.com/public/lustre/latest-release/el7.6.1810/server
# exclude=*debuginfo*
gpgcheck= [lustre-client]
name=lustre-client
baseurl=https://downloads.whamcloud.com/public/lustre/latest-release/el7.6.1810/client
# exclude=*debuginfo*
gpgcheck= [patchless-ldiskfs]
name=patchless-ldiskfs
baseurl=https://downloads.whamcloud.com/public/lustre/latest-release/el7.6.1810/patchless-ldiskfs-server
# exclude=*debuginfo*
gpgcheck= [e2fsprogs-wc]
name=e2fsprogs-wc
baseurl=https://downloads.whamcloud.com/public/e2fsprogs/latest/el7
# exclude=*debuginfo*
gpgcheck=

同步镜像:

[root@localhost html]# reposync -c lustre-repo.conf -n -r lustre-server -r lustre-client -r patchless-ldiskfs -r e2fsprogs-wc

如果因为网络问题,可以使用proxychains4 来进行代理访问:(proxychains4 安装教程)

[root@localhost repo]# proxychains4 reposync -c ../lustre-repo.conf -n -r lustre-server -r lustre-client -r patchless-ldiskfs -r e2fsprogs-wc

创建repo metadata:

cd /usr/share/nginx/html/repo
for i in e2fsprogs-wc lustre-client lustre-server patchless-ldiskfs; do
(cd $i && createrepo .)
done

 制作lustre.repo文件:

[root@localhost html]# cat lustre.repo
[lustre-server]
name=lustre-server
baseurl=http://127.0.0.1/repo/lustre-server
# enabled=
gpgcheck=
proxy=_none_ [lustre-client]
name=lustre-client
baseurl=http://127.0.0.1/repo/lustre-client
# enabled=
gpgcheck= [e2fsprogs-wc]
name=e2fsprogs-wc
baseurl=http://127.0.0.1/repo/e2fsprogs-wc
# enabled=
gpgcheck= # patchless-ldiskfs [patchless-ldiskfs]
name=patchless-ldiskfs
baseurl=http://127.0.0.1/repo/patchless-ldiskfs
# enabled=
gpgcheck=

yum 安装教程,详细请参考lustre文档

http://wiki.lustre.org/Installing_the_Lustre_Software#Using_YUM_to_Manage_Local_Software_Provisioning

保持更新,如果对你有帮助,请点击推荐。

lustre 具体安装步骤步骤,针对本地文件资源:

. 关闭防火墙,关闭 selinux
. 安装 repo
a. 安装 epel-release repo , yum install, yum makecache
b. 安装 nginx repo , yum install , yum makecache
c. 启动 nginx ; cd /usr/share/nginx/html
d. 覆盖 nginx 配置文件并reload; nginx -s reload
e. 创建 lustre repo; 运行 makerepo.sh 更新索引;
f. 复制repo 配置文件;yum makecache;
. 安装 lustre
a. 参考 lustre wiki; http://wiki.lustre.org/Installing_the_Lustre_Software
b. 安装dkms
c. 安装 Lustre Servers with LDISKFS OSD Support
d. 重新启动;进入新内核;
e. 继续完成安装;通过 modprobe -v lustre 检测lustre 模块是否能够加载;
. 安装 lustre client
a. 参考 https://docs.aws.amazon.com/fsx/latest/LustreGuide/install-lustre-client.html
b. 进行在 ubuntu 18.04 安装 deb
c. dpkg -i install lustre-client-modules & lustre-utils
d. curl -O -L http://10.134.150.13/client/lustre-client-modules-4.15.0-45-generic_2.12.2-1_amd64.deb
e. curl -O -L http://10.134.150.13/client/lustre-client-utils_2.12.2-1_amd64.deb
f. 安装 apt install perl-modules-5.22; apt install libperl5.; apt install libsnmp30;
g. 记得配置好ubuntu的源;
. 启动lustre
a. 服务端格式化硬盘,并启动 lustre 服务;绑定到指定的网卡;并创建挂载点 /mnt/mdt /mnt/ost0
b. mkfs.lustre --fsname=lustrefs --mgs --mdt --index= /dev/sdb 配置 MGS
c. mount.lustre /dev/sdb /mnt/mdt 挂载 mgs
d. mkfs.lustre --fsname=lustrefs --mgsnode=10.134.150.13@tcp --ost --index= /dev/sdc 配置 OSS
e. mount.lustre /dev/sdc /mnt/ost0
f. 启动lustre 服务器 systemctl restart lustre;
g. 客户端挂在 lustre: mount.lustre 192.168.83.128@tcp:/lustrefs /mnt/lustre
h. mkfs.lustre --fsname=lustrefs --mgsnode=192.168.83.128@tcp --ost --index= /dev/sdc 配置 OSS 防止网卡不够智能的时候出现找不到mgs的问题;

linux 创建虚拟块设备,制作文件系统并挂载,用于测试lustre:

参考链接:https://www.cnblogs.com/xuyaowen/p/lustre-loop-device.html

保持更新,更多内容请关注 cnblogs.com/xuyaowen;

Lustre 文件系统介绍:https://en.wikipedia.org/wiki/Lustre_(file_system)

阿里云Lustre 安装步骤:(2020年4月20日)

创建位于同一VPC的两台虚拟机;一台Ubuntu,一台Centos ;
在创建CentOS 实例的时候,注意多创建两块云盘;
设置好安全组,保证位于同一VPC两台机器可以互相访问;
上传Lustre安装包至其中一台VPC;
安装nginx: systemctl status nginx 在需要安装的Centos 上;
按照Lustre安装步骤进行安装;

Lustre Client 挂载步骤:

安装客户端(开启客户端扩展属性):
dpkg -i install lustre-client-modules & lustre-utils
apt --fix-broken install
mount.lustre -o user_xattr 192.168.83.128@tcp:/lustrefs /mnt/lustre

参考链接:http://wiki.lustre.org/Mounting_a_Lustre_File_System_on_Client_Nodes

Lustre 中国社区:http://lustrefs.cn/

Lustre 文件系统安装的更多相关文章

  1. Linux FastDFS 分布式文件系统安装

    Linux FastDFS 分布式文件系统安装 2013 年 3 月 11 日 – 09:21 | 930 views | 收藏  (No Ratings Yet) FastDFS是一款类Google ...

  2. Lustre文件系统测试——obdfilter-survey测试

    Lustre文件系统测试--obdfilter-survey测试 介绍 该测试主要是在lustre文件系统工作环境下进行,将直接在ost上生成工作负载模拟并行文件访问,可准确检测盘阵在lustre文件 ...

  3. lustre文件系统环境搭建及测试

    目录 1.节点角色 2.硬件配置 3.软件版本 4.安装软件包 4.1.安装 e2fsprogs 相关包 4.2.安装 kernel 相关包 4.3.客户端安装 4.4.服务器端安装 4.5.配置 5 ...

  4. NFS网络文件系统安装配置

    简介 NFS(Network File System)FS是由Sun开发并发展起来的一项用于在不同机器,不同操作系统之间通过网络共享数据.客户端用mount命令把远程的NFS文件系统挂载到本地即可,操 ...

  5. 吴裕雄--天生自然HADOOP操作实验学习笔记:hdfs分布式文件系统安装

    实验目的 复习安装jdk 学习免密码登录 掌握安装配置hdfs集群的方法 掌握hdfs集群的简单使用和检查其工作状态 实验原理 1.hdfs是什么 hadoop安装的第一部分是安装hdfs,hdfs是 ...

  6. oracle 11.2.0.4单实例文件系统安装与补丁

    [TOC] 一,预安装处理 1.版本准备 操作系统:RHEL 6.5 数据库版本:Oracle 11.2.0.4 相关包:p13390677_112040_Linux-x86-64_1of7.zip  ...

  7. FastDFS分布式文件系统安装与使用(单节点)

    http://blog.csdn.net/xyang81/article/details/52837974 http://download.csdn.net/detail/xyang81/966749 ...

  8. centos 下创建本地镜像源,结合 nginx

    1. 创建同步文件 参考清华的Centos源,配置同步文件.https://mirrors.tuna.tsinghua.edu.cn/help/centos/ [root@localhost cent ...

  9. Lustre文件系统部署和应用探索

    1. Lustre文件系统概述 2. Lustre文件系统部署 2.1 基本环境 本篇博客将在KVM虚拟机中部署Lustre文件系统. 操作系统版本为CentOS6.5_x86_64.Lustre软件 ...

随机推荐

  1. SQLi-LABS Page-3 (order by injections) Less-46-Less-53

    关于order by 注入原理讲解 注入原理 1. 测试 ?sort=1 desc--+?sort=1 asc--+ 显示结果不同,说明可以注入 desc是 descend 降序意思 asc 是 as ...

  2. LiveData使用

    ### Andorid LiveData 使用 [[_TOC_]] #### Lifycycle 使用1.继承FragmentActivity 实现LifecycleOwner接口2.声明一个Life ...

  3. Word List 1

    前言 图片均来源网络 文章目录 前言 1.1 Super computer 1.2 Mainframe 1.3 Server 1.4 Desktop PC 1.5 Notebook or Laptop ...

  4. PM8909 linear charger硬件概述

    电池充电是由qpnp-vm-bus.c(电池驱动BMS)和qpnp-linear-charger.c(线性充电器)组成: SMMB charger:Switch-ModeBattery Charger ...

  5. raid组合优缺点介绍和创建LVM实验个人笔记

    一.RAID组合介绍 RAID模式优缺点的简要介绍 1.raid 0 模式 优点:在RAID 0状态下,存储数据被分割成两部分,分别存储在两块硬盘上,此时移动硬盘的理论存储速度是单块硬盘的2倍,实际容 ...

  6. PHP的stdClass

    概述 以下是百度百科对php中的 stdClass的描述: stdClass在PHP5才开始被流行.而stdClass也是zend的一个保留类.stdClass类是PHP的一个内部保留类,初始时没有成 ...

  7. 挑战编程 uva100 3n+1

    挑战编程 刘汝佳 的第一道习题  热身题 熟悉下提交格式 题意 #include <iostream> #include <algorithm> using namespace ...

  8. 微信小程序图像增强img.superresolution接口

    整体流程: 获得access_token 调用img.superresolution得到media_id 根据media_id下载图片 注:虽然以下的几个接口都是服务端API,但是我都是在客户端调用的 ...

  9. mysql执行操作时卡死

    有时候使用Navicat对mysql数据库进行添加字段,truncate或其他操作时会一直卡住不动,后来查看进程才发现一直处于等待状态 先执行,列出所有进程 show full processlist ...

  10. Sharding-JDBC:垂直拆分怎么做?

    经过读写分离的优化后,小王可算是轻松了一段时间,读写分离具体的方案请查看这篇文章: Sharding-JDBC:查询量大如何优化? 可是好景不长,业务发展是在太快了.数据库中的数据量猛增,由于所有表都 ...