<div dir="ltr">Hello.<div><br></div><div>I have 3-node cluster managed by corosync+pacemaker+crm. Node1 and Node2 are DRBD master-slave, also they have a number of other services installed (postgresql, nginx, ...). Node3 is just a corosync node (for quorum), no DRBD/postgresql/... are installed at it, only corosync+pacemaker.</div><div><br></div><div>But when I add resources to the cluster, a part of them are somehow moved to node3 and since then fail. Note than I have a "colocation" directive to place these resources to the DRBD master only and "location" with -inf for node3, but this does not help - why? How to make pacemaker not run anything at node3?</div><div><br></div><div>All the resources are added in a single transaction: "cat config.txt | crm -w -f- configure" where config.txt contains directives and "commit" statement at the end.</div><div><br></div><div>Below are "crm status" (error messages) and "crm configure show" outputs.</div><div><br></div><div><br></div><div><div><b>root@node3:~# crm status</b></div><div>Current DC: node2 (1017525950) - partition with quorum</div><div>3 Nodes configured</div><div>6 Resources configured</div><div>Online: [ node1 node2 node3 ]<br></div><div>Master/Slave Set: ms_drbd [drbd]<br></div><div>     Masters: [ node1 ]</div><div>     Slaves: [ node2 ]</div><div>Resource Group: server</div><div>     fs<span class="" style="white-space:pre">  </span>(ocf::heartbeat:Filesystem):<span class="" style="white-space:pre">      </span>Started node1</div><div>     postgresql<span class="" style="white-space:pre">    </span>(lsb:postgresql):<span class="" style="white-space:pre"> </span>Started node3 FAILED</div><div>     bind9<span class="" style="white-space:pre">  </span>(lsb:bind9):<span class="" style="white-space:pre">      </span>Started node3 FAILED</div><div>     nginx<span class="" style="white-space:pre">  </span>(lsb:nginx):<span class="" style="white-space:pre">      </span>Started node3 (unmanaged) FAILED</div><div>Failed actions:<br></div><div>    drbd_monitor_0 (node=node3, call=744, rc=5, status=complete, last-rc-change=Mon Jan 12 11:16:43 2015, queued=2ms, exec=0ms): not installed</div><div>    postgresql_monitor_0 (node=node3, call=753, rc=1, status=complete, last-rc-change=Mon Jan 12 11:16:43 2015, queued=8ms, exec=0ms): unknown error</div><div>    bind9_monitor_0 (node=node3, call=757, rc=1, status=complete, last-rc-change=Mon Jan 12 11:16:43 2015, queued=11ms, exec=0ms): unknown error</div><div>    nginx_stop_0 (node=node3, call=767, rc=5, status=complete, last-rc-change=Mon Jan 12 11:16:44 2015, queued=1ms, exec=0ms): not installed</div></div><div><br></div><div><br></div><div><div><b>root@node3:~# crm configure show | cat</b></div><div>node $id="1017525950" node2</div><div>node $id="13071578" node3</div><div>node $id="1760315215" node1</div><div>primitive drbd ocf:linbit:drbd \</div><div><span class="" style="white-space:pre">       </span>params drbd_resource="vlv" \</div><div><span class="" style="white-space:pre">     </span>op start interval="0" timeout="240" \</div><div><span class="" style="white-space:pre">  </span>op stop interval="0" timeout="120"</div><div>primitive fs ocf:heartbeat:Filesystem \</div><div><span class="" style="white-space:pre">       </span>params device="/dev/drbd0" directory="/var/lib/vlv.drbd/root" options="noatime,nodiratime" fstype="xfs" \</div><div><span class="" style="white-space:pre">  </span>op start interval="0" timeout="300" \</div><div><span class="" style="white-space:pre">  </span>op stop interval="0" timeout="300"</div><div>primitive postgresql lsb:postgresql \</div><div><span class="" style="white-space:pre"> </span>op monitor interval="10" timeout="60" \</div><div><span class="" style="white-space:pre">        </span>op start interval="0" timeout="60" \</div><div><span class="" style="white-space:pre">   </span>op stop interval="0" timeout="60"</div><div>primitive bind9 lsb:bind9 \</div><div><span class="" style="white-space:pre">    </span>op monitor interval="10" timeout="60" \</div><div><span class="" style="white-space:pre">        </span>op start interval="0" timeout="60" \</div><div><span class="" style="white-space:pre">   </span>op stop interval="0" timeout="60"</div><div>primitive nginx lsb:nginx \</div><div><span class="" style="white-space:pre">    </span>op monitor interval="10" timeout="60" \</div><div><span class="" style="white-space:pre">        </span>op start interval="0" timeout="60" \</div><div><span class="" style="white-space:pre">   </span>op stop interval="0" timeout="60"</div><div>group server fs postgresql bind9 nginx</div><div>ms ms_drbd drbd meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"</div><div>location loc_server server rule $id="loc_server-rule" -inf: #uname eq node3</div><div>colocation col_server inf: server ms_drbd:Master</div><div>order ord_server inf: ms_drbd:promote server:start</div><div>property $id="cib-bootstrap-options" \</div><div><span class="" style="white-space:pre">       </span>stonith-enabled="false" \</div><div><span class="" style="white-space:pre">        </span>last-lrm-refresh="1421079189" \</div><div><span class="" style="white-space:pre">  </span>maintenance-mode="false"</div></div></div>