今天重装系统,测试Glusterfs分布式存储的高性能特性。装完新系统安装Glusterfs-server 报错。
首先说一下,我是直接用的官方的yum源,编辑源glusterfs-server.repo,内容如下
vim /etc/yum.repos.d/glusterfs-server.repo
[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/LATEST/EPEL.repo/epel-$releasever/$basearch/ enabled=1 skip_if_unavailable=1 gpgcheck=1 gpgkey=http://download.gluster.org/pub/gluster/glusterfs/3.7/LATEST/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/LATEST/EPEL.repo/epel-$releasever/noarch enabled=1 skip_if_unavailable=1 gpgcheck=1 gpgkey=http://download.gluster.org/pub/gluster/glusterfs/3.7/LATEST/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/LATEST/EPEL.repo/epel-$releasever/SRPMS enabled=0 skip_if_unavailable=1 gpgcheck=1 gpgkey=http://download.gluster.org/pub/gluster/glusterfs/3.7/LATEST/rsa.pub
安装
#yum install -y glusterfs-server ---> Package glusterfs-libs.x86_64 0:3.7.11-2.el6 will be installed ---> Package glusterfs-server.x86_64 0:3.7.11-2.el6 will be installed --> Processing Dependency: pyxattr for package: glusterfs-server-3.7.11-2.el6.x86_64 --> Processing Dependency: liburcu-cds.so.1()(64bit) for package: glusterfs-server-3.7.11-2.el6.x86_64 --> Processing Dependency: liburcu-bp.so.1()(64bit) for package: glusterfs-server-3.7.11-2.el6.x86_64 --> Finished Dependency Resolution Error: Package: glusterfs-server-3.7.11-2.el6.x86_64 (glusterfs-epel) Requires: liburcu-bp.so.1()(64bit) Error: Package: glusterfs-server-3.7.11-2.el6.x86_64 (glusterfs-epel) Requires: pyxattr Error: Package: glusterfs-server-3.7.11-2.el6.x86_64 (glusterfs-epel) Requires: liburcu-cds.so.1()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
报错信息如上图
Error: Package: glusterfs-server-3.7.11-2.el6.x86_64 (glusterfs-epel)
Requires: liburcu-bp.so.1()(64bit)
Error: Package: glusterfs-server-3.7.11-2.el6.x86_64 (glusterfs-epel)
Requires: pyxattr
Error: Package: glusterfs-server-3.7.11-2.el6.x86_64 (glusterfs-epel)
Requires: liburcu-cds.so.1()(64bit
解决方法:
#yum clean all
#yum install -y glusterfs-server //安装成功。
参考:http://www.wtoutiao.com/p/f6euAP.html
至此解决此问题。搜了很多文章,还是这个方法靠谱!
本文由 Mr Gu 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为: Oct 12, 2016 at 03:00 pm