<!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> </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> </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'm doing wrong.</p><p> </p><p>Thanks,</p><p>Hans</p><p> </p><p>Just to be sure, I'll show my config below:</p><p> </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"> attributes standby="off"</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"> attributes standby="off"</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"> params drbd_resource="mysql" drbdconf="/etc/drbd.conf" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op start interval="0" timeout="240s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op monitor interval="20s" timeout="20s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op stop interval="0" timeout="100s"</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"> params drbd_resource="www" drbdconf="/etc/drbd.conf" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op start interval="0" timeout="240s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op monitor interval="20s" timeout="20s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op stop interval="0" timeout="100s"</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"> params drbd_resource="zarafa" drbdconf="/etc/drbd.conf" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op start interval="0" timeout="240s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op monitor interval="20s" timeout="20s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op stop interval="0" timeout="100s"</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"> params device="/dev/drbd0" fstype="ext4" directory="/var/lib/mysql" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op start interval="0" timeout="60s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op monitor interval="20s" timeout="40s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op stop interval="0" timeout="60s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> meta target-role="Started"</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"> params ip="192.168.2.30" nic="eth0" cidr_netmask="24" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op start interval="0s" timeout="60s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op monitor interval="5s" timeout="20s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op stop interval="0s" timeout="60s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> meta target-role="Started"</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"> params device="/dev/drbd1" fstype="ext4" directory="/var/www" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op start interval="0" timeout="60s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op monitor interval="20s" timeout="40s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op stop interval="0" timeout="60s"</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"> params device="/dev/drbd2" fstype="ext4" directory="/var/lib/zarafa" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op start interval="0" timeout="60s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op monitor interval="20s" timeout="40s" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> op stop interval="0" timeout="60s"</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"> meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" target-role="Started"</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"> meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"</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"> meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"</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="cib-bootstrap-options" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> dc-version="1.1.2-f059ec7ced7a86f18e5490b67ebf4a0b963bccfe" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> cluster-infrastructure="openais" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> expected-quorum-votes="2" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> no-quorum-policy="ignore" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> stonith-enabled="false"</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial">rsc_defaults $id="rsc-options" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> resource_stickyness="INFINITY" \</span></p><p style="margin: 0cm 0cm 0pt;"><span style="font-size: 10pt; font-family: Arial"> migration-threshold="1"</span></p>
</body>
</html>