Hello,<br><br><div>order apache2-after-arp inf: site_one_arp:start apache2:start</div>
<div>order arp-after-ip inf: site_one_ip:start site_one_arp:start<br><br>These mayn't be required as following group will ensure the order<br><br><div>group WebServices site_one_ip site_one_arp fs_webfs apache2</div>
<br></div>Does apache2 resource only restarts?<br><br>You need to check syslog configuration to know about your log location.<br><br>I saw similar issue in SLES11 pacemaker and it is discussed in <br>"Clone resource dependency issue - undesired restart of dependent resources" in this pacemaker list<br>
<a href="http://oss.clusterlabs.org/pipermail/pacemaker/2011-April/009828.html">http://oss.clusterlabs.org/pipermail/pacemaker/2011-April/009828.html</a><br><br>But here the full resource group gets restarts because a bug, Adding score = 0 in order constraint work around the issue<br>
<br>Regards<br>Aneesh<br><br><div class="gmail_quote">On Thu, May 26, 2011 at 2:16 PM, Dave Neil <span dir="ltr"><<a href="mailto:dave@happymail.co.uk">dave@happymail.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks here is my cib :<div><br></div><div><div><br></div><div>node $id="11f2d436-f534-41b7-8761-4615270b6ee2" highw01 \</div><div> attributes standby="off"</div><div>node $id="1314837f-ecaf-455a-b4b2-3b263a64111c" highw02 \</div>
<div> attributes standby="off"</div><div>primitive apache2 lsb:apache2 \</div><div> op monitor interval="5s" \</div><div> meta target-role="Started"</div><div>primitive drbd_webfs ocf:linbit:drbd \</div>
<div> params drbd_resource="lamp" \</div><div> op monitor interval="15s" \</div><div> op start interval="0" timeout="240" \</div><div> op stop interval="0" timeout="100"</div>
<div>primitive fs_webfs ocf:heartbeat:Filesystem \</div><div> params device="/dev/drbd/by-res/lamp" directory="/srv/www" fstype="ext3" \</div><div> op start interval="0" timeout="60" \</div>
<div> op stop interval="0" timeout="120"</div><div>primitive site_one_arp ocf:heartbeat:SendArp \</div><div> params ip="10.90.201.20" nic="eth0"</div><div>primitive site_one_ip ocf:heartbeat:IPaddr \</div>
<div> params ip="10.90.201.20" cidr_netmask="255.255.248.0" nic="eth0"</div><div>group WebServices site_one_ip site_one_arp fs_webfs apache2</div><div>ms ms_drbd_webfs drbd_webfs \</div>
<div> meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"</div><div>colocation apache2_with_ip inf: apache2 site_one_ip</div><div>
colocation apache2_with_webfs inf: apache2 ms_drbd_webfs:Master</div><div>colocation ip_with_ip_arp inf: site_one_ip site_one_arp</div><div>colocation webfs_on_drbd inf: fs_webfs ms_drbd_webfs:Master</div><div>order apache2-after-arp inf: site_one_arp:start apache2:start</div>
<div>order arp-after-ip inf: site_one_ip:start site_one_arp:start</div><div>order fs-webfs-after-drbd inf: ms_drbd_webfs:promote fs_webfs:start</div><div>property $id="cib-bootstrap-options" \</div><div> dc-version="1.0.9-da7075976b5ff0bee71074385f8fd02f296ec8a3" \</div>
<div> cluster-infrastructure="Heartbeat" \</div><div> expected-quorum-votes="1" \</div><div> stonith-enabled="false" \</div><div> no-quorum-policy="ignore"</div>
<div>rsc_defaults $id="rsc-options" \</div><div> resource-stickiness="100"</div><div><br></div><div><br></div><div><br></div><div>where are the logs by default ? cant see anything useful in /var/log/messages ? </div>
<div><br></div><div>Regards</div><div>Dave</div><div><div></div><div class="h5"><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">
On 26 May 2011 08:52, aneesh vs <span dir="ltr"><<a href="mailto:mailtoaneeshvs@gmail.com" target="_blank">mailtoaneeshvs@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br><br>Please provide cib file and concerned logs(from both nodes) when rebooted node rejoin cluster.<br><br>Regards<br>
Aneesh<br><br><div class="gmail_quote"><div>On Thu, May 26, 2011 at 1:15 PM, Dave Neil <span dir="ltr"><<a href="mailto:dave@happymail.co.uk" target="_blank">dave@happymail.co.uk</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hello, I have a 2 node test up and running with Heartbeat / Pacemaker / DRBD / Ubuntu 11.04. If I reboot the Primary node resources move over to the secondary fine. But when the primary comes back online apache2 restarts on the Secondary node. Any ideas please ?<div>
<br></div><font color="#888888"><div>D</div>
</font><br></div>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
<br></blockquote></div><br>