1.首先 XENSERVER7 版本与CENTOS不同,这将影响YUM的安装。
2 需要HTTP访问确认最新版本号以安装EPEL和attr
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/attr-2.4.46-12.el7.x86_64.rpm
rpm -ivh epel-release-7-7.noarch.rpm
rpm -ivh attr-2.4.46-12.el7.x86_64.rpm
3先下载REPO,修改后再安装
cd /etc/yum.repos.d/
wget http://download.gluster.org/pub/gluster/glusterfs/3.7/3.7.12/CentOS/glusterfs-epel.repo
vi /etc/yum.repos.d/glusterfs-epel.repo将其中的$releasever参数替换成7.2得到以下配置
[glusterfs-epel]
name=GlusterFS is a clustered file-system capable of scaling to several petabytes.
baseurl=http://download.gluster.org/pub/gluster/glusterfs/3.7/3.7.12/EPEL.repo/epel-7.2/$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=1
gpgkey=http://download.gluster.org/pub/gluster/glusterfs/3.7/3.7.12/rsa.pub
[glusterfs-noarch-epel]
name=GlusterFS is a clustered file-system capable of scaling to several petabytes.
baseurl=http://download.gluster.org/pub/gluster/glusterfs/3.7/3.7.12/EPEL.repo/epel-7.2/noarch
enabled=1
skip_if_unavailable=1
gpgcheck=1
gpgkey=http://download.gluster.org/pub/gluster/glusterfs/3.7/3.7.12/rsa.pub
[glusterfs-source-epel]
name=GlusterFS is a clustered file-system capable of scaling to several petabytes. - Source
baseurl=http://download.gluster.org/pub/gluster/glusterfs/3.7/3.7.12/EPEL.repo/epel-7.2/SRPMS
enabled=0
skip_if_unavailable=1
gpgcheck=1
gpgkey=http://download.gluster.org/pub/gluster/glusterfs/3.7/3.7.12/rsa.pub
4. yum update
yum install glusterfs-server glusterfs-fuse glusterfs-geo-replication
开始漫长的等待
5.service glusterd start
service glusterd status
iptable -F
gluster peer probe xxx.xxx.xxx.x
gluster pool list
gluster volume create forxen replica 2 172.22.55.{249,250}:/mnt/30g/forxen
gluster volume create ctdb replica 2 172.22.55.{249,250}:/mnt/30g/ctdb
gluster volume start forxen
gluster volume info
gluster volume status
参考链接
http://linoxide.com/file-system/install-configure-glusterfs-centos-7-aarch64/
http://www.gluster.org/pipermail/gluster-users.old/2015-January/020192.html
https://pkgs.org/centos-7/centos-x86_64/attr-2.4.46-12.el7.x86_64.rpm.html
http://gluster.readthedocs.io/en/latest/Install-Guide/Configure/