[Pacemaker] apache2 restart

aneesh vs mailtoaneeshvs at gmail.com
Thu May 26 05:40:24 EDT 2011


Hello,

order apache2-after-arp inf: site_one_arp:start apache2:start
order arp-after-ip inf: site_one_ip:start site_one_arp:start

These mayn't be required as following group will ensure the order

group WebServices site_one_ip site_one_arp fs_webfs apache2

Does apache2 resource only restarts?

You need to check syslog configuration to know about your log location.

I saw similar issue in SLES11 pacemaker and it is discussed in
"Clone resource dependency issue - undesired restart of dependent resources"
in this pacemaker list
http://oss.clusterlabs.org/pipermail/pacemaker/2011-April/009828.html

But here the full resource group gets restarts because a bug, Adding score =
0 in order constraint work around the issue

Regards
Aneesh

On Thu, May 26, 2011 at 2:16 PM, Dave Neil <dave at happymail.co.uk> wrote:

> Thanks here is my cib :
>
>
> node $id="11f2d436-f534-41b7-8761-4615270b6ee2" highw01 \
>         attributes standby="off"
> node $id="1314837f-ecaf-455a-b4b2-3b263a64111c" highw02 \
>         attributes standby="off"
> primitive apache2 lsb:apache2 \
>         op monitor interval="5s" \
>         meta target-role="Started"
> primitive drbd_webfs ocf:linbit:drbd \
>         params drbd_resource="lamp" \
>         op monitor interval="15s" \
>         op start interval="0" timeout="240" \
>         op stop interval="0" timeout="100"
> primitive fs_webfs ocf:heartbeat:Filesystem \
>         params device="/dev/drbd/by-res/lamp" directory="/srv/www"
> fstype="ext3" \
>         op start interval="0" timeout="60" \
>         op stop interval="0" timeout="120"
> primitive site_one_arp ocf:heartbeat:SendArp \
>         params ip="10.90.201.20" nic="eth0"
> primitive site_one_ip ocf:heartbeat:IPaddr \
>         params ip="10.90.201.20" cidr_netmask="255.255.248.0" nic="eth0"
> group WebServices site_one_ip site_one_arp fs_webfs apache2
> ms ms_drbd_webfs drbd_webfs \
>         meta master-max="1" master-node-max="1" clone-max="2"
> clone-node-max="1" notify="true"
> colocation apache2_with_ip inf: apache2 site_one_ip
> colocation apache2_with_webfs inf: apache2 ms_drbd_webfs:Master
> colocation ip_with_ip_arp inf: site_one_ip site_one_arp
> colocation webfs_on_drbd inf: fs_webfs ms_drbd_webfs:Master
> order apache2-after-arp inf: site_one_arp:start apache2:start
> order arp-after-ip inf: site_one_ip:start site_one_arp:start
> order fs-webfs-after-drbd inf: ms_drbd_webfs:promote fs_webfs:start
> property $id="cib-bootstrap-options" \
>         dc-version="1.0.9-da7075976b5ff0bee71074385f8fd02f296ec8a3" \
>         cluster-infrastructure="Heartbeat" \
>         expected-quorum-votes="1" \
>         stonith-enabled="false" \
>         no-quorum-policy="ignore"
> rsc_defaults $id="rsc-options" \
>         resource-stickiness="100"
>
>
>
> where are the logs by default ? cant see anything useful in
> /var/log/messages ?
>
> Regards
> Dave
>
>
>
>
>
>
>
>
>
>
> On 26 May 2011 08:52, aneesh vs <mailtoaneeshvs at gmail.com> wrote:
>
>> Hello,
>>
>> Please provide cib file and concerned logs(from both nodes) when rebooted
>> node rejoin cluster.
>>
>> Regards
>> Aneesh
>>
>> On Thu, May 26, 2011 at 1:15 PM, Dave Neil <dave at happymail.co.uk> wrote:
>>
>>> 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 ?
>>>
>>> D
>>>
>>> _______________________________________________
>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>
>>> Project Home: http://www.clusterlabs.org
>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>> Bugs:
>>> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>>>
>>>
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs:
>> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>>
>>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs:
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110526/dad13df7/attachment-0003.html>


More information about the Pacemaker mailing list