准备:
1、两台机器挂载一个硬盘/逻辑卷用于GlusterFS的存储
/dev/mapper/vgs_dt01-GlusterFS 4.9G 155M 4.4G 4% /data/gluster
2、关闭防火墙
节点 存储挂载 主机名
10.22.60.33 /data/gluster ODCBSCFMP01
10.22.60.34 /data/gluster ODCBSCFMP02
安装:
1、安装GlusterFS(两台)
yum install centos-release-gluster
yum install -y glusterfs glusterfs-server glusterfs-fuse glusterfs-rdma
2、启动GlusterFS(两台)
systemctl start glusterd.service
systemctl enable glusterd.service
3、让所有存储集群节点做成trusted pool(也就是建立连接)(10.22.60.33)
[root@ODCBSCFMP01 gluster]# gluster peer probe ODCBSCFMP01
[root@ODCBSCFMP01 gluster]# gluster peer probe ODCBSCFMP02
[root@ODCBSCFMP01 gluster]# gluster peer status
Number of Peers: 1
Hostname: ODCBSCFMP02
Uuid: 0e425b3f-80d0-4db2-9b12-6ad1dbe40483
State: P