首页 > 其他 > 详细

server-world install gluster

时间:2017-03-20 19:59:52      阅读:249      评论:0      收藏:0      [点我收藏+]

网址: http://www.server-world.info/en/note?os=CentOS_7&p=glusterfs&f=1


Install GlusterFS to Configure Storage Cluster.

It is recommended to use partitions for GlusterFS volumes which are different from the / partition.

The environment on this example is set as that sdb1 is mounted on /glusterfs directory for GlusterFS Configuration on all Nodes.

[1]Install GlusterFS Server on all Nodes in Cluster.

[root@node01 ~]#

yum -y install centos-release-gluster38

[root@node01 ~]#

sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-3.8.repo

# enable EPEL, too


[root@node01 ~]#

yum --enablerepo=centos-gluster38,epel -y install glusterfs-server

[root@node01 ~]#

systemctl start glusterd


[root@node01 ~]#

systemctl enable glusterd


[2]If Firewalld is running, allow GlusterFS service on all nodes.
[root@node01 ~]#

firewall-cmd --add-service=glusterfs --permanent


success
[root@node01 ~]#

firewall-cmd --reload


success

It‘s OK if you mount GlusterFS volumes from clients with GlusterFS Native Client.

[3]GlusterFS supports NFS (v3), so if you mount GlusterFS volumes from clients with NFS, Configure additinally like follows.

[root@node01 ~]#

yum -y install rpcbind

[root@node01 ~]#

systemctl start rpcbind


[root@node01 ~]#

systemctl enable rpcbind


[root@node01 ~]#

systemctl restart glusterd

# if Firewalld is running, allow services below


[root@node01 ~]#

firewall-cmd --add-service={nfs,rpc-bind} --permanent


[root@node01 ~]#

firewall-cmd --reload


[4]

Installing and Basic Settings of GlusterFS are OK. Refer to next section for settings of clustering.


server-world install gluster

原文:http://xfwang.blog.51cto.com/1147025/1908312

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!