GlusterFS

安装 glusterfs yum源报错

匿名 (未验证) 提交于 2019-12-02 21:53:52
yum install glusterfs-server yum 一直报错 把/etc/yum.repos.d 备份 删除了所有文件,从测试机192..168.59.128上同步过来 一直报错 已加载插件:fastestmirror base | 3.6 kB 00:00:00 http://mirror.centos.org/%24contentdir/7/storage/x86_64/gluster-4.1/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found 正在尝试其它镜像。 To address this issue please refer to the below knowledge base article https://access.redhat.com/articles/1320623 If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/ One of the configured repositories failed (CentOS-7 - Gluster 4.1 (Long Term Maintanance)), and yum doesn't

k8s使用glusterfs

与世无争的帅哥 提交于 2019-12-02 16:14:45
glusterfs-endpoints.json { "kind": "Endpoints", "apiVersion": "v1", "metadata": { "name": "glusterfs-cluster", "namespace": "app-bi" }, "subsets": [ { "addresses": [ { "ip": "100.20.111.145" } ], "ports": [ { "port": 2990 } ] }, { "addresses": [ { "ip": "1o0.20.111.146" } ], "ports": [ { "port": 2990 } ] }, { "addresses": [ { "ip": "100.20.111.148" } ], "ports": [ { "port": 2990 } ] } ] } kubectl create -f glusterfs-endpoints.json glusterfs-service.json { "kind": "Service", "apiVersion": "v1", "metadata": { "name": "glusterfs-cluster", "namespace": "app-bi" }, "spec": { "ports": [ {"port":

cinder glusterfs配置操作

假装没事ソ 提交于 2019-12-02 11:31:37
cinder glusterfs配置操作 ## ########cinder 节点配置 echo ' [glusterfs] volume_driver = cinder.volume.drivers.glusterfs.GlusterfsDriver glusterfs_shares_config = /etc/cinder/glusterfs_shares glusterfs_mount_point_base = $state_path/mnt_gluster volume_backend_name=glusterfs_volumes ' >>/etc/cinder/cinder.conf tail /etc/cinder/cinder.conf sed -i 's/^enabled_backends.*=/enabled_backends=glusterfs,/g' /etc/cinder/cinder.conf grep enabled_backends /etc/cinder/cinder.conf echo 'localhost:/gv1' >/etc/cinder/glusterfs_shares chown root.cinder /etc/cinder/glusterfs_shares chmod 640 /etc/cinder/glusterfs_shares

Glusterfs安装与配置

亡梦爱人 提交于 2019-12-02 11:04:23
环境说明: 系统:Ubuntu 16.04 node1:10.0.77.149 附加盘:xvdb 8G 挂载点:/data/brick1/gv0 node2: 10.0.78.118 附加盘:xvdb 8G 挂载点:/data/brick1/gv0 node3: 10.0.79.252 附加盘:xvdb 8G 挂载点:/data/brick1/gv0 注:请提前写好hosts文件和主机名 开始搭建 1、在三个节点同时安装“software-properties-common”包 # apt-get install software-properties-common 2、在三个节点同时添加Glusterfs源 # add-apt-repository ppa:gluster/glusterfs-3.8# sudo apt-get update 3、在三个节点同时安装glusterfs-server软件包,并设置rpcbind开机启动(NFS方式挂载) # apt-get install glusterfs-server # systemct enable rpcbind //如果未生效则需要写到rc.local文件中 4、添加node2节点到gluster 5、添加node3节点到gluster 6、重启node3节点,查看UUID和状态变化 结论:重启时节点状态变为

CentOS7安装GlusterFS

流过昼夜 提交于 2019-12-02 05:29:54
GlusterFS简介 参考: https://blog.51cto.com/13447608/2386830?source=dra GlusterFS安装 如下所示三台机器,hostname分别是node-1/node-2/node-3,在/etc/hosts添加3台机器的主机名解析,关闭selinux、防火墙、NetworkManager等。 node-1 10.0.0.1 node-2 10.0.0.2 node-3 10.0.0.3 安装glusterfs(三台都要执行) #安装glusterfs yum install centos-release-gluster yum install -y glusterfs glusterfs-server glusterfs-fuse glusterfs-rdma #启动gluster服务 systemctl start glusterd.service systemctl enable glusterd.service 在node1上执行,将node-2、node-3加入集群 gluster peer probe node-2 gluster peer probe node-3 在node-1上看集群状态 [root@node-1 db]# gluster peer status Number of Peers: 2

14-使用glusterfs做持久化存储

我怕爱的太早我们不能终老 提交于 2019-12-02 02:24:46
14-使用glusterfs做持久化存储 https://www.cnblogs.com/guigujun/p/8366558.html 使用glusterfs做持久化存储 我们复用kubernetes的三台主机做glusterfs存储。 以下步骤参考自: https://www.xf80.com/2017/04/21/kubernetes-glusterfs/ 安装glusterfs 我们直接在物理机上使用yum安装,如果你选择在kubernetes上安装,请参考: https://github.com/gluster/gluster-kubernetes/blob/master/docs/setup-guide.md # 先安装 gluster 源 $ yum install centos-release-gluster -y # 安装 glusterfs 组件 $ yum install -y glusterfs glusterfs-server glusterfs-fuse glusterfs-rdma glusterfs-geo-replication glusterfs-devel ## 创建 glusterfs 目录 $ mkdir /opt/glusterd ## 修改 glusterd 目录 $ sed -i 's/var\/lib/opt/g' /etc

kubernetes存储之GlusterFS

和自甴很熟 提交于 2019-12-02 02:19:08
目录 1、glusterfs概述 1.1、glusterfs简介 1.2、glusterfs特点 1.3、glusterfs卷的模式 2、heketi概述 3、部署heketi+glusterfs 3.1、准备工作 3.2、创建glusterfs集群 3.3、创建heketi服务 3.4、创建gfs集群 4、创建storageclass 6、分析k8s通过heketi创建pv及pvc的过程 7、测试数据 8、测试deployment 1、glusterfs概述 1.1、glusterfs简介 glusterfs是一个可扩展,分布式文件系统,集成来自多台服务器上的磁盘存储资源到单一全局命名空间,以提供共享文件存储。 1.2、glusterfs特点 可以扩展到几PB容量 支持处理数千个客户端 兼容POSIX接口 使用通用硬件,普通服务器即可构建 能够使用支持扩展属性的文件系统,例如ext4,XFS 支持工业标准的协议,例如NFS,SMB 提供很多高级功能,例如副本,配额,跨地域复制,快照以及bitrot检测 支持根据不同工作负载进行调优 1.3、glusterfs卷的模式 glusterfs 中的 volume 的模式有很多中,包括以下几种: 分布卷(默认模式):即DHT, 也叫 分布卷: 将文件以hash算法随机分布到 一台服务器节点中存储。 复制模式:即AFR, 创建volume

CentOS 7 安装 GlusterFS

守給你的承諾、 提交于 2019-12-01 23:56:54
CentOS 7 安装 GlusterFS https://www.cnblogs.com/jicki/p/5801712.html改天测试一下 我一直没有搞这一块呢. CentOS 7 GlusterFS 环境说明: 3台机器安装 GlusterFS 组成一个集群。 使用 docker volume plugin GlusterFS 服务器: 10.6.0.140 10.6.0.192 10.6.0.196 配置 hosts 10.6.0.140 swarm-manager 10.6.0.192 swarm-node-1 10.6.0.196 swarm-node-2 client: 10.6.0.94 node-94 安装: CentOS 安装 glusterfs 非常的简单 在三个节点都安装glusterfs yum install centos-release-gluster yum install -y glusterfs glusterfs-server glusterfs-fuse glusterfs-rdma 配置 GlusterFS 集群: 启动 glusterFS systemctl start glusterd.service systemctl enable glusterd.service 在 swarm-manager 节点上配置,将 节点 加入到

【GlusterFS学习之一】:GlusterFS分布式文件系统的基本概念及搭建

我的未来我决定 提交于 2019-12-01 21:49:15
最近因为工作的需要在接触GlusterFS,在未来的一段时间之内应该都要与之打交道,刚刚接触分布式文件系统,对很多概念和机制都不是很清楚,通过一段时间的学习有一点浅显的认识,那么就把这段时间的了解到的内容做个简单的笔记,包括GlusterFS的基本概念,以及部署GlusterFS的方法。 1.glusterfs基本概念的介绍 因为对GlusterFS的整体架构理解的过于肤浅,那么就只能对一些简单的概念进行介绍。 brick: brick是任何在可信共享池中共享的目录( Brick is basically any directory that is meant to be shared among the trusted storage pool )。(感觉翻译的烂的一逼)。 另一种说法: Each server gives one of its directories (referred to as a “brick”) into the care of GlusterFS, which combines multiple bricks to create a large data repository. Trusted Storage Pool: 这是共享文件和目录的的集合,这些文件和目录基于设计好的网络协议。( is a collection of these shared

GlusterFS分布式文件系统的卷类型及配置详解

元气小坏坏 提交于 2019-12-01 21:48:36
(一) GlusterFS相关概念: GlusterFS是一个开源的分布式文件 系统,同时也是Scale-Out存储解决方案Gluster的核心,在存储数据方面有强大的横向扩展能力。GlusterFS主要由存储服务器、 客户端及NFS/Samba存储网关(可选组件)组成。GlusterFS架构中最大的设计特点是没有元数据服务器组件,也就是说没有主/从服务器之分,每一个节点都可以是主服务器。 Gluster相关考文档如下(我下面的配置是基于本地yum配置的,若需要搭建最新版本,直接按照下面的文档链接进行配置) : Gluster官网,基于centos7/Redhat安装Gluster官方文档 GlusterF S相关术语: 3)GlusterFS的卷类型: 在以上几种卷类型中,有些可能无法理解透彻,但是没关系,在生产环境中,大多数公司考虑到磁盘的利用率,会使用RAID5,或者RAID 10,关于RAID 5卷的配置可以参考: GlusterFS Dispersed Volume(纠错卷)总结。 4)下面介绍GlusterFS一些卷类型的特点(不包括RAID5): 1、分布式卷(类似Windows中的跨区卷): 分布式卷是GlusterFS的默认卷,在创建卷时,默认选项是创建分布式卷。在该模式下,并没有对文件进行分块处理,文件直接存储在某个server节点上。 2、条带卷