GlusterFS集群
使用架构: 2台机器安装 GlusterFS 组成一个 Distributed Replicated Volumes集群 192.168.0.92 服务端
192.168.0.93 服务端
192.168.0.91 客户端 环境配置请参照:https://www.cnblogs.com/effortsing/p/10367025.html #关掉selinux、防火墙 2台服务器安装glusterFS yum install centos-release-gluster -y yum install -y glusterfs glusterfs-server glusterfs-fuse glusterfs-rdma 3.启动 systemctl start glusterd 设置开机启动 systemctl enable glusterd 4.加入 trusted storage pool 在任意节点执行 gluster peer probe,本文在192.168.0.92执行 gluster peer probe 192.168.0.93 查看节点信息 gluster peer status 5.创建数据存储目录 所有节点创建目录 mkdir -p /gluster/data/ 6.创建Distributed Replicated Volumes gluster volume create file-service replica 2 transport tcp 192.168.0.92:/gluster/data/ 192.168.0.93:/gluster/data/ force 这条命令的意思是使用Replicated的方式,建立一个名为file-service的卷(Volume),存储块(Brick)为2个 只在其中一个节点执行 启动volume gluster volume start file-service 只在其中一个节点执行 查看 volume状态 gluster volume info 7.安装客户端 在客户端执行 yum -y install glusterfs glusterfs-fuse 创建目录 mkdir -p /gluster/data/ 将服务器上的逻辑卷file-service挂在到本地/gluster/data mount -t glusterfs 192.168.0.92:/file-service /gluster/data 查看挂在 df -h 8.测试 在客户端挂载目录/gluster/data建立文件以测试GlusterFS是否正常工作。 cd /gluster/data touch file1 file2 file3 因为建立的是Distributed Replicated Volumes,所以在客户端写入的文件会同时出现在192.168.0.92:/gluster/data和192.168.0.93:/gluster/data 注意 volume create: file-service: failed: The brick 192.168.0.92:/gluster/data 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. 这是因为我们创建的brick在系统盘,这个在gluster的默认情况下是不允许的,如果必须这样请使用force GlusterFS 几种volume 模式说明: 一、 Distributed Volumes,默认模式,DHT gluster volume create test-volume server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4 二、 Replicated Volumes,复制模式,AFR gluster volume create test-volume replica 2 transport tcp server1:/exp1 server2:/exp2 避免脑裂,加入仲裁 gluster volume create replica 3 arbiter 1 host1:brick1 host2:brick2 host3:brick3` 三、Striped Volumes gluster volume create test-volume stripe 2 transport tcp server1:/exp1 server2:/exp2 四、Distributed Striped Volumes,最少需要4台服务器。 gluster volume create test-volume stripe 4 transport tcp server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4 server5:/exp5 server6:/exp6 server7:/exp7 server8:/exp8 五、Distributed Replicated Volumes,最少需要4台服务器。 gluster volume create test-volume replica 2 transport tcp server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4 六、Distributed Striped Replicated Volumes gluster volume create test-volume stripe 2 replica 2 transport tcp server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4 server5:/exp5 server6:/exp6 server7:/exp7 server8:/exp8 七、Striped Replicated Volumes gluster volume create test-volume stripe 2 replica 2 transport tcp server1:/exp1 server2:/exp2 server3:/exp3 server4:/exp4 参照文档: https://www.2cto.com/kf/201712/704742.html
GlusterFS集群的更多相关文章
- 【云计算】Ubuntu14.04 搭建GlusterFS集群
1.修改 /etc/hosts 所有服务节点执行(如果集群中没有DNS,可忽略此步骤): 10.5.25.37 glusterfs-1-5-25-3710.5.25.38 glusterfs-2-5- ...
- kubernetes实战(九):k8s集群动态存储管理GlusterFS及使用Heketi扩容GlusterFS集群
1.准备工作 所有节点安装GFS客户端 yum install glusterfs glusterfs-fuse -y 如果不是所有节点要部署GFS管理服务,就在需要部署的节点上打上标签 [root@ ...
- Kubernetes之GlusterFS集群文件系统高可用安装,提供动态卷存储
GlusterFS高可用安装 一. 准备工作 安装好的k8s集群,提供其中三个节点给GFS,这三个节点都至少有一个可用的裸块设备 在k8s所有节点安装所需要的组件 # ubuntu16.04 add- ...
- Centos7下GlusterFS分布式存储集群环境部署记录
0)环境准备 GlusterFS至少需要两台服务器搭建,服务器配置最好相同,每个服务器两块磁盘,一块是用于安装系统,一块是用于GlusterFS. 192.168.10.239 GlusterFS-m ...
- GlusterFS分布式存储集群部署记录-相关补充
接着上一篇Centos7下GlusterFS分布式存储集群环境部署记录文档,继续做一些补充记录,希望能加深对GlusterFS存储操作的理解和熟悉度. ======================== ...
- 通过Heketi管理GlusterFS为K8S集群提供持久化存储
参考文档: Github project:https://github.com/heketi/heketi MANAGING VOLUMES USING HEKETI:https://access.r ...
- GlusterFS集群文件系统概述
http://blog.csdn.net/zonelan/article/details/8468383 1. GlusterFS概述 GlusterFS是Scale-Out存储解决方案Gl ...
- 基于开源软件构建高性能集群NAS系统,包括负载均衡(刘爱贵)
大数据时代的到来已经不可阻挡,面对数据的爆炸式增长,尤其是半结构化数据和非结构化数据,NoSQL存储系统和分布式文件系统成为了技术浪潮,得到了长足的发展.非结构化数据目前呈现更加快速的增长趋势,IDC ...
- GlusterFS集群文件系统研究
https://blog.csdn.net/liuaigui/article/details/6284551 1. GlusterFS概述GlusterFS是Scale-Out存储解决方案G ...
随机推荐
- 牛客练习赛42 C 出题的诀窍 (贡献,卡常)
牛客练习赛42 C 出题的诀窍 链接:https://ac.nowcoder.com/acm/contest/393/C来源:牛客网 题目描述 给定m个长为n的序列a1,a2,-,ama_1 , a_ ...
- scala学习(4)---Array定长数组操作
ScalaArrayNote: https://www.jianshu.com/p/d906f00c05bf
- Java 类的重载/匿名类的使用/可变形参
/** *1.类的方法的重载 *2.匿名类对象的传递和引用 *3.可变个数的形参(格式:1/对于方法的形参: 数据类型...形参名 * 2/可变个数的形参与同名的方法之间构成重载 * 3/可变个数的形 ...
- [NOI2008]假面舞会——数论+dfs找环
原题戳这里 思路 分三种情况讨论: 1.有环 那显然是对于环长取个\(gcd\) 2.有类环 也就是这种情况 1→2→3→4→5→6→7,1→8→9→7 假设第一条链的长度为\(l_1\),第二条为\ ...
- Error resolving template “pages”, template might not exist or might not be accessible by any of the configured Template Resolver 或者 springboot使用thymeleaf时报html没有结束标签
application.properties配置文件 spring.thymeleaf.prefix=classpath:/templates/ spring.thymeleaf.suffix=.ht ...
- 基于STM32调试工具STM-STUDIO-STM32的使用
手上有stlink下载器,正好看到官网有这个工具,可以在运行中实时查看变量的数据.这一点和ucos的ucprobe很类似. 参考https://mp.weixin.qq.com/s?src=11&am ...
- 查看nginx服务器状态
编译安装时使用--with-http_stub_status_module开启状态页面模块 [root@proxy ~]# yum -y install gcc pcre-devel openssl- ...
- Python一等函数
一等对象 一等对象的定义: (1)在运行时创建 (2)能赋值给变量或数据结构中的元素 (3)能作为参数传给函数 (4)能作为函数的返回结果 ▲ Python中,整数.字符串和字典.函数都是一等对象. ...
- 上下文管理器和else块
一.if 语句之外的 else块 else 子句不仅能在 if 语句中使用,还能在for.while和try语句中使用. (1)for :仅当 for 循环运行完毕时(即 for 循环没有被break ...
- vue-cli3构建多页面应用2.0
1.0版本点这里 -> 博客:vue-cli3构建多页面应用1.0 github:vue-cli-multipage 在1.0版本上做了以下改进: 1. 增加pages.config.js, ...