glusterfs 步骤
一、下载yum源 # wget http://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/CentOS/glusterfs-epel.repo
[root@localhost yum.repos.d]# wget http://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/CentOS/glusterfs-epel.repo
--2017-07-18 15:46:43-- http://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/CentOS/glusterfs-epel.repo
Resolving download.gluster.org... 23.253.208.221, 2001:4801:7824:104:be76:4eff:fe10:23d8
Connecting to download.gluster.org|23.253.208.221|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/CentOS/glusterfs-epel.repo [following]
--2017-07-18 15:46:43-- https://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/CentOS/glusterfs-epel.repo
Connecting to download.gluster.org|23.253.208.221|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1079 (1.1K)
Saving to: “glusterfs-epel.repo”
100%[===================================================================================================================================================>] 1,079 --.-K/s in 0s
2017-07-18 15:46:44 (80.5 MB/s) - “glusterfs-epel.repo” saved [1079/1079]
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
18G 14G 3.0G 82% /
tmpfs 3.9G 16K 3.9G 1% /dev/shm
/dev/vda1 485M 54M 407M 12% /boot
/dev/mapper/VG_vdb-LV_vdb
40G 832M 37G 3% /srv
二、服务端部署glusfter
[root@localhost yum.repos.d]# yum -y install glusterfs-server
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.9 MB 00:05
extras | 3.4 kB 00:00
glusterfs-epel | 2.9 kB 00:00
glusterfs-epel/primary_db | 10 kB 00:00
glusterfs-noarch-epel | 2.9 kB 00:00
glusterfs-noarch-epel/primary_db | 2.3 kB 00:00
logstash-5.0 | 951 B 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.5 MB 00:02
Resolving Dependencies
--> Running transaction check
---> Package glusterfs-server.x86_64 0:3.6.9-1.el6 will be installed
--> Processing Dependency: glusterfs-libs = 3.6.9-1.el6 for package: glusterfs-server-3.6.9-1.el6.x86_64
--> Processing Dependency: glusterfs-fuse = 3.6.9-1.el6 for package: glusterfs-server-3.6.9-1.el6.x86_64
--> Processing Dependency: glusterfs-cli = 3.6.9-1.el6 for package: glusterfs-server-3.6.9-1.el6.x86_64
--> Processing Dependency: glusterfs-api = 3.6.9-1.el6 for package: glusterfs-server-3.6.9-1.el6.x86_64
--> Processing Dependency: glusterfs = 3.6.9-1.el6 for package: glusterfs-server-3.6.9-1.el6.x86_64
--> Processing Dependency: libgfapi.so.0(GFAPI_PRIVATE_3.4.0)(64bit) for package: glusterfs-server-3.6.9-1.el6.x86_64
--> Processing Dependency: libgfapi.so.0(GFAPI_3.4.0)(64bit) for package: glusterfs-server-3.6.9-1.el6.x86_64
--> Processing Dependency: libglusterfs.so.0()(64bit) for package: glusterfs-server-3.6.9-1.el6.x86_64
--> Processing Dependency: libgfxdr.so.0()(64bit) for package: glusterfs-server-3.6.9-1.el6.x86_64
--> Processing Dependency: libgfrpc.so.0()(64bit) for package: glusterfs-server-3.6.9-1.el6.x86_64
--> Processing Dependency: libgfapi.so.0()(64bit) for package: glusterfs-server-3.6.9-1.el6.x86_64
--> Running transaction check
---> Package glusterfs.x86_64 0:3.6.9-1.el6 will be installed
---> Package glusterfs-api.x86_64 0:3.6.9-1.el6 will be installed
---> Package glusterfs-cli.x86_64 0:3.6.9-1.el6 will be installed
---> Package glusterfs-fuse.x86_64 0:3.6.9-1.el6 will be installed
---> Package glusterfs-libs.x86_64 0:3.6.9-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================
Installing:
glusterfs-server x86_64 3.6.9-1.el6 glusterfs-epel 720 k
Installing for dependencies:
glusterfs x86_64 3.6.9-1.el6 glusterfs-epel 1.4 M
glusterfs-api x86_64 3.6.9-1.el6 glusterfs-epel 64 k
glusterfs-cli x86_64 3.6.9-1.el6 glusterfs-epel 143 k
glusterfs-fuse x86_64 3.6.9-1.el6 glusterfs-epel 93 k
glusterfs-libs x86_64 3.6.9-1.el6 glusterfs-epel 282 k
Transaction Summary
=============================================================================================================================================================================================
Install 6 Package(s)
Total download size: 2.7 M
Installed size: 8.6 M
Downloading Packages:
(1/6): glusterfs-3.6.9-1.el6.x86_64.rpm | 1.4 MB 00:03
(2/6): glusterfs-api-3.6.9-1.el6.x86_64.rpm | 64 kB 00:00
(3/6): glusterfs-cli-3.6.9-1.el6.x86_64.rpm | 143 kB 00:00
(4/6): glusterfs-fuse-3.6.9-1.el6.x86_64.rpm | 93 kB 00:01
(5/6): glusterfs-libs-3.6.9-1.el6.x86_64.rpm | 282 kB 00:03
(6/6): glusterfs-server-3.6.9-1.el6.x86_64.rpm | 720 kB 00:10
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 108 kB/s | 2.7 MB 00:25
warning: rpmts_HdrFromFdno: Header V4 RSA/SHA256 Signature, key ID d5dc52dc: NOKEY
Retrieving key from http://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/EPEL.repo/rsa.pub
Importing GPG key 0xD5DC52DC:
Userid: "Gluster Packager <glusterpackager@download.gluster.org>"
From : http://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/EPEL.repo/rsa.pub
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : glusterfs-libs-3.6.9-1.el6.x86_64 1/6
Installing : glusterfs-3.6.9-1.el6.x86_64 2/6
Installing : glusterfs-api-3.6.9-1.el6.x86_64 3/6
Installing : glusterfs-fuse-3.6.9-1.el6.x86_64 4/6
Installing : glusterfs-cli-3.6.9-1.el6.x86_64 5/6
Installing : glusterfs-server-3.6.9-1.el6.x86_64 6/6
Verifying : glusterfs-fuse-3.6.9-1.el6.x86_64 1/6
Verifying : glusterfs-api-3.6.9-1.el6.x86_64 2/6
Verifying : glusterfs-libs-3.6.9-1.el6.x86_64 3/6
Verifying : glusterfs-cli-3.6.9-1.el6.x86_64 4/6
Verifying : glusterfs-server-3.6.9-1.el6.x86_64 5/6
Verifying : glusterfs-3.6.9-1.el6.x86_64 6/6
Installed:
glusterfs-server.x86_64 0:3.6.9-1.el6
Dependency Installed:
glusterfs.x86_64 0:3.6.9-1.el6 glusterfs-api.x86_64 0:3.6.9-1.el6 glusterfs-cli.x86_64 0:3.6.9-1.el6 glusterfs-fuse.x86_64 0:3.6.9-1.el6 glusterfs-libs.x86_64 0:3.6.9-1.el6
Complete!
三、启动
四、为存储池添加/移出服务器节点
在其中一个节点上操作即可
gluster peer probe <SERVER>
gluster peer detach <SERVER>
注意,移出节点时,需要提前将该节点上的Brick移除
查看所有节点的基本状态(显示的时候不包括本节点)
gluster peer status
gluster peer probe: failed: Probe returned with unknown errno 107解决方法
2014-10-17 17:46 by LittleMan, 1396 阅读, 0 评论, 收藏, 编辑
当在glusterfs中将服务器加到存储池中,及运行”gluster peer probe server”命令,
遇到peer probe: failed: Probe returned with unknown errno 107错误时,可以从以下几个方面解决问题
1、查看目标服务器上的防火墙是否关闭
2、查看glusterd在两台机器上都启动并运行
3、检查两台服务器能否ping的通
五、
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
18G 14G 3.0G 83% /
tmpfs 3.9G 16K 3.9G 1% /dev/shm
/dev/vda1 485M 54M 407M 12% /boot
/dev/mapper/VG_vdb-LV_vdb
40G 832M 37G 3% /srv
[root@localhost yum.repos.d]# mkdir -pv /data1/brick1/gv0
mkdir: created directory `/data1/brick1'
mkdir: created directory `/data1/brick1/gv0'
[root@localhost yum.repos.d]# gluster volume create gv0 replica 2 115.182.109.177:/data1/brick1/gv0/ 115.182.103.180:/data1/brick1/gv0/
volume create: gv0: failed: The brick 115.182.109.177:/data1/brick1/gv0 is being created in the root partition. It is recommended that you don't use the system's root partition for storage backend. Or use 'force' at the end of the command if you want to override this behavior.
六、
glusterfs 步骤的更多相关文章
- 分布式文件系统glusterfs安装步骤
我的系统是 RHEL5 , 可能环境不一样, 需要安装的第三方依赖不一样啊, 反正大家在安装的过程中缺少什么就去安装什么, 一般都会有提示的. 下载 glusterfs-3.2.0.tar.gz ...
- Ubuntu Server 12.04下部署glusterfs
1.安装环境 Linux:Ubuntuserver 12.04.1 LTS 64bit 2台 分布式文件系统:Gluster 测试环境:一台作文件服务器端(192.168.56.133),一台作客户端 ...
- ubuntu glusterfs 配置调试
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqMAAADpCAIAAACfoakcAAAgAElEQVR4nO2d2XMjSX7f8c+sQ4GwHY
- 分布式文件系统MooseFS安装步骤
1. 安装 1.1 准备安装环境 首先选择一台比较好的服务器做master,如果可以在选择一台做为master的备份服务器最好.然后其他的服务器当chunkserver. 为了方便说明问题,我这 ...
- Glusterfs下读写请求的处理流程
Glusterfs基于内核的fuse模块,fuse模块除了创建fuse文件系统外,还提供了一个字符设备(/dev/fuse),通过这个字符设备,Glusterfs可以读取请求,并发送响应,并且可以发送 ...
- glusterfs+heketi为k8s提供共享存储
背景 近来在研究k8s,学习到pv.pvc .storageclass的时候,自己捣腾的时候使用nfs手工提供pv的方式,看到官方文档大量文档都是使用storageclass来定义一个后端存储服务, ...
- Centos7下GlusterFS分布式存储集群环境部署记录
0)环境准备 GlusterFS至少需要两台服务器搭建,服务器配置最好相同,每个服务器两块磁盘,一块是用于安装系统,一块是用于GlusterFS. 192.168.10.239 GlusterFS-m ...
- Centos7下GlusterFS 分布式文件系统环境搭建
Centos7下 GlusterFS 环境搭建准备工作glusterfs-3.6.9.tar.gzuserspace-rcu-master.zip三台服务器:192.168.133.53.192.16 ...
- glusterfs分布式复制扩容卷以及平衡卷
随着数据量的增长,需要扩容满足使用.今天测试下glusterfs磁盘扩容的具体步骤 1.扩容 之前用的2台计算机的分布式复制卷.需要同时之两个服务器增加一块磁盘并格式化,挂载并扩容 热添加磁盘 ech ...
随机推荐
- 记一次电信反射xss的挖掘与利用
0X0.前言 早上起床,打开手机习惯性刷刷新闻,却发现网络无法连接,本以为是光猫出现了问题,后来发现是忘记续费,欠费了. 在网上充值完之后,等了有将近十分钟,网依旧没恢复.随打了个电话给客服,客服在后 ...
- 基于docker的 Hyperledger Fabric 多机环境搭建(下)
Docker环境部署见上一篇博客:http://www.cnblogs.com/cnblogs-wangzhipeng/p/6994541.html. 我们部署分布式容器服务后就要在上面部署Fabri ...
- Python模块学习---Web
import urlparse url = urlparse.urlparse("http://www.python.org/doc/FAQ.html") print url pr ...
- asp.net mvc 记录Action耗时
可能有些时候需要记录Action的执行时间来优化系统功能,这时可以用过滤器来实现. 新建项目 项目名称随便取 身份验证:不进行身份验证 安装Nlog 这里使用NLog来输出日志,具体使用说明请看:ht ...
- Chris Richardson微服务翻译:重构单体服务为微服务
Chris Richardson 微服务系列翻译全7篇链接: 微服务介绍 构建微服务之使用API网关 构建微服务之微服务架构的进程通讯 微服务架构中的服务发现 微服务之事件驱动的数据管理 微服务部署 ...
- selenium之 驱动环境配置chrome、firefox、IE
讲起动态网页获取我们一定会用到selenium,至于selenium在各种语言的开发代码很多,但是在我们兴致勃勃找了很多代码,要运行的时候,编译器只会给我们抛出异常,因为我们没有配置好环境.下面我将为 ...
- java中的重载与重写
重载简述 在java语言中,同一个类中的两个或者两个以上的方法可以有同一个名字,只要他们的的参数声明不同即可,该方法被称为重载,这个过程称为方法的重载,它是实现java多态性的一种方式. 重载是友好的 ...
- 【C#系列】浅谈委托和委托
本篇文章更适合具有一定开发经验,一定功底,且对底层代码有所研究的朋友!!! 本篇文章主要采用理论和代码实例相结合方法来论述委托和事件,涉及到一些边界技术,如软件架构的OCP原则(开-闭原则), 软件架 ...
- 喵哈哈村的魔法考试 Round #1 (Div.2) 题解&源码(A.水+暴力,B.dp+栈)
A.喵哈哈村的魔法石 发布时间: 2017年2月21日 20:05 最后更新: 2017年2月21日 20:06 时间限制: 1000ms 内存限制: 128M 描述 传说喵哈哈村有三种神 ...
- HDU 1005 Number Sequence【多解,暴力打表,鸽巢原理】
Number Sequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)T ...