Glsuter Storage 是標準的 Open Source Project,目前有 Red Hat 進行主要的維護,其網站為:http://www.gluster.org/。
本文將說明如何在 Red Hat Enterprise Linux 與其延伸版本的安裝方式。目前 Gluster Storage 的最新穩定版本為 3.6.x,而 3.7.x 版本也已經釋出。
CentOS 使用 yum
功具進行套件管理,在安裝 Gluster Storage 之前要先設定相關的檔案與安裝 EPEL 延申套件。
設定 /etc/yum.repos.d/glusterfs-3.6.repo
[glusterfs-3.6]
name=GlusterFS 3.6
baseurl=http://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/EPEL.repo/epel-$releasever/$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=1
gpgkey=http://download.gluster.org/pub/gluster/glusterfs/3.6/LATEST/EPEL.repo/pub.key
安裝 CentOS EPEL 套件資訊
root # yum install -y http://mirror01.idc.hinet.net/EPEL/7/x86_64/e/epel-release-7-5.noarch.rpm
CentOS EPEL 套件為 Fedora 所維護,在世界各地都有鏡象(Mirror)站台,本例是使用中華電信的 Mirror Site。
安裝 Glsuter Storage Server
root # yum install -y glusterfs-server
設定開機啟動與關閉 firewalld 服務
root # systemctl disable firewalld
root # systemctl start glsuterd
重新開機
root # reboot
以上的所有流程,在您的 Gluster Storage 節點中都要設定一次,基本上也只需設定一次,完成之後請記得每個節點的網路都要能通順。