GlusterFS + 防火墙访问控制+提供NFS服务
一、安装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