因为公司ES02集群使用的是SSD磁盘做的raid0,为了保证存放文件的可靠性,即在ES02集群上部署了一套分布式文件系统glusterfs。
 
结构
ES11    含有gfs程序,并挂载gfs在/mnt上
ES12    含有gfs程序,并挂载gfs在/mnt上
ES13    含有gfs程序,并挂载gfs在/mnt上
ES14    含有gfs程序,并挂载gfs在/mnt上
ES15    含有gfs程序,并挂载gfs在/mnt上
ES16    含有gfs程序,并挂载gfs在/mnt上
ES17    仅挂载gfs在/mnt上
ES18    仅挂载gfs在/mnt上
ES19    仅挂载gfs在/mnt上
ES20    仅挂载gfs在/mnt上
ES21    仅挂载gfs在/mnt上
 
 
gluster资料
 
安装部署与常用命令
配置源
cd /etc/yum.repo.d
 
启动
service start glusterd
 
在信任池上增加信任(选取任意一台,我在ES11上配置的信任池,主机名已写hosts)
gluster peer probe ES12
gluster peer probe ES13
gluster peer probe ES14
......
gluster peer probe ES16
 
检查信任池状态
gluster peer status
结果应显示 “Number of peers:你添加的数量”
 
在对应的机器上创建gfs的brick
mkdir -p /opt/gluster-data-es11        ES11上
mkdir -p /opt/gluster-data-es12        ES12上
......
mkdir -p /opt/gluster-data-es16        ES16上
 
在ES11上创建分布式卷(分区)
gluster volume create nuts-registry-volume replica 2 transport tcp ES11:/opt/gluster-data-es11 ES12:/opt/gluster-data-es12 ES13:/opt/gluster-data-es13 ES14:/opt/gluster-data-es14 ES15:/opt/gluster-data-es15 ES16:/opt/gluster-data-es16
建议在单独的挂载分区里创建文件夹,若在根分区,请在命令的左后加上 force。
 
查看卷状态
gluster volume info
 
启动这个卷
gluster volume start docker-registry-volume  
再次查看状态,你会看到此卷的status是start
 
现在即可在已安装glusterfs程序的服务器上挂载网络文件系统了,建议内网使用。
mount -t glusterfs ES11:/nuts-registry-volume /mnt
若报错没有glusterfs文件系统,请回第一步yum安装一下gluster程序。

glusterfs快速安装的更多相关文章

  1. CocoaPods 的简单快速安装方法

    CocoaPods 的简单快速安装方法(Setting up CocoaPods master repo 卡着不动,是因为淘宝镜像已经不能用了. 一.git clone方法安装cocoapods 镜像 ...

  2. CentOS RDO方式快速安装OpenStack

    一.了解RDO RDO是什么? RDO是红帽Red Hat Enterprise Linux OpenStack Platform的社区版,类似RHEL和Fedora,RHEV和oVirt这样的关系. ...

  3. Linux超快速安装Ruby on Rails

    Linux超快速安装Ruby on Rails 时间 2014-11-25 11:45:11 Flincllck Talk 原文  http://www.flincllck.com/quick-ins ...

  4. Python,Jupyter Notebook,IPython快速安装教程

    0.安装环境 Windows10,Python3.5.1,IPython,jupyter notebook,and other functionality 官方安装文档Linux版3.x 官方安装文档 ...

  5. 转载 - Vultr VPS注册开通且一键快速安装PPTP VPN和电脑连接使用

    本文转载来自:https://www.vultrclub.com/139.html 从2014年Vultr VPS进入市场之后,作为有背景.实力的搅局者,是的最近两年VPS.服务器的用户成本降低.配置 ...

  6. Vmware快速安装linux虚拟机(SUSE)

    安装环境:Vmware 11.SUSE11 64位 vmware快速安装linux虚拟机的过程还是比较简单的,步骤如下: 1.点击文件,新建虚拟机. 2.选择典型安装. 3.在红框中选择想要安装的虚拟 ...

  7. zabbix 3.0快速安装简介(centos 6)

    zabbix快速安装 系统版本:centos 6 1.yum源配置和zabbix.msyql安装 rpm -ivh http://mirrors.aliyun.com/zabbix/zabbix/3. ...

  8. zabbix 3.0快速安装简介(centos 7)

    zabbix快速安装 系统版本:centos 7 通过yum方法安装Zabbix3.0,安装源为阿里云 yum源配置 rpm -ivh http://mirrors.aliyun.com/zabbix ...

  9. Python MySQLdb在Linux下的快速安装

    在家里windows环境下搞了一次 见   python MySQLdb在windows环境下的快速安装.问题解决方式 http://blog.csdn.NET/wklken/article/deta ...

随机推荐

  1. Python Learing(一):Basic Grammar

    装了python2.7,去图书馆借了python入门经典,暂且简单写下学习笔记,以供自己回忆 学习笔记(一)主要是基础语法部分: 1.python中数字以及字符串的使用; 2.输入与输出语句; 3.逻 ...

  2. DevExpress 学习使用之 PrintSystem

    这是来自群里边的一段,收集起来,碎片知识是很珍贵的.  傷心孤影(2072201)  16:14:41导出excel加标题用PrintableComponentLink小宝(462561442)  1 ...

  3. Java反射——引言

    Java反射——引言 原文地址:http://tutorials.jenkov.com/java-reflection/index.html *By Jakob Jenkov Java的反射机制使得它 ...

  4. jQuery Validation让验证变得如此容易(一)

    一.官网下载jquery,和jquery validation plugin http://jqueryvalidation.org/ 二.引入文件 <script src="js/j ...

  5. 解决中文乱码( jsp表单提交中文时出现乱码)

    有三种方法: 1.建立一个filter中文解决乱码 2.Struts2在struts.xml中修改默认的编码设定 3.用Spring解决中文乱码 4.直接在jsp中修改解决 1.建立一个filter解 ...

  6. 2013年全球IT公司市值排行榜

    开源的应用快速开发平台 排名 公司 市值 国家 荣誉 1 苹果 5006.1 美国 全球市值最大的公司 2 谷歌 2324.4 美国 全球最伟大的互联网公司 3 三星 2290.7 韩国 全球最大的智 ...

  7. iOS多线程的初步研究3

    iOS多线程的初步研究(三) 弄清楚NSRunLoop确实需要花时间,这个类的概念和模式似乎是Apple的平台独有(iOS+MacOSX),很难彻底搞懂(iOS没开源,呜呜). 官网的解释是说run ...

  8. 页面缓存OutputCache

    更新页面缓存OutputCache   为什么要使用OutputCache 我认为OutputCache是最简单的缓存技术了,它针对的是页面级别的,简单的一条指令就可以达到缓存的效果,有效的减轻服务器 ...

  9. Arduino 各种模块篇 震动模块 vibrator module

    The vibrator I got works at the voltage ranging from 3.3V ~ 5.5V I want to make it vibrate variably. ...

  10. Arduino 各种模块篇 光敏感应模块 light sensor

    It looks like this one: This one isn't a digital light sensor, so it's very simple. http://www.seeed ...