xenserver7 安装GLUSTERFS

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/



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值