一、安装GlusterFS
centos:
yum -y install centos-release-gluster
yum -y install glusterfs glusterfs-server glusterfs-fuse glusterfs-rdma
systemctl start glusterd.service #开启服务
systemctl enable glusterd.service #开机自启
systemctl status glusterd.service #查看服务
运行gluster服务
service glusterd start
查看集群链接情况
gluster peer status
设置开机启动
systemctl enable glusterd
Ubuntu:
apt install glusterfs glusterfs-server
现在启动glusterd服务并使其在系统引导时每次启动。
systemctl start glusterd
二、添加节点
gluster peer probe 192.168.100.31
三、配置复制卷
gluster volume create dis-rep replica 3 glusterfs01:/data/sdb1/sdb1 glusterfs02:/data/sdb1/sdb1 glusterfs03:/data/sdb1/sdb1
四、NFS配置

本文档详细介绍了如何在CentOS和Ubuntu系统上安装GlusterFS,添加节点,创建复制卷,并配置NFS服务。通过设置防火墙白名单确保安全性,同时提供了查看和管理GlusterFS集群及卷的命令。

2693

被折叠的 条评论
为什么被折叠?



