https://download.gluster.org/pub/gluster/

#要安装的东西
----
```
apt install -y build-essential gcc make cpp flex bison openssl libssl-dev libacl1 libacl1-dev liburcu-dev 
```
apt install glusterfs-server

启动服务

systemctl restart glusterd.service

添加其它服务器

gluster peer probe b.asml.ga

后面得是域名,内网不方便搭建域名服务器可以用hosts文件.

查看其它服务器

gluster peer status

要确保其它服务器全都连接正常

创建存储卷

mkdir /data
gluster volume create testvol replica 2 transport tcp a.asml.ga:/data b.asml.ga:/data force

如果创建失败,提示是服务器之间的连接问题,尝试删除连接,重新添加服务器

gluster peer detach xxx

打开存储卷

gluster volume start testvol

客户端安装

apt install glusterfs-client

客户端挂载

mkdir /storage-pool
mount -t glusterfs a.asml.ga:/testvol /storage-pool

相关文章:

  • 2021-08-11
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2021-11-16
  • 2022-01-11
  • 2022-01-01
猜你喜欢
  • 2021-11-14
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-10-06
  • 2021-05-27
相关资源
相似解决方案