+ -
当前位置:首页 → 问答吧 → 求助 关于suse 11 +heartbeat 双机的配置失败

求助 关于suse 11 +heartbeat 双机的配置失败

时间:2010-10-15

来源:互联网

本帖最后由 sloin 于 2010-10-15 15:05 编辑

大家好,我在各个论坛上找了很久都没有找到相关的资料与标准文档。以便我排错,所以不得不在这里求助于大家了,希望高手们可以回复我的问题。
双机环境 VM 共享磁盘 800M
linux1 10.1.1.1 (心跳) 192.168.3.126
linux2 10.1.1.2  (心跳)192.168.3.125
VIP 192.168.3.130

/etc/hosts 文件
10.1.1.1        linux1
10.1.1.2        linux2
192.168.3.126   suse1 suse1
192.168.3.125   suse2 suse2
192.168.3.130   suse

/etc/ha.d/ha.cf 文件内容
node linux1
node linux2
keepalive 2  
deadtime 30  
warntime 10  
initdead 120  
auto_failback on  
bcast eth1  
ping 10.1.1.1  
ping 10.1.1.2  
respawn hacluster /usr/lib/heartbeat/ipfail

/etc/ha.d/authkeys
auth 2
2 crc
#2 sha1 HI!
#3 md5 Hello!

/etc/ha.d/haresources
suse 192.168.3.130 apache2

集群软件版本
linux-m653:~ # rpm -q heartbeat
heartbeat-2.0.9-59.1

系统内核
Linux linux-m653 2.6.27.19-5-pae #1 SMP 2009-02-28 04:40:21 +0100 i686 i686 i386 GNU/Linux

共享 裸设备
linux1

Disk /dev/sdc: 3145 MB, 3145728000 bytes
255 heads, 63 sectors/track, 382 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe8a0c420

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         382     3068383+  83  Linux

Disk /dev/sdd: 3145 MB, 3145728000 bytes
255 heads, 63 sectors/track, 382 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sdd doesn't contain a valid partition table


Disk /dev/sdc: 3145 MB, 3145728000 bytes
255 heads, 63 sectors/track, 382 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe8a0c420

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         382     3068383+  83  Linux

Disk /dev/sdd: 3145 MB, 3145728000 bytes
255 heads, 63 sectors/track, 382 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sdd doesn't contain a valid partition table



----------------------------------------

启动heartbeat 失败
linux-m653:~ # /etc/init.d/heartbeat start
Starting High-Availability services/usr/lib/heartbeat/ha_logd: error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory
/usr/lib/heartbeat/ha_logd: error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory
starting logd failed
2010/10/15_15:03:14 INFO:  Resource is stopped
/usr/lib/heartbeat/heartbeat: error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory
                                                                     failed
无法打开共享 文件或目录

作者: sloin   发布时间: 2010-10-15

木有人回复啊 我在线等 哥哥 们

作者: sloin   发布时间: 2010-10-15

咋木有人来啊 配置完成了, 但是heartbeat服务没有起来

作者: sloin   发布时间: 2010-10-15

回复 sloin


    你的机器应该缺少了一个heartbeat的依赖包libtool-ltdl,不知道你的heartbeat是用rpm安装的么,如果是的话应该提示缺少依赖包

作者: wzy2001_117   发布时间: 2010-10-15

对 我是用RPM 安装的

作者: sloin   发布时间: 2010-10-15

我在网上down了个文档 但是没有提到libtool-ltdl 这个包

作者: sloin   发布时间: 2010-10-15

我安装了 libtool libltdl7 还是不行

作者: sloin   发布时间: 2010-10-15

回复 sloin


    用rpm -ql查一下你安装ltdl的rpm包都有什么文件,有没有/usr/lib64/libltdl.so.3
我的系统是CentOS的,不知道和suse有什么区别
我机器的执行结果是
[root@CentOS53 ~]# rpm -ql libtool-ltdl-1.5.22-7.el5_4
/usr/lib64/libltdl.so.3
/usr/lib64/libltdl.so.3.1.4
/usr/share/doc/libtool-ltdl-1.5.22
/usr/share/doc/libtool-ltdl-1.5.22/COPYING.LIB
/usr/share/doc/libtool-ltdl-1.5.22/README

作者: wzy2001_117   发布时间: 2010-10-15

好!

作者: sloin   发布时间: 2010-10-15

rpm -ql libtool-ltdl-1.5.22-7.el5_4
package libtool-ltdl-1.5.22-7.el5_4 is not installed

作者: sloin   发布时间: 2010-10-15

回复 wzy2001_117


    rpm -ql libtool-ltdl-1.5.22-7.el5_4
package libtool-ltdl-1.5.22-7.el5_4 is not installed

作者: sloin   发布时间: 2010-10-15