<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I have a two-node cluster
running MySQL with DRBD. I recently tried to fail over from the first
node (mysql1) to the second (mysql2) but it failed because the promotion
of DRBD on mysql2 failed. After the failure, I found this in the
Corosync log:<br></div><br>(drbd_r0:0_promote_0) on mysql2 failed (target: 0 vs. rc: -2): Error<br><br></div>While
looking into the problem, I discovered what appears to be a circular
colocation dependency between my MySQL resource group and my DRBD
resource. There's an order constraint which says DRBD should go first,
though, so I'm not positive this is the problem. I was hoping for a
second opinion before I go making any changes.<br><br></div>The constraints in the CIB are as follows:<br><br> <constraints><br> <rsc_colocation id="drbd-mysql-ha" rsc="ms-drbd_r0" rsc-role="Master" score="INFINITY" with-rsc="mysql_resources"/><br>
<rsc_order id="drbd-before-mysql" first="ms-drbd_r0"
first-action="promote" score="INFINITY" then="mysql_resources"
then-action="start"/><br> </constraints><br> <rsc_defaults><br> <meta_attributes id="rsc-options"><br> <nvpair id="rsc-options-resource-<wbr>stickiness" name="resource-stickiness" value="100"/><br> </meta_attributes><br> </rsc_defaults><br><br></div>And from crm_resource:<br><br>root@mysql1:~# crm_resource -a -r ms-drbd_r0<br>* ms-drbd_r0<br> mysql_resources <wbr> (score=INFINITY, id=drbd-mysql-ha)<br>root@mysql1:~# crm_resource -a -r mysql_resources<br> ms-drbd_r0 <wbr> (score=INFINITY, id=drbd-mysql-ha)<br>* mysql_resources<br><br clear="all"><div><div><div><div><div><div>Thoughts?<br><br></div><div>Thanks!<br></div><div>Dave</div></div></div></div></div></div><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Dave Parker '11<br></div>Database & Systems Administrator<br>Utica College<br>Integrated Information Technology Services<br>(315) 792-3229<br>Registered Linux User #408177</div></div></div></div></div>
</div>