0

我正在尝试在我的 centos 5.11 测试服务器上安装起搏器。我正在为 postgres 设置一个 2 节点集群。由于包资源代理的依赖性,Pacemaker 安装失败。我在 clusterlabs 的任何 centos 存储库中都找不到 rpm。我找到了源 rpm 并成功编译和安装。Pacemaker 仍然无法找到资源代理。

--> Finished Dependency Resolution
pacemaker-1.1.8-2.el5.i686 from clusterlabs-next has depsolving problems
  --> Missing Dependency: resource-agents is needed by package pacemaker-1.1.8-2.el5.i686 (clusterlabs-next)
pacemaker-1.1.8-2.el5.x86_64 from clusterlabs-next has depsolving problems
  --> Missing Dependency: resource-agents is needed by package pacemaker-1.1.8-2.el5.x86_64 (clusterlabs-next)
Error: Missing Dependency: resource-agents is needed by package pacemaker-1.1.8-2.el5.x86_64 (clusterlabs-next)
Error: Missing Dependency: resource-agents is needed by package pacemaker-1.1.8-2.el5.i686 (clusterlabs-next)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

我不确定应该在哪里安装资源代理。我将源代码复制到临时目录并在那里提取和编译。是否可能资源代理没有安装在正确的位置?

4

1 回答 1

-1
wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh epel-release-5*.rpm
wget -O /etc/yum.repos.d/pacemaker.repo http://clusterlabs.org/rpm/epel-5/clusterlabs.repo

然后最后,

yum install -y pacemaker.$(uname -i) corosync.$(uname -i)
于 2015-09-25T09:52:50.027 回答