網址: 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. |
另外有需要云服務器可以了解下創新互聯scvps.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業上云的綜合解決方案,具有“安全穩定、簡單易用、服務可用性高、性價比高”等特點與優勢,專為企業上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。
標題名稱:server-worldinstallgluster-創新互聯
文章來源:http://vcdvsql.cn/article20/pjcjo.html
成都網站建設公司_創新互聯,為您提供網站改版、商城網站、全網營銷推廣、微信公眾號、小程序開發、建站公司
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯