GlusterFS 3.7.1安装手记


1、最小化安装centos 6.6  完成后执行yum update

2、执行yum list glusterfs*

     发现centos官方包中缺少glusterfs-server包。解决办法:使用glusterfs官方yun源。

wget -P /etc/yum.repos.d http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-epel.repo


3、再次执行 yum list glusterfs*发现server包已存在,执行yum install glusterfs glusterfs-server时再次报错。

YumBaseError: [u'glusterfs-server-3.7.1-1.el6.x86_64 requires liburcu-bp.so.1()(64bit)', u'glusterfs-server-3.7.1-1.el6.x86_64 requires liburcu-cds.so.1()(64bit)', u'glusterfs-server-3.7.1-1.el6.x86_64 requires pyxattr']

     原因是epel包太旧,使用最新的epel源即可解决。

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
注:epel包的选择需要跟系统版本匹配,6.6版本使用centos7的epel源会报错。如下:
Error: xz compression not available 
下载后执行:
rpm -ivh epel-release-6-8.noarch.rpm 


4、执行yum clean all

           yum makecache

     清除yum缓存。

5、yum -y install glusterfs glusterfs-server




  


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章