Can't stop cman service CentOS cluster
I am configuring a Apache cluster on CentOS 5.5. I finished, and it worked! But there is still one problem, I can't stop cman service manual, the error message is:
"Stopping cluster:
Stopping fencing... failed
[FAILED]"
And when I fenced (manual fencing, just reboot node) the node on which service is running, it took about 10 - 20 seconds for another to take over resouces and run service. Why it's slow like that? Is there anyone has experience about it? help me, plz! Here is my cluster.conf:
<?xml version="1.0"?>
<cluster alias="Testcluster" config_version="44" name="Testcluster">
<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="29"/>
<clusternodes>
<clusternode name="node1-ic" nodeid="1" votes="1">
<fence>
<method name="1">
<device name="Manual1" nodename="node1-ic"/>
</method>
</fence>
</clusternode>
<clusternode name="node2-ic" nodeid="2" votes="1">
<fence>
<method name="1">
<device name="Manual2" nodename="node2-ic"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_manual" name="Manual1"/>
<fencedevice agent="fence_manual" name="Manual2"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="Test_fo_domain" nofailback="0" ordered="0" restricted="0">
<failoverdomainnode name="node1-ic" priority="1"/>
<failoverdomainnode name="node2-ic" priority="1"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="222.255.239.152" monitor_link="1"/>
<clusterfs device="/dev/OBS_DATA/USER_DATA" force_unmount="0" fsid="7895" fstype="gfs2" mountpoint="/data" name="DATA" options="rw" self_fence="0"/>
<script file="/etc/init.d/obsrcluster" name="obsr"/>
<script file="/etc/rc.d/init.d/httpd" name="httpd"/>
</resources>
<service autostart="1" domain="Test_fo_domain" exclusive="0" name="testservice" recovery="relocate">
<ip ref="222.255.239.152"/>
<clusterfs ref="DATA"/>
<script ref="httpd"/>
</service>
</rm>
</cluster>
|