提個關於ha設置的問題。
在做as4 的ha設置。
環境:vi3 模擬出來的兩台as4(192.168.192.41 & 192.168.192.46),對外IP(192.168.192.40)
情況:在設置完后,任意一台as4斷了后,.40仍可工作。
問題:但用clustat的不對。情況如下:
兩邊的hosts都是:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.192.41 test1.com test1
192.168.192.46 test2.com test2
兩邊的/etc/cluster/cluster.conf均為:
<?xml version="1.0" ?>
<cluster config_version="3" name="alpha_cluster">
<fence_daemon post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="test1" votes="1">
<fence>
<method name="1">
<device name="testf" nodename="test1"/>
</method>
</fence>
</clusternode>
<clusternode name="test2" votes="1">
<fence>
<method name="1">
<device name="testf" nodename="test2"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_manual" name="testf"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="testf" ordered="0" restricted="1">
<failoverdomainnode name="test1" priority="1"/>
<failoverdomainnode name="test2" priority="1"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="192.168.192.40" monitor_link="1"/>
</resources>
<service autostart="1" domain="testf" name="tests" recovery="relocate">
<ip ref="192.168.192.40"/>
</service>
</rm>
</cluster>
但是
# clustat
Member Status: Quorate
Member Name Status
------ ---- ------
test1 Online, Local, rgmanager
test2 Offline
Service Name Owner (Last) State
------- ---- ----- ------ -----
tests test1 started
# clustat
Member Status: Quorate
Member Name Status
------ ---- ------
test1 Offline
test2 Online, Local, rgmanager
Service Name Owner (Last) State
------- ---- ----- ------ -----
tests test2 started
log如下:
# tail /var/log/messages
Aug 28 19:42:20 test1 clurgmgrd: <info> Magma Event: Membership Change
Aug 28 19:42:20 test1 clurgmgrd: <info> State change: Local UP
Aug 28 19:42:22 test1 clurgmgrd: <notice> Starting stopped service tests
Aug 28 19:42:23 test1 clurgmgrd: : <info> Adding IPv4 address 192.168.192.40 to bond0
Aug 28 19:42:23 test1 fstab-sync: added mount point /media/cdrom for /dev/hda
Aug 28 19:42:24 test1 clurgmgrd: <notice> Service tests started
Aug 28 19:42:24 test1 fstab-sync: added mount point /media/floppy for /dev/fd0
Aug 28 19:42:27 test1 kernel: mtrr: your processor doesn't support write-combining
Aug 28 19:42:39 test1 hald: Timed out waiting for hotplug event 462. Rebasing to 452
Aug 28 21:34:42 test1 sshd(pam_unix): session opened for user root by root(uid=0)
# tail /var/log/messages
Aug 28 19:42:40 test2 clurgmgrd: <info> Logged in SG "usrm::manager"
Aug 28 19:42:40 test2 clurgmgrd: <info> Magma Event: Membership Change
Aug 28 19:42:40 test2 clurgmgrd: <info> State change: Local UP
Aug 28 19:42:40 test2 fstab-sync: added mount point /media/cdrom for /dev/hda
Aug 28 19:42:41 test2 fstab-sync: added mount point /media/floppy for /dev/fd0
Aug 28 19:42:43 test2 clurgmgrd: <notice> Starting stopped service tests
Aug 28 19:42:43 test2 clurgmgrd: : <info> Adding IPv4 address 192.168.192.40 to bond0
Aug 28 19:42:44 test2 kernel: mtrr: your processor doesn't support write-combining
Aug 28 19:42:44 test2 clurgmgrd: <notice> Service tests started
Aug 28 21:34:45 test2 sshd(pam_unix): session opened for user root by root(uid=0)
請問怎麼回事?如何解決?
謝謝。
[ 本帖最後由 tigerlin 於 2007-9-3 13:53 編輯 ]
《解決方案》
你這個看樣子是心跳線沒有配置對頭吧.