<span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Hi Guys,</span><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">I was hoping that someone might be able to do a quick review of my cluster config, shown below, to work out why when I shutdown corosync on the master all the resources failover to the slave without a problem, but if I shutdown corosync on the slave all of the resources on the master stop as well, leaving me with both nodes broken.  Obviously what I want to happen is to be able to shutdown corosync on the slave and all of the resources running on the master to remain untouched. I must have something not quite right in the logic of my cluster config.</div>
<div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
It is a two server cluster running DRBD in active/passive mode.  The servers are running Redhat 5.7 with corosync-1.2.7-1.1.el5 and pacemaker-1.0.11-1.2.el5:</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); "><div><div>root@mq102:~# crm configure show</div><div>node mq101.back.live.telhc.local</div>
<div>node mq102.back.live.telhc.local</div><div>primitive activemq_drbd ocf:linbit:drbd \</div><div><span style="white-space: pre-wrap; ">        </span>params drbd_resource="r0" \</div><div><span style="white-space: pre-wrap; "> </span>op monitor interval="15s" timeout="20s" \</div>
<div><span style="white-space: pre-wrap; ">       </span>op start interval="0" timeout="240" \</div><div><span style="white-space: pre-wrap; ">     </span>op stop interval="0" timeout="100"</div>
<div>primitive activemq-emp lsb:activemq-emp \</div><div><span style="white-space: pre-wrap; ">       </span>op monitor interval="30s" timeout="30s" \</div><div><span style="white-space: pre-wrap; "> </span>op stop interval="0" timeout="60s" \</div>
<div><span style="white-space: pre-wrap; ">       </span>op start interval="0" timeout="60s" \</div><div><span style="white-space: pre-wrap; ">     </span>meta target-role="Started"</div><div>primitive cluster_IP ocf:heartbeat:IPaddr2 \</div>
<div><span style="white-space: pre-wrap; ">       </span>params ip="172.23.68.61" nic="eth0" \</div><div><span style="white-space: pre-wrap; ">     </span>op monitor interval="30s" timeout="90" \</div>
<div><span style="white-space: pre-wrap; ">       </span>op start interval="0" timeout="90" \</div><div><span style="white-space: pre-wrap; ">      </span>op stop interval="0" timeout="100"</div>
<div>primitive drbd_fs ocf:heartbeat:Filesystem \</div><div><span style="white-space: pre-wrap; ">    </span>params device="/dev/drbd1" directory="/drbd" fstype="ext3" \</div><div><span style="white-space: pre-wrap; ">    </span>op monitor interval="15s" timeout="40s" \</div>
<div><span style="white-space: pre-wrap; ">       </span>op start interval="0" timeout="60" \</div><div><span style="white-space: pre-wrap; ">      </span>op stop interval="0" timeout="60"</div>
<div>primitive ping_gateway ocf:pacemaker:ping \</div><div><span style="white-space: pre-wrap; ">     </span>params name="ping_gateway" host_list="172.23.68.1" multiplier="100" \</div><div><span style="white-space: pre-wrap; ">   </span>op monitor interval="15s" timeout="20s" \</div>
<div><span style="white-space: pre-wrap; ">       </span>op start interval="0" timeout="90" \</div><div><span style="white-space: pre-wrap; ">      </span>op stop interval="0" timeout="100"</div>
<div>ms ActiveMQ_Data activemq_drbd \</div><div><span style="white-space: pre-wrap; ">        </span>meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true" target-role="Master"</div>
<div>clone ping_gateway_clone ping_gateway</div><div>location ActiveMQ_Data_on_connected_node_only ActiveMQ_Data \</div><div><span style="white-space: pre-wrap; ">       </span>rule $id="ActiveMQ_Data_on_connected_node_only-rule" -inf: not_defined ping_gateway or ping_gateway lte 0</div>
<div>location ActiveMQ_Data_prefer_mq101 ActiveMQ_Data \</div><div><span style="white-space: pre-wrap; ">     </span>rule $id="ActiveMQ_Data_prefer_mq101-rule" $role="Master" 500: #uname eq mq101.back.live.telhc.local</div>
<div>colocation activemq-emp_with_ActiveMQ_Data inf: activemq-emp ActiveMQ_Data:Master</div><div>colocation cluster_IP_with_ActiveMQ_Data inf: cluster_IP ActiveMQ_Data:Master</div><div>colocation drbd_fs_with_ActiveMQ_Data inf: drbd_fs ActiveMQ_Data:Master</div>
<div>order ActiveMQ_Data_after_ping_gateway_clone inf: ping_gateway_clone:start ActiveMQ_Data:promote</div><div>order activemq-emp_after_drbd_fs inf: drbd_fs:start activemq-emp:start</div><div>order cluster_IP_after_drbd_fs inf: drbd_fs:start cluster_IP:start</div>
<div>order drbd_fs_after_ActiveMQ_Data inf: ActiveMQ_Data:promote drbd_fs:start</div><div>property $id="cib-bootstrap-options" \</div><div><span style="white-space: pre-wrap; ">       </span>dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87" \</div>
<div><span style="white-space: pre-wrap; ">       </span>cluster-infrastructure="openais" \</div><div><span style="white-space: pre-wrap; ">  </span>expected-quorum-votes="2" \</div><div><span style="white-space: pre-wrap; "> </span>no-quorum-policy="ignore" \</div>
<div><span style="white-space: pre-wrap; ">       </span>stonith-enabled="false" \</div><div><span style="white-space: pre-wrap; ">   </span>last-lrm-refresh="1317808706"</div><div>rsc_defaults $id="rsc-options" \</div>
<div><span style="white-space: pre-wrap; ">       </span>resource-stickiness="100"</div></div></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
<br></div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Cheers,</div><div style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">
Tom</div>