<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>If a mysql server is running on a cluster node which is not defined to run the mysql resource, pacemaker will mark it unmanaged and will not start it on the node which it is suppose to run on. Same goes for nfs-common. On my nfs servers nfs-common and nfs-kernel-server resources should be running, and all others have nfs-common installed. So pacemaker will just pick one random node marking the nfs-common resource as running unmanaged and will not start it where i specifically told it to run.</div><div><br></div><div>Likewise i can not have two drbd raid on different pair of node with the same name. My two nfs servers hava a drbd raid between them and my mysql servers hava a drbd raid running between them. Both had their resources called r0 and pacemaker one to be slave and one to be master, completely disregarding my location rules. Same with the mount point. I can't use the same folder name on both sql and nfs server to mount the drbd0 disk in, because pacemaker will concider it mounted and not try to mount the second. Changing the names of the resources and the mount point solved the drbd issues.</div><div><br></div><div>Right now a mysql process is running as test on a web server in the cluster, and pacemaker will not start it on my sql servers, same for my nfs servers.</div><div><br></div><div>What i dont understand i why is pacemaker trying to monitor service on nodes that are not supposed to run the service. And why does it stop the service on the node that are supposed to run the service.</div><div><br></div><div>My config is here:</div><div><br></div><div><div>crm(live)configure# show</div><div>node nfs01 \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>attributes standby="off"</div><div>node nfs02 \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>attributes standby="off"</div><div>node proxy01 \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>attributes standby="off" kernel="2.6.32-5-amd64"</div><div>node sql01 \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>attributes standby="off"</div><div>node sql02 \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>attributes standby="off"</div><div>node www02 \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>attributes standby="off"</div><div>node www03 \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>attributes standby="off"</div><div>primitive dnsmasq lsb:dnsmasq \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>op monitor interval="60s" timeout="30s"</div><div>primitive drbd_mysql ocf:linbit:drbd \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>params drbd_resource="s0" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>op monitor interval="15s"</div><div>primitive drbd_nfs ocf:linbit:drbd \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>params drbd_resource="r0" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>op monitor interval="15s"</div><div>primitive fs_mysql ocf:heartbeat:Filesystem \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>params device="/dev/drbd0" directory="/sqlstore01" fstype="ext4" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>op monitor interval="60s" timeout="30s"</div><div>primitive fs_nfs ocf:heartbeat:Filesystem \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>params device="/dev/drbd0" directory="/datastore01" fstype="ext4" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>op monitor interval="60s" timeout="30s"</div><div>primitive fs_nfs_export ocf:heartbeat:Filesystem \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>params device="/datastore01/exports/web" directory="/exports/web" fstype="none" options="bind" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>op monitor interval="60s" timeout="30s"</div><div>primitive ip_mysql ocf:heartbeat:IPaddr2 \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>params ip="192.168.50.20" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>op monitor interval="60s" timeout="30s"</div><div>primitive ip_nfs ocf:heartbeat:IPaddr2 \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>params ip="192.168.50.200" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>op monitor interval="60s" timeout="30s"</div><div>primitive mysqld lsb:mysql \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>op monitor interval="60s" timeout="30s"</div><div>primitive nfscommon lsb:nfs-common \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>op monitor interval="60s" timeout="30s"</div><div>primitive nfskernel lsb:nfs-kernel-server \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>op monitor interval="60s" timeout="30s"</div><div>group mysql fs_mysql ip_mysql mysqld</div><div>group nfs fs_nfs fs_nfs_export ip_nfs nfscommon nfskernel dnsmasq</div><div>ms ms_drbd_mysql drbd_mysql \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"</div><div>ms ms_drbd_nfs drbd_nfs \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"</div><div>location ms_drbd_mysql_on_both ms_drbd_mysql \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>rule $id="ms_drbd_mysql_on_both-rule" inf: #uname eq sql01 or #uname eq sql02</div><div>location ms_drbd_mysql_on_neither ms_drbd_mysql \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>rule $id="ms_drbd_mysql_on_neither-rule" -inf: #uname ne sql01 and #uname ne sql02</div><div>location ms_drbd_mysql_pri_loc ms_drbd_mysql \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>rule $id="ms_drbd_mysql_pri_loc-rule" $role="master" 100: #uname eq sql01</div><div>location ms_drbd_nfs_on_both ms_drbd_nfs \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>rule $id="ms_drbd_nfs_on_both-rule" inf: #uname eq nfs01 or #uname eq nfs02</div><div>location ms_drbd_nfs_on_neither ms_drbd_nfs \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>rule $id="ms_drbd_nfs_on_neither-rule" -inf: #uname ne nfs01 and #uname ne nfs02</div><div>location mysql_alt_loc mysql 100: sql02</div><div>location mysql_pri_loc mysql inf: sql01</div><div>location nfs_pri_loc nfs inf: nfs01</div><div>location nfs_sec_loc nfs 100: nfs02</div><div>colocation mysql_on_drbd inf: mysql ms_drbd_mysql:Master</div><div>colocation nfs_on_drbd inf: nfs ms_drbd_nfs:Master</div><div>order mysql_after_drbd inf: ms_drbd_mysql:promote mysql:start</div><div>order nfs_after_drbd inf: ms_drbd_nfs:promote nfs:start</div><div>property $id="cib-bootstrap-options" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>dc-version="1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>cluster-infrastructure="openais" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>expected-quorum-votes="7" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>stonith-enabled="false" \</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>symmetric-cluster="false"</div></div></body></html>