[Pacemaker] Loss of ocf:pacemaker:ping target forces resources to restart?
Andrew Martin
amartin at xes-inc.com
Wed Aug 22 16:23:17 UTC 2012
Hello,
I have a 3 node Pacemaker + Heartbeat cluster (two real nodes and 1 quorum node that cannot run resources) running on Ubuntu 12.04 Server amd64. This cluster has a DRBD resource that it mounts and then runs a KVM virtual machine from. I have configured the cluster to use ocf:pacemaker:ping with two other devices on the network (192.168.0.128, 192.168.0.129), and set constraints to move the resources to the most well-connected node (whichever node can see more of these two devices):
primitive p_ping ocf:pacemaker:ping \
params name="p_ping" host_list="192.168.0.128 192.168.0.129" multiplier="1000" attempts="8" debug="true" \
op start interval="0" timeout="60" \
op monitor interval="10s" timeout="60"
...
clone cl_ping p_ping \
meta interleave="true"
...
location loc_run_on_most_connected g_vm \
rule $id="loc_run_on_most_connected-rule" p_ping: defined p_ping
Today, 192.168.0.128's network cable was unplugged for a few seconds and then plugged back in. During this time, pacemaker recognized that it could not ping 192.168.0.128 and restarted all of the resources, but left them on the same node. My understanding was that since neither node could ping 192.168.0.128 during this period, pacemaker would do nothing with the resources (leave them running). It would only migrate or restart the resources if for example node2 could ping 192.168.0.128 but node1 could not (move the resources to where things are better-connected). Is this understanding incorrect? If so, is there a way I can change my configuration so that it will only restart/migrate resources if one node is found to be better connected?
Can you tell me why these resources were restarted? I have attached the syslog as well as my full CIB configuration.
Thanks,
Andrew Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ping_shutdown.log
Type: text/x-log
Size: 26777 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120822/e4283e84/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.cib
Type: application/octet-stream
Size: 3354 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120822/e4283e84/attachment-0003.obj>
More information about the Pacemaker
mailing list