I found a few problems in your configuration.<br><br>First why do you set max-master=2? So both nodes are promoted and both nodes are master. Then your colocation constraints does not make sense. Because Hosting has to be started on both nodes. If this is not what you want, then please remove max-master=2. I think the default is 1.<br>
<br>Second is your location constraint is not quite correct. It does not make sense with colocation.<br><br>Location constraint: Please run Hosting in ibm1.<br>Colocation: Please run Hosting on drbd master node<br><br>The better way to handle this situation will be set location constraint to drbd resource. Using role=master, you can say to Pacemaker which node is preferred node to become drbd master. Once drbd becomes a master in one of nodes, then Hosting will be started on that node based on colocation and order constraint.<br>
<br>Please try these two fixes.<br><br>Thanks<br>hj<br><br><div class="gmail_quote">On Wed, Dec 30, 2009 at 7:37 AM, Martin Gombač <span dir="ltr"><<a href="mailto:martin@isg.si">martin@isg.si</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
i've replaced /usr/lib/ocf/resource.d/linbit/drbd with version from git as you suggested. Lars, you can get a diff if you wish. I've also changed preference scores on all definitions.<br>
Resource Hosting (mounted on ms_drbd_r0/primary) still gets restarted if _anything_ happens to peer's drbd. By anything i mean changing state from primary to secondary and similar.<br>
<br>
><br>
Dec 30 15:04:01 ibm1 pengine: [14902]: notice: LogActions: Restart resource Hosting (Started ibm1)<br>
Dec 30 15:04:01 ibm1 pengine: [14902]: notice: LogActions: Leave resource drbd_r0:0 (Master ibm1)<br>
Dec 30 15:04:01 ibm1 pengine: [14902]: notice: LogActions: Promote drbd_r0:1 (Slave -> Master ibm2)<br>
><br>
<br>
Here is my current config as a whole. If you want i can attach .xml version too.<br>
><br>
crm(live)# configure show<br>
node $id="3d430f49-b915-4d52-a32b-xxxx" ibm2<br>
node $id="4b2047c8-f3a0-4935-84a2-xxxx" ibm1<div class="im"><br>
primitive Hosting ocf:heartbeat:Xen \<br>
params xmfile="/etc/xen/Hosting.cfg" \<br>
meta target-role="Started" allow-migrate="true" is-managed="true" \<br>
op monitor interval="120s" timeout="300s"<br>
primitive drbd_r0 ocf:linbit:drbd \<br>
params drbd_resource="r0" \<br>
op monitor interval="15s" role="Master" timeout="30s" \<br>
op monitor interval="30s" role="Slave" timeout="30"<br></div><div class="im">
ms ms_drbd_r0 drbd_r0 \<br></div>
meta notify="true" master-max="2" interleave="true" master-node-max="1" is-managed="true" resource-stickines="1000"<div class="im"><br>
location cli-prefer-Hosting Hosting \<br></div>
rule $id="cli-prefer-rule-Hosting" 10000: #uname eq ibm1<br>
colocation Hosting_on_ms_drbd_r0 10100: Hosting ms_drbd_r0:Master<br>
order ms_drbd_r0_b4_Hosting 10200: ms_drbd_r0:promote Hosting:start<div class="im"><br>
property $id="cib-bootstrap-options" \<br>
dc-version="1.0.6-f709c638237cdff7556cb6ab615f32826c0f8c06" \<br>
cluster-infrastructure="Heartbeat" \<br>
stonith-enabled="false" \<br>
no-quorum-policy="ignore" \<br>
default-resource-stickiness="1000" \<br></div>
last-lrm-refresh="1262179462"<br>
><br>
<br>
I have no idea what else to check/set. If anyone can help me i'll appreciate it, if not i'll just remove drbd from cluster and rely only on fence-peer and after-resync-target drbd handlers. :-/ However I will google a bit, before i do that. :-)<br>
<br>
Regards,<br><font color="#888888">
M.</font><div class="im"><br>
<br>
<br>
Lars Ellenberg wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Just to rule out some glitches we may have had with updating "master scores"<br>
in the ocf:linbit:drbd RA, please compare and try with the latest<br>
version of that agent, available at<br>
<a href="http://git.drbd.org/?p=drbd-8.3.git;a=blob_plain;f=scripts/drbd.ocf;hb=HEAD" target="_blank">http://git.drbd.org/?p=drbd-8.3.git;a=blob_plain;f=scripts/drbd.ocf;hb=HEAD</a><br>
<br>
Also, try to reduce your "preference" scores to some sane number,<br>
and not use inf everywhere. give the crm some rope.<br>
<br>
<br>
</blockquote>
<br></div><div><div></div><div class="h5">
_______________________________________________<br>
Pacemaker mailing list<br>
<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Dream with longterm vision!<br>kerdosa<br>