[Pacemaker] how to realize group with colocation?

Andrew Beekhof andrew at beekhof.net
Tue May 18 02:45:14 EDT 2010


"crm_verify -L" or "crm_mon" will point you in the right direction.
looks like apache isn't happy on vm2

2010/5/17 李森 <lisen1001 at gmail.com>:
> Thanks for you reply.
>
> 1.the version is 1.0.8 for heartbeat 3.0.2.
>
>
> 2.
> there are two nodes in my cluster : vm1 172.16.0.11  vm2 172.16.0.12
> the ip-aliase is 172.16.0.100
>
> i use the crm cli command to config:
> primitive ip-aliase ocf:heartbeat:IPaadr2 params ip="172.16.0.100" op
> monitor interval="5s"
> primitive web ocf:heartbeat:apache paramas
> configfile="/etc/apache2/apache2.conf" op monitor interval="5s"
> group  group1 ip-aliase web
> location cons1 group1 100:vm2
> location cons2 group  80: vm1
>
> 3.
>  the cibamin  output is in the attachment.
>
>
> 2010/5/17 Andrew Beekhof <andrew at beekhof.net>
>>
>> version? actual config? cibadmin output?
>>
>> On Mon, May 17, 2010 at 9:14 AM, 李森 <lisen1001 at gmail.com> wrote:
>> > hi all:
>> >
>> >        I create a group with two resources:
>> >
>> > group1:
>> >             ip-aliase
>> >             apache
>> >
>> >        my cluster has two nodes:
>> >
>> > crm(live)# configure
>> > crm(live)configure# property symmetric-cluster=false
>> > crm(live)configure# location constrain1 group1 200: host1
>> > crm(live)configure# location constrain2 group2 100: host2
>> >
>> > #################
>> >
>> > my problem is when the ip-aliase runs ok and the apache is failed,the
>> > group1
>> > can't move to host2:
>> >
>> > Onlien [ host1 host2]
>> >
>> > Resource Group: group1
>> >          ip-aliase                Started host1
>> >          apache                  Stoppped
>> >
>> > i want to realise that if one of the resources in a group is failed,then
>> > the
>> > group is failed and move to another node in the cluster.
>> >
>> >
>> >
>> > _______________________________________________
>> > 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
>> >
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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
>




More information about the Pacemaker mailing list