安装Heartbeat相关的报错信息

#############################报错信息########################### 
You must have autoconf installed to compile the cluster-glue package. 
Download the appropriate package for your system,
or get the source tarball at: ftp://ftp.gnu.org/pub/gnu/autoconf/ 
解决方法: 
 yum install automake 
Download the appropriate package for your system,
or get the source tarball at: ftp://ftp.gnu.org/pub/gnu/automake/ 
解决方法: 
yum install autoconf 
You must have libtool installed to compile the cluster-glue package. 
Download the appropriate package for your system, 
or get the source tarball at: ftp://ftp.gnu.org/pub/gnu/libtool/ 
解决方法: 
yum install  libtool 
./configure时出现configure: error: BZ2 libraries not found 
解决办法:yum -y install bzip2-devel glib2-devel 
make的时候 
安装Reusable-Cluster-Components-glue--glue-1.0.9
 ./.libs/libplumb.so: undefined reference to `uuid_parse’ 
 ./.libs/libplumb.so: undefined reference to `uuid_generate’ 
 ./.libs/libplumb.so: undefined reference to `uuid_copy’ 
 ./.libs/libplumb.so: undefined reference to `uuid_is_null’ 
 ./.libs/libplumb.so: undefined reference to `uuid_unparse’ 
 ./.libs/libplumb.so: undefined reference to `uuid_clear’ 
 ./.libs/libplumb.so: undefined reference to `uuid_compare’ 
 collect2: ld returned 1 exit status 
 gmake[2]: *** [ipctest] Error 1
 gmake[2]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.6/lib/clplumbing’ 
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.6/lib’ 
 make: *** [all-recursive] Error 1
 解决办法: 
 ./configure --prefix=$PREFIX --with-daemon-user=${CLUSTER_USER} --with-daemon-group=${CLUSTER_GROUP} --enable-fatal-warnings=no LIBS='/lib64/libuuid.so.1'
 各位在./configure的时候指定一下LIBS,如果是32位系统的话改成LIBS='/lib/libuuid.so.1'。下面ClusterLabs-resource Heartbeat在./configure的时候都指定一下,要不然继续报错。 
解决办法:yum install e2fsprogs-devel libuuid-devel 
make的时候报错 
/usr/bin/xsltproc \ 
--xinclude \ 
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl hb_report.xml 
error : Operation in progress 
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl 
gmake[2]: *** [hb_report.8] Error 4
gmake[2]: Leaving directory `/heartbeat/Reusable-Cluster-Components-glue--5e06b2ddd24b/doc' 
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/heartbeat/Reusable-Cluster-Components-glue--5e06b2ddd24b/doc' 
make: *** [all-recursive] Error 1
解决方法: 
yum -y install docbook-style-xsl 
查看日志发现错误 
grep -i error /var/log/ha-log 
Sep 14 19:33:38 node1 pengine: [29617]: ERROR: unpack_resources: Resource start-up disabled since no STONITH resources have been defined 
Sep 14 19:33:38 node1 pengine: [29617]: ERROR: unpack_resources: Either configure some or disable STONITH with the stonith-enabled option 
Sep 14 19:33:38 node1 pengine: [29617]: ERROR: unpack_resources: NOTE: Clusters with shared data need STONITH to ensure data integrity 
Sep 14 19:33:45 node1 pengine: [29617]: info: process_pe_message: Configuration ERRORs found during PE processing. Please run "crm_verify -L" to identify issues. 
解决方法:STONITH默认是开启的,而我们做实验的时候是没有这个设备,所以要关闭它 
STONTIH设备详解请参考:http://www.linuxidc.com/Linux/2013-09/90538.htm

关闭方法是: 
[root@localhost ~]# /usr/local/ha/sbin/crm 
abort: couldn't find crm libraries in [/usr/local/ha/sbin /usr/lib/python26.zip /usr/lib/python2.6 /usr/lib/python2.6/plat-linux2 /usr/lib/python2.6/lib-tk /usr/lib/python2.6/lib-old /usr/lib/python2.6/lib-dynload /usr/lib/python2.6/site-packages /usr/lib/python2.6/site-packages/gtk-2.0 /usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info] 
(check your install and PYTHONPATH) 
解决方法: 
vim .bash_profile 
然后添加以下内容 
export PYTHONHONME=/usr/local/ha 
export PYTHONPATH=$PYTHONHOME:/usr/local/ha/lib/python2.6/site-packages 
export PATH=$PATH:/usr/local/ha/sbin 
最后执行 source .bash_profile

转载于:https://my.oschina.net/zhangjie830621/blog/280398

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值