Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Question regarding constraint sets

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


misch at multinet

Jul 7, 2009, 12:14 PM

Post #1 of 4 (494 views)
Permalink
Question regarding constraint sets

Hi,

In the "configuration explained" I read about the new resource sets within
constraints. I wanted to try it and configured three dummy resources:

<primitive class="ocf" id="resDummy1" provider="pacemaker" type="Dummy"/>
<primitive class="ocf" id="resDummy2" provider="pacemaker" type="Dummy"/>
<primitive class="ocf" id="resDummy3" provider="pacemaker" type="Dummy"/>

According to the doc I created the following colocation constratins:
<rsc_colocation id="totalOrder">
<resource_set id="orderBeispiel" sequential="true">
<resource_ref id="resDummy1"/>
<resource_ref id="resDummy2"/>
<resource_ref id="resDummy3"/>
</resource_set>
</rsc_colocation>

As far as I understood the doc resDummy2 and 3 cannot be startet when
resDummy1 is stopped. But when I stop resDummy1 crm_resource -L gives me:

# crm_resource -L
resDummy1 (ocf::pacemaker:Dummy) Stopped
resDummy2 (ocf::pacemaker:Dummy) Started
resDummy3 (ocf::pacemaker:Dummy) Started

Do I have a problem understanding the doc? Is the doc wrong? Please can
anybody point me in the right direction? Thanks.

--
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: misch [at] multinet
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


andrew at beekhof

Jul 13, 2009, 7:23 AM

Post #2 of 4 (419 views)
Permalink
Re: Question regarding constraint sets [In reply to]

On Tue, Jul 7, 2009 at 9:14 PM, Michael Schwartzkopff<misch [at] multinet> wrote:
> Hi,
>
> In the "configuration explained" I read about the new resource sets within
> constraints. I wanted to try it and configured three dummy resources:
>
> <primitive class="ocf" id="resDummy1" provider="pacemaker" type="Dummy"/>
> <primitive class="ocf" id="resDummy2" provider="pacemaker" type="Dummy"/>
> <primitive class="ocf" id="resDummy3" provider="pacemaker" type="Dummy"/>
>
> According to the doc I created the following colocation constratins:
> <rsc_colocation id="totalOrder">
>  <resource_set id="orderBeispiel" sequential="true">
>    <resource_ref id="resDummy1"/>
>    <resource_ref id="resDummy2"/>
>    <resource_ref id="resDummy3"/>
>  </resource_set>
> </rsc_colocation>
>
> As far as I understood the doc resDummy2 and 3 cannot be startet when
> resDummy1 is stopped.

Right concept, wrong order. Its the other way around.
Did the docs not explain this?

> But when I stop resDummy1 crm_resource -L gives me:
>
> # crm_resource -L
> resDummy1       (ocf::pacemaker:Dummy) Stopped
> resDummy2       (ocf::pacemaker:Dummy) Started
> resDummy3       (ocf::pacemaker:Dummy) Started
>
> Do I have a problem understanding the doc? Is the doc wrong? Please can
> anybody point me in the right direction? Thanks.
>
> --
> Dr. Michael Schwartzkopff
> MultiNET Services GmbH
> Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
> Tel: +49 - 89 - 45 69 11 0
> Fax: +49 - 89 - 45 69 11 21
> mob: +49 - 174 - 343 28 75
>
> mail: misch [at] multinet
> web: www.multinet.de
>
> Sitz der Gesellschaft: 85630 Grasbrunn
> Registergericht: Amtsgericht München HRB 114375
> Geschäftsführer: Günter Jurgeneit, Hubert Martens
>
> ---
>
> PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
> Skype: misch42
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


misch at multinet

Jul 13, 2009, 7:29 AM

Post #3 of 4 (427 views)
Permalink
Re: Question regarding constraint sets [In reply to]

Am Montag, 13. Juli 2009 16:23:31 schrieb Andrew Beekhof:
> On Tue, Jul 7, 2009 at 9:14 PM, Michael Schwartzkopff<misch [at] multinet>
wrote:
> > Hi,
> >
> > In the "configuration explained" I read about the new resource sets
> > within constraints. I wanted to try it and configured three dummy
> > resources:
> >
> > <primitive class="ocf" id="resDummy1" provider="pacemaker" type="Dummy"/>
> > <primitive class="ocf" id="resDummy2" provider="pacemaker" type="Dummy"/>
> > <primitive class="ocf" id="resDummy3" provider="pacemaker" type="Dummy"/>
> >
> > According to the doc I created the following colocation constratins:
> > <rsc_colocation id="totalOrder">
> > <resource_set id="orderBeispiel" sequential="true">
> > <resource_ref id="resDummy1"/>
> > <resource_ref id="resDummy2"/>
> > <resource_ref id="resDummy3"/>
> > </resource_set>
> > </rsc_colocation>
> >
> > As far as I understood the doc resDummy2 and 3 cannot be startet when
> > resDummy1 is stopped.
>
> Right concept, wrong order. Its the other way around.
> Did the docs not explain this?

Yes. But I had to read it about five times to get the idea. I still had the
idea if group, when the order is from top to bottom. Here the ordering is
reversed. Very puzzeling, if you read for the first four times.

Greetings,

--
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: misch [at] multinet
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


andrew at beekhof

Jul 13, 2009, 7:30 AM

Post #4 of 4 (421 views)
Permalink
Re: Question regarding constraint sets [In reply to]

On Mon, Jul 13, 2009 at 4:29 PM, Michael Schwartzkopff<misch [at] multinet> wrote:
> Am Montag, 13. Juli 2009 16:23:31 schrieb Andrew Beekhof:
>> On Tue, Jul 7, 2009 at 9:14 PM, Michael Schwartzkopff<misch [at] multinet>
> wrote:
>> > Hi,
>> >
>> > In the "configuration explained" I read about the new resource sets
>> > within constraints. I wanted to try it and configured three dummy
>> > resources:
>> >
>> > <primitive class="ocf" id="resDummy1" provider="pacemaker" type="Dummy"/>
>> > <primitive class="ocf" id="resDummy2" provider="pacemaker" type="Dummy"/>
>> > <primitive class="ocf" id="resDummy3" provider="pacemaker" type="Dummy"/>
>> >
>> > According to the doc I created the following colocation constratins:
>> > <rsc_colocation id="totalOrder">
>> >  <resource_set id="orderBeispiel" sequential="true">
>> >    <resource_ref id="resDummy1"/>
>> >    <resource_ref id="resDummy2"/>
>> >    <resource_ref id="resDummy3"/>
>> >  </resource_set>
>> > </rsc_colocation>
>> >
>> > As far as I understood the doc resDummy2 and 3 cannot be startet when
>> > resDummy1 is stopped.
>>
>> Right concept, wrong order.  Its the other way around.
>> Did the docs not explain this?
>
> Yes. But I had to read it about five times to get the idea. I still had the
> idea if group, when the order is from top to bottom. Here the ordering is
> reversed. Very puzzeling, if you read for the first four times.

ok, i'll try to make it clearer
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.