GlusterFS 搭建x86
搭建 x86 glusterfs
2023-09-14 09:16:05 时间
1. 配置hosts
所有节点配置 hosts
2.格式化和挂载
挂载一个xfs盘
# mkfs.xfs /dev/sdb
# mkdir -p /data/brick1
# echo '/dev/sdb /data/brick1 xfs defaults 1 2' >> /etc/fstab
# mount -a
3. 关闭防火墙和SElinux
# systemctl status firewalld
# systemctl stop firewalld
# systemctl disable firewalld
关闭Selinux
# setenforce 0
SELINUX值修改为disabled
vim /etc/selinux/config
4. 设置时区 和 ntpdata
# yum install -y ntp ntpdate
设置时区
timedatectl
timedatectl set-timezone Asia/Shanghai
# vim /etc/ntp.conf
增加
restrict 30.0.0.0 mask 255.255.255.0 nomodify notrap
# 30.0.0.0网段可以从这台主机同步时间
# 注释掉默认的,新增时间服务器列表
## server 0.centos.pool.ntp.org iburst
## server 1.centos.pool.ntp.org iburst
## server 2.centos.pool.ntp.org iburst
## server 3.centos.pool.ntp.org iburst
server 0.cn.pool.ntp.org iburst
server 1.cn.pool.ntp.org iburst
server 2.cn.pool.ntp.org iburst
server 3.cn.pool.ntp.org iburst
# 新增 容许服务器修改本地时间
restrict 0.cn.pool.ntp.org nomodify notrap noquery
restrict 1.cn.pool.ntp.org nomodify notrap noquery
restrict 2.cn.pool.ntp.org nomodify notrap noquery
设置ntpd 开机启动
systemctl enable ntpd
systemctl enable ntpdate
systemctl is-enabled ntpd
启动NTP服务器(先设置主机时间)
ntpdate -u 1.cn.pool.ntp.org
systemctl start ntpdate
systemctl start ntpd
设置其它主机同步时间
echo "server 30.0.0.222" >> /etc/ntp.conf
systemctl restart ntpd
5. 安装GlusterFS
yum install centos-release-gluster –y
yum install glusterfs-server glusterfs glusterfs-fuse -y
6. 启动服务
# systemctl start glusterd.service
# systemctl enable glusterd.service
7. 组建集群
gluster peer probe hostname # hostname 集群每个节点hostname
查看集群状态
gluster peer status
gluster pool list
gluster volume status
参考:
1.Gluster
2.GlusterFS分布式文件概念解析
3.centos7 搭建GlusterFS
4.CentOS 7.3 分布式存储Glusterfs部署使用(一)
5.CentOS 7.3 分布式存储Glusterfs部署使用(二)
6.CentOS 7 安装部署 GlusterFS
7.Installing GlusterFS - a Quick Start Guide
8.基于 GlusterFS 实现 Docker 集群的分布式存储
9.GlusterFS 02 部署配置
相关文章
- 轻松几步搭建你的私有云
- ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器
- 怎么搭建自己的web服务器_web服务器怎么搭建网站
- 「使用 webpack 5 从0到1搭建React+TypeScript 项目环境」2. 集成 css、less 与 sass
- Windows 环境搭建 PostgreSQL 逻辑复制高可用架构数据库服务
- 微服务项目:尚融宝(17)(后端搭建:数据字典)
- Win11平台安装和配置NeoVim0.8.2编辑器搭建Python3开发环境(2023最新攻略)
- 【原创】路由器企业级加密WPA/WPA2/WPA3-Enterprise服务器搭建
- 微搭低代码xChatGPT,五步搭建AI聊天机器人小程序
- 传统服装行业如何搭建自己的小程序商城
- 号;使用SQL Server搭建端口号管理系统(sqlserver端口)
- 为自己搭建一个分布式 IM(即时通讯) 系统
- 搭建高可用Redis集群,掌握端口设置技巧(redis集群端口)
- Redis集群搭建必备技能(redis集群搭建方法)
- Oracle三实例搭建精彩经验分享(oracle 3个实例)