glusterfs学习之路glusterfs部署(代码片段)

linuxk linuxk     2022-12-21     416

关键词:

  • 一、环境说明

主机名 IP地址 角色
gluster-node1 192.168.56.11 Server、Client
gluster-node2 192.168.56.12 Server、Client
gluster-node3 192.168.56.13 Server、Client
  • 二、GlusterFS安装

(1)修改主机名

[[email protected] ~]# hostnamectl set-hostname gluster-node1
[[email protected] ~]# bash
[[email protected] ~]# hostnamectl set-hostname gluster-node2
[[email protected] ~]# bash
[[email protected] ~]# hostnamectl set-hostname gluster-node3
[[email protected] ~]# bash

(2)添加host解析,实现集群主机之间相互解析

[[email protected] ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.11 gluster-node1
192.168.56.12 gluster-node2
192.168.56.13 gluster-node3
[[email protected]-node1 ~]# scp /etc/hosts [email protected]:/etc/hosts
[[email protected]-node1 ~]# scp /etc/hosts [email protected]:/etc/hosts

(3)关闭SElinux和防火墙

[[email protected] ~]# setenforce 0
[[email protected]-node1 ~]# sed -i s#SELINUX=enforcing#SELINUX=disabled#g /etc/sysconfig/selinux
[[email protected]-node2 ~]# setenforce 0
[[email protected]-node2 ~]# sed -i s#SELINUX=enforcing#SELINUX=disabled#g /etc/sysconfig/selinux
[[email protected]-node3 ~]# setenforce 0
[[email protected]-node3 ~]# sed -i s#SELINUX=enforcing#SELINUX=disabled#g /etc/sysconfig/selinux
[[email protected]-node1 ~]# systemctl stop firewalld.service
[[email protected]-node1 ~]# systemctl disable firewalld.service
[[email protected]-node2 ~]# systemctl stop firewalld.service
[[email protected]-node2 ~]# systemctl disable firewalld.service
[[email protected]-node3 ~]# systemctl stop firewalld.service
[[email protected]-node3 ~]# systemctl disable firewalld.service

(4)安装epel源

[[email protected] ~]# yum install -y epel-release
[[email protected]-node2 ~]# yum install -y epel-release
[[email protected]-node3 ~]# yum install -y epel-release

(5)安装glusterfs源

[[email protected] ~]#  yum install -y centos-release-gluster
[[email protected]-node2 ~]#  yum install -y centos-release-gluster
[[email protected]-node3 ~]#  yum install -y centos-release-gluster

(6)安装glusterfs

[[email protected] ~]# yum install glusterfs-server -y
[[email protected]-node2 ~]# yum install glusterfs-server -y
[[email protected]-node3 ~]# yum install glusterfs-server -y
  • 三、GlusterFS配置

 

线上部署glusterfs情况调研结果

    还是有不少群友在选择GlusterFS版本时缺乏信心,所以在“GlusterFS技术交流”QQ群(234901333)里调研了一下线上部署GlusterFS情况。    先说明一下GlusterFS的应用场景:    纯基于GlusterFS... 查看详情

glusterfs分布式存储安装部署

 Glusterfs分布式存储部署是存储当中可以选择的一种现在很多虚拟化云计算都在用软件存储例如cephGlusterfs等等今天我们部署一下Glusterfs环境 GlusterFs安装 环境信息:     Glusterfs-A     ... 查看详情

glusterfs分布式存储集群部署记录-相关补充

 接着上一篇Centos7下GlusterFS分布式存储集群环境部署记录文档,继续做一些补充记录,希望能加深对GlusterFS存储操作的理解和熟悉度。========================清理glusterfs存储环境=========================由上面可知,该glusterfs存储集群... 查看详情

glusterfs部署

一、主机规划[[email protected] ~]# cat /etc/centos-releaseCentOS Linux release 7.4.1708 (Core)角色IP地址主机名软件服务端20.0.20.101NK1glusterfsglusterfs-fuse glusterfs-serve 查看详情

glusterfs部署安装

Glusterfs部署安装官网https://www.gluster.org/安装前准备安装VirtualBox或VMWAREWorkstation虚拟机软件。安装好四台CentOS-6-x86_64(6.2-6.8都可以)的虚拟机。基本系统:1VCPU+1024M内存+10G硬盘。网络选择:网络地址转换(NAT)。软件包选择:Basic... 查看详情

集群文件系统:glusterfs部署实录

[[email protected] ~]# yum install -y centos-release-gluster[[email protected] ~]# yum install -y glusterfs-server[[email protected]&nb 查看详情

集群文件系统:glusterfs部署实录

[[email protected] ~]# yum install -y centos-release-gluster[[email protected] ~]# yum install -y glusterfs-server[[email protected]&nb 查看详情

glusterfs-----文件分布系统+集群部署(代码片段)

一、Gluster概述1.1、gluster简介Glusterfs是一个开源的分布式文件系统,是Scale存储的核心,能够处理千数量级的客户端.在传统的解决方案中Glusterfs能够灵活的结合物理的,虚拟的和云资源去体现高可用和企业级的性能存储.Glusterfs通过TCP... 查看详情

glusterfs-----文件分布系统+集群部署(代码片段)

一、Gluster概述1.1、gluster简介Glusterfs是一个开源的分布式文件系统,是Scale存储的核心,能够处理千数量级的客户端.在传统的解决方案中Glusterfs能够灵活的结合物理的,虚拟的和云资源去体现高可用和企业级的性能存储.Glusterfs通过TCP... 查看详情

glusterfs分布式存储部署流程

转自:http://bangbangba.blog.51cto.com/3180873/1712061GlusterFS是一款非常易于使用的分布式文件存储系统,实现了全部标准POSIX接口,并用fuse实现虚拟化,让用户看起来就像是本地磁盘一样。因此程序想从本地磁盘切换到GlusterFS时是不用修... 查看详情

glusterfs基本部署

一、快速部署GlusterFS1.前期环境的准备因为做实验我用的是VMware,最少准备3台虚拟机,2台用来做服务端,1台用来做客户端,服务端的配置(1C2G,硬盘最少2块),客户端(1C2G)本人用自己的机子,大家可以按照自己的实际情况... 查看详情

glusterfs分布式文件系统部署

理论部分一:GlusterFS概述1.1:Glusterfs简介??GlusterFS是Scale-Out存储解决方案Gluster的核心,它是一个开源的分布式文件系统,具有强大的横向扩展能力,通过扩展能够支持数PB存储容量和处理数千客户端。GlusterFS借助TCP/IP或InfiniBandRDM... 查看详情

再论如何选择glusterfs版本?

    如何选择GlusterFS版本之前写过多次博文:如何选择GlusterFS版本--20160705版。     今天抽空翻译了Gluster发布说明(时间表),借此机会再补充一下如何选择GlusterFS版本,由于最新版本没在线上实... 查看详情

(转)glusterfs01理论基础,企业实战,故障处理

https://jaminzhang.github.io/glusterfs/GlusterFS-01-Theory-Basis/--------GlusterFS01理论基础https://jaminzhang.github.io/glusterfs/GlusterFS-02-Deploy-and-Config/------GlusterFS02部署配置https://jaminzhang.gi 查看详情

一步一步部署glusterfs

环境准备:两台CentOS7.2干净系统    OS-01---192.168.10.1    OS-02---192.168.10.2文件路径,如果yum源没有,请手动配置https://buildlogs.centos.org/centos/7/storage/x86_64/ 软件包安装#yuminsta 查看详情

suse12.1-rpm部署glusterfs分布式存储

1.zypper安装各种库zypperinbisonopenssl*libacl*sqlitelibxml2*zypperinlibxml++*fusefuse-develzyypperinopenssl-devellibaio-develbisonbison-develflexsystemtap-sdt-develreadline-devel cd/home/src/glusterfs 查看详情

glusterfs分布式文件系统!(代码片段)

GlusterFSGlusterFS基本知识文件系统GlusterFSGlusterFS特点GlusterFS组成GlusterFS专业术语GlusterFS工作流程GlusterFS卷类型GlusterFS集群部署GlusterFS基本知识文件系统组成:文件系统接口,对对象管理的软件集合,对象及属性作用࿱... 查看详情

glusterfs分布式文件系统!(代码片段)

GlusterFSGlusterFS基本知识文件系统GlusterFSGlusterFS特点GlusterFS组成GlusterFS专业术语GlusterFS工作流程GlusterFS卷类型GlusterFS集群部署GlusterFS基本知识文件系统组成:文件系统接口,对对象管理的软件集合,对象及属性作用࿱... 查看详情