温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

server-world install gluster

发布时间:2020-07-01 18:11:45 来源:网络 阅读:493 作者:fei_0123456789 栏目:开发技术

网址: 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.


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI