[Pacemaker] how to realize group with colocation?

李森 lisen1001 at gmail.com
Tue May 18 07:59:19 UTC 2010


I failed my apache myself for testing.

my problem is if the first resource in the group runs ok and the second
resource in the group is failed, the whole group will not move to another
host.

I want to realise that if any of the resource in a group is failed, then the
whole group is failed.and the whole group will move to another host.

在 2010年5月18日 下午2:45,Andrew Beekhof <andrew at beekhof.net>写道:

> "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
> >
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100518/4bc8c7f4/attachment-0001.htm>


More information about the Pacemaker mailing list