Lustre 文件系统安装
制作一个本地镜像
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文档
保持更新,如果对你有帮助,请点击推荐。
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 文件系统安装的更多相关文章
- Linux FastDFS 分布式文件系统安装
Linux FastDFS 分布式文件系统安装 2013 年 3 月 11 日 – 09:21 | 930 views | 收藏 (No Ratings Yet) FastDFS是一款类Google ...
- Lustre文件系统测试——obdfilter-survey测试
Lustre文件系统测试--obdfilter-survey测试 介绍 该测试主要是在lustre文件系统工作环境下进行,将直接在ost上生成工作负载模拟并行文件访问,可准确检测盘阵在lustre文件 ...
- lustre文件系统环境搭建及测试
目录 1.节点角色 2.硬件配置 3.软件版本 4.安装软件包 4.1.安装 e2fsprogs 相关包 4.2.安装 kernel 相关包 4.3.客户端安装 4.4.服务器端安装 4.5.配置 5 ...
- NFS网络文件系统安装配置
简介 NFS(Network File System)FS是由Sun开发并发展起来的一项用于在不同机器,不同操作系统之间通过网络共享数据.客户端用mount命令把远程的NFS文件系统挂载到本地即可,操 ...
- 吴裕雄--天生自然HADOOP操作实验学习笔记:hdfs分布式文件系统安装
实验目的 复习安装jdk 学习免密码登录 掌握安装配置hdfs集群的方法 掌握hdfs集群的简单使用和检查其工作状态 实验原理 1.hdfs是什么 hadoop安装的第一部分是安装hdfs,hdfs是 ...
- oracle 11.2.0.4单实例文件系统安装与补丁
[TOC] 一,预安装处理 1.版本准备 操作系统:RHEL 6.5 数据库版本:Oracle 11.2.0.4 相关包:p13390677_112040_Linux-x86-64_1of7.zip ...
- FastDFS分布式文件系统安装与使用(单节点)
http://blog.csdn.net/xyang81/article/details/52837974 http://download.csdn.net/detail/xyang81/966749 ...
- centos 下创建本地镜像源,结合 nginx
1. 创建同步文件 参考清华的Centos源,配置同步文件.https://mirrors.tuna.tsinghua.edu.cn/help/centos/ [root@localhost cent ...
- Lustre文件系统部署和应用探索
1. Lustre文件系统概述 2. Lustre文件系统部署 2.1 基本环境 本篇博客将在KVM虚拟机中部署Lustre文件系统. 操作系统版本为CentOS6.5_x86_64.Lustre软件 ...
随机推荐
- windows 应急流程及实战演练
前言 本文摘自信安之路公众号的文章. 当企业发生黑客入侵.系统崩溃或其它影响业务正常运行的安全事件时,急需第一时间进行处理,使企业的网络信息系统在最短时间内恢复正常工作,进一步查找入侵来源,还原入侵事 ...
- Java Web工程目录结构
说明 介绍java web 工程的基本结构目录.记录java web 工程结构的学习. Java web 结构 java web严格来说分为两类工程结构:一个是工程编译目录结构,一个是工程发布目录结构 ...
- 安装pymssql
直接安装失败 https://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql 去下载对应的 pymssql whl版本 之后 pip install whe ...
- linux 软件包的组成部分
软件包的组成部分 1. 二进制文件 比如:/bin, /sbin & /usr/bin, /usr/sbin & /usr/local/bin, /usr/local/sbin 2.库 ...
- acwing 49. 二叉搜索树与双向链表
地址:https://www.acwing.com/problem/content/87/ 输入一棵二叉搜索树,将该二叉搜索树转换成一个排序的双向链表. 要求不能创建任何新的结点,只能调整树中结点指针 ...
- Python:程序练习题(二)
Python:程序练习题(二) 2.1温度转换程序. 代码如下: t=input("请输入带符号的温度值(如:32C):") if t[-1] in ["C", ...
- CF785D Anton and School - 2
题目链接 problem 给出一个括号序列,要求删除一些括号使得剩下的括号序列是个匹配的括号序列,且改括号序列左边全部为左括号,右边全部为右括号. solution 考虑枚举左右括号交界的位置\(x\ ...
- 【2019.8.15 慈溪模拟赛 T2】组合数(binom)(卢卡斯定理+高维前缀和)
卢卡斯定理 题目中说到\(p\)是质数. 而此时要求组合数向质数取模的结果,就可以用卢卡斯定理: \[C_x^y=C_{x\ div\ p}^{y\ div\ p}\cdot C_{x\ mod\ p ...
- java(三)基础类型之间的转换
自动类型转换:容量小的类型自动转换成为容量大的数据类型,数据类型按容量大小排序为: 有多种类型的数据混合运算时,系统首先自动将所有数据转换成容量最大的那种数据类型,然后在进行运算: byte.shor ...
- golang数据结构之插入排序
//InsertSort 插入排序 func InsertSort(arr *[]int) { ; i < len(arr); i++ { insertVal := (*arr)[i] inse ...