配置cluster后,服务不能正常运行
通过system-config-cluster配置cluster后,两个节点开启cman服务,通过clustat可看到两个节点,但服务不能运行。下面是cluster.conf配置,请各位看看是哪儿的问题?
<?xml version="1.0"?>
<cluster config_version="10" name="mycluster">
<fence_daemon post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="QT-ESA-rh5.4-A" nodeid="1" votes="1">
<fence>
<method name="1">
<device name="myfenced" nodename="QT-ESA-rh5.4-A"/>
</method>
</fence>
</clusternode>
<clusternode name="QT-ESA-rh5.4-B" nodeid="2" votes="1">
<fence>
<method name="1">
<device name="myfenced" nodename="QT-ESA-rh5.4-B"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_manual" name="myfenced"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="myfailoverdomain" ordered="1" restricted="0">
<failoverdomainnode name="QT-ESA-rh5.4-B" priority="2"/>
<failoverdomainnode name="QT-ESA-rh5.4-A" priority="1"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="192.168.122.13" monitor_link="1"/>
<netfs export="/sharedata" force_unmount="1" fstype="nfs" host="192.168.122.11" mountpoint="/opt/ultrapower/postgresql/data" name="postdata" options=""/>
<postgres-8 config_file="/opt/ultrapower/postgresql/data/postgresql.conf" name="postsql" postmaster_options="-D /opt/ultrapower/postgresql/data/" postmaster_user="postgres" shutdown_wait="30"/>
</resources>
<service autostart="1" domain="myfailoverdomain" name="srv_post" recovery="relocate">
<ip ref="192.168.122.13">
<netfs ref="postdata">
<postgres-8 ref="postsql"/>
</netfs>
</ip>
</service>
</rm>
</cluster>
运行clustat:
[root@qt-esa-rh5 ~]# clustat
Cluster Status for mycluster @ Fri May 13 22:02:01 2011
Member Status: Quorate
Member Name ID Status
------ ---- ---- ------
QT-ESA-rh5.4-A 1 Online, Local
QT-ESA-rh5.4-B 2 Online
但是看不到服务。
postgresql数据库在主节点关闭后,备节点并不能自动接管。测试不成功,请各位看看是哪儿的问题,谢谢了。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论