<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v6.40.8-27223">
  <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  <title>Resource starts on wrong node ?</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif ! important;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<p>Hi all,</p><p>&nbsp;</p><p>Just started to configure a two node cluster (Centos 6) with drbd 8.4.0-31.el6,</p><p>corosync 1.2.3 and pacemaker 1.1.2.</p><p>I created three DRBD filesystems, and started to add them in the crm config one by one.</p><p>Everything went OK. After adding these resources they start on node1, and when I set node1</p><p>in standby, these three DRBD resources failover nicely to the second node. And vice versa.</p><p>So far so good.</p><p>&nbsp;</p><p>Next, I added one extra resource, that is supposed to put an IP alias on eth0.</p><p>This also works, but strangely enough the alias is set on eth0 of the second node, where I would have</p><p>expected it to start on the first node (just as the three drbd resources did).</p><p>Why the.... does Pacemaker decide that this resource is to be started on the second node ? I cannot grasp</p><p>the reason why.</p><p>Hope anyone can tell me what I&#39;m doing wrong.</p><p>&nbsp;</p><p>Thanks,</p><p>Hans</p><p>&nbsp;</p><p>Just to be sure, I&#39;ll show my config below:</p><p>&nbsp;</p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">node cl1 \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attributes standby=&quot;off&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">node cl2 \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attributes standby=&quot;off&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">primitive drbd0 ocf:linbit:drbd \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; params drbd_resource=&quot;mysql&quot; drbdconf=&quot;/etc/drbd.conf&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op start interval=&quot;0&quot; timeout=&quot;240s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval=&quot;20s&quot; timeout=&quot;20s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op stop interval=&quot;0&quot; timeout=&quot;100s&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">primitive drbd1 ocf:linbit:drbd \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; params drbd_resource=&quot;www&quot; drbdconf=&quot;/etc/drbd.conf&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op start interval=&quot;0&quot; timeout=&quot;240s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval=&quot;20s&quot; timeout=&quot;20s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op stop interval=&quot;0&quot; timeout=&quot;100s&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">primitive drbd2 ocf:linbit:drbd \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; params drbd_resource=&quot;zarafa&quot; drbdconf=&quot;/etc/drbd.conf&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op start interval=&quot;0&quot; timeout=&quot;240s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval=&quot;20s&quot; timeout=&quot;20s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op stop interval=&quot;0&quot; timeout=&quot;100s&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">primitive mysqlfs ocf:heartbeat:Filesystem \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; params device=&quot;/dev/drbd0&quot; fstype=&quot;ext4&quot; directory=&quot;/var/lib/mysql&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op start interval=&quot;0&quot; timeout=&quot;60s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval=&quot;20s&quot; timeout=&quot;40s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op stop interval=&quot;0&quot; timeout=&quot;60s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meta target-role=&quot;Started&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">primitive mysqlip ocf:heartbeat:IPaddr2 \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; params ip=&quot;192.168.2.30&quot; nic=&quot;eth0&quot; cidr_netmask=&quot;24&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op start interval=&quot;0s&quot; timeout=&quot;60s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval=&quot;5s&quot; timeout=&quot;20s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op stop interval=&quot;0s&quot; timeout=&quot;60s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meta target-role=&quot;Started&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">primitive wwwfs ocf:heartbeat:Filesystem \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; params device=&quot;/dev/drbd1&quot; fstype=&quot;ext4&quot; directory=&quot;/var/www&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op start interval=&quot;0&quot; timeout=&quot;60s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval=&quot;20s&quot; timeout=&quot;40s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op stop interval=&quot;0&quot; timeout=&quot;60s&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">primitive zarafafs ocf:heartbeat:Filesystem \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; params device=&quot;/dev/drbd2&quot; fstype=&quot;ext4&quot; directory=&quot;/var/lib/zarafa&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op start interval=&quot;0&quot; timeout=&quot;60s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval=&quot;20s&quot; timeout=&quot;40s&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op stop interval=&quot;0&quot; timeout=&quot;60s&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">ms ms_drbd0 drbd0 \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meta master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot; target-role=&quot;Started&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">ms ms_drbd1 drbd1 \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meta master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">ms ms_drbd2 drbd2 \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meta master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">colocation fs2_on_drbd inf: wwwfs ms_drbd1:Master</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">colocation fs3_on_drbd inf: zarafafs ms_drbd2:Master</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">colocation fs_on_drbd inf: mysqlfs ms_drbd0:Master</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">order fs2_after_drbd inf: ms_drbd1:promote wwwfs:start</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">order fs3_after_drbd inf: ms_drbd2:promote zarafafs:start</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">order fs_after_drbd inf: ms_drbd0:promote mysqlfs:start</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">property $id=&quot;cib-bootstrap-options&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dc-version=&quot;1.1.2-f059ec7ced7a86f18e5490b67ebf4a0b963bccfe&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cluster-infrastructure=&quot;openais&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expected-quorum-votes=&quot;2&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no-quorum-policy=&quot;ignore&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stonith-enabled=&quot;false&quot;</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">rsc_defaults $id=&quot;rsc-options&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; resource_stickyness=&quot;INFINITY&quot; \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; migration-threshold=&quot;1&quot;</span></p>
</body>
</html>