[Pacemaker] how to realize group with colocation?

李森 lisen1001 at gmail.com
Mon May 17 08:33:59 UTC 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100517/450abb7b/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cibadmin_output
Type: application/octet-stream
Size: 10908 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100517/450abb7b/attachment-0004.obj>


More information about the Pacemaker mailing list