[Linux-HA] Need a rule

2007-07-25 Thread matilda matilda
Hi all, I want to accomplish the following behaviour for two resource A and B: * If A is running and B will be started, B should run on the same node as A * If A is NOT started and B will be started, B can be run whereever it wants. * If A is not running, B is running on node X, A is started on n

Re: [Linux-HA] Need a rule

2007-07-25 Thread Max Hofer
On Wednesday 25 July 2007, matilda matilda wrote: > Hi all, > > I want to accomplish the following behaviour for two > resource A and B: > > * If A is running and B will be started, B should run > on the same node as A > * If A is NOT started and B will be started, B can be > run whereever it wants

Re: [Linux-HA] Need a rule

2007-07-25 Thread Max Hofer
On Wednesday 25 July 2007, matilda matilda wrote: > >>> Max Hofer <[EMAIL PROTECTED]> 25.07.2007 12:12 >>> > > > > This is a simple assymetric co-location rule (since 2.0.8 all co-location > > rules are assymetric). > > > > This means write a rule that B follows A: > > > > Hi Max, > > that is exac

Re: [Linux-HA] Need a rule

2007-07-25 Thread Max Hofer
On Wednesday 25 July 2007, matilda matilda wrote: > Hi Max, > > >>> Max Hofer <[EMAIL PROTECTED]> 25.07.2007 14:33 >>> > > > > It really would help if you just attached the CIB before and after you > > started resource A. ;-) > > I thought it would be easier this way. :-)) > > > [...many many valu

Re: Re: [Linux-HA] Need a rule

2007-07-25 Thread matilda matilda
>>> Max Hofer <[EMAIL PROTECTED]> 25.07.2007 12:12 >>> > This is a simple assymetric co-location rule (since 2.0.8 all co-location > rules are assymetric). > > This means write a rule that B follows A: > Hi Max, that is exactly what I thought, too. BUT: With this constraint, if A is NOT starte

Re: Re: [Linux-HA] Need a rule

2007-07-25 Thread matilda matilda
Hi Max, >>> Max Hofer <[EMAIL PROTECTED]> 25.07.2007 14:33 >>> > It really would help if you just attached the CIB before and after you > started > resource A. ;-) I thought it would be easier this way. :-)) > [...many many valuable informations...] Thank you for the informations and the ti

Re: Re: [Linux-HA] Need a rule

2007-07-25 Thread matilda matilda
Hi Max, >>> Max Hofer <[EMAIL PROTECTED]> 25.07.2007 15:55 >>> > [...] (not to mention that my english is not the best). [...] You can write it in Austrian if you like... ;-)) Best regards Andreas Mock ___ Linux-HA mailing list Linux-HA@lists.linux-

Re: Re: [Linux-HA] Need a rule

2007-07-30 Thread Andrew Beekhof
On 7/25/07, matilda matilda <[EMAIL PROTECTED]> wrote: > >>> Max Hofer <[EMAIL PROTECTED]> 25.07.2007 12:12 >>> > > This is a simple assymetric co-location rule (since 2.0.8 all co-location > > rules are assymetric). > > > > This means write a rule that B follows A: > > > > Hi Max, > > that is exa

Re: Re: [Linux-HA] Need a rule (added)

2007-07-25 Thread matilda matilda
Hi Max, hi all, for all who want to follow up, attached the needed files: * cluster-options.xml : all options explicit * r-A.xml (resource definition and constraints for resource A) * r-B.xml (resource definition and constraints for resource B) * WARNING: My nodes are called db01 and db02. You ha

Re: Re: [Linux-HA] Need a rule (added)

2007-08-16 Thread Andrew Beekhof
On 7/25/07, matilda matilda <[EMAIL PROTECTED]> wrote: > Hi Max, hi all, > > for all who want to follow up, attached the needed files: > * cluster-options.xml : all options explicit > * r-A.xml (resource definition and constraints for resource A) > * r-B.xml (resource definition and constraints for

Re: Re: [Linux-HA] Need a rule (added)

2007-08-16 Thread Christian Rishøj
On 8/16/07, Andrew Beekhof <[EMAIL PROTECTED]> wrote: > On 7/25/07, matilda matilda <[EMAIL PROTECTED]> wrote: > > * all resources do have target_role=stopped > > * try to start r_B (target_role=started) > > * it doesn't start here. > > not sure if this was a question or an answer, but because of

Re: Re: [Linux-HA] Need a rule (added)

2007-08-16 Thread matilda matilda
>>> "Christian Rishøj" <[EMAIL PROTECTED]> 08/16/07 11:11 PM >>> > Just to further my understanding of colocation constraints: Does this > also imply that B will stop/relocate if A fails, or does it take an >extra rule to achieve that? If you have resource A and B and an asymetrical colocation con