Re: [Pacemaker] Dependency Trees

2013-02-26 Thread Dejan Muhamedagic
On Tue, Feb 26, 2013 at 11:31:52AM +1100, Andrew Beekhof wrote: > On Tue, Feb 26, 2013 at 2:00 AM, Dejan Muhamedagic > wrote: > > On Fri, Feb 22, 2013 at 11:39:52AM +1100, Andrew Beekhof wrote: > >> On Fri, Feb 22, 2013 at 1:40 AM, Donald Stahl wrote: > >> >> No. > >> >> > >> >> [quote] > >> >>

Re: [Pacemaker] Dependency Trees

2013-02-25 Thread Andrew Beekhof
On Tue, Feb 26, 2013 at 2:00 AM, Dejan Muhamedagic wrote: > On Fri, Feb 22, 2013 at 11:39:52AM +1100, Andrew Beekhof wrote: >> On Fri, Feb 22, 2013 at 1:40 AM, Donald Stahl wrote: >> >> No. >> >> >> >> [quote] >> >> If you say "colocate A with B" and there is nowhere B is allowed to >> >> run, th

Re: [Pacemaker] Dependency Trees

2013-02-25 Thread Donald Stahl
> A little roundabout but you could create a dummy resource and make all the > resource colocate with it. Then as long as you don't stop the dummy each of > the other resources could stop/start independent of each other i.e.: > > colocation myset inf: ( app1 app2 app3 app4 ) dummy_res_for_colo_o

Re: [Pacemaker] Dependency Trees

2013-02-25 Thread Jake Smith
- Original Message - > From: "Donald Stahl" > To: "The Pacemaker cluster resource manager" > Sent: Monday, February 25, 2013 10:52:47 AM > Subject: Re: [Pacemaker] Dependency Trees > > > Bad? Choice? What is there for crms

Re: [Pacemaker] Dependency Trees

2013-02-25 Thread Donald Stahl
> Bad? Choice? What is there for crmsh to choose? This is what is > produced: > > > > > > > It does produces the XML above (and which I expected it to produce). Unfortunately- that XML doesn't do what I want it to do (it actually seems to have n

Re: [Pacemaker] Dependency Trees

2013-02-25 Thread Dejan Muhamedagic
On Fri, Feb 22, 2013 at 11:39:52AM +1100, Andrew Beekhof wrote: > On Fri, Feb 22, 2013 at 1:40 AM, Donald Stahl wrote: > >> No. > >> > >> [quote] > >> If you say "colocate A with B" and there is nowhere B is allowed to > >> run, then A wont be allowed to run either. > >> But once the cluster has f

Re: [Pacemaker] Dependency Trees

2013-02-21 Thread Andrew Beekhof
On Fri, Feb 22, 2013 at 11:57 AM, Donald Stahl wrote: >> I'm pretty sure the latter doesn't do anything (bad choice of defaults >> by the crmsh) because the set isn't colocated with anything. > It sets sequential=false for the items in that set and it definitely > behaves differently when I use it

Re: [Pacemaker] Dependency Trees

2013-02-21 Thread Donald Stahl
> I'm pretty sure the latter doesn't do anything (bad choice of defaults > by the crmsh) because the set isn't colocated with anything. It sets sequential=false for the items in that set and it definitely behaves differently when I use it. Without the ()'s if I stop the second service- the first o

Re: [Pacemaker] Dependency Trees

2013-02-21 Thread Andrew Beekhof
On Fri, Feb 22, 2013 at 11:39 AM, Andrew Beekhof wrote: > On Fri, Feb 22, 2013 at 1:40 AM, Donald Stahl wrote: >>> No. >>> >>> [quote] >>> If you say "colocate A with B" and there is nowhere B is allowed to >>> run, then A wont be allowed to run either. >>> But once the cluster has figured out wh

Re: [Pacemaker] Dependency Trees

2013-02-21 Thread Andrew Beekhof
On Fri, Feb 22, 2013 at 1:40 AM, Donald Stahl wrote: >> No. >> >> [quote] >> If you say "colocate A with B" and there is nowhere B is allowed to >> run, then A wont be allowed to run either. >> But once the cluster has figured out where they go, it doesn't stop >> them being started in parallel. >

Re: [Pacemaker] Dependency Trees

2013-02-21 Thread Jake Smith
- Original Message - > From: "Donald Stahl" > To: "Jake Smith" , "The Pacemaker cluster resource > manager" > Sent: Thursday, February 21, 2013 2:24:59 PM > Subject: Re: [Pacemaker] Dependency Trees > > > I think you may have mi

Re: [Pacemaker] Dependency Trees

2013-02-21 Thread Donald Stahl
> I think you may have missed a key piece - Sets. Requires more than 2 and > assumes at least one will be sequential. Not exactly. That may have been a poor example but what I was trying to achieve was the idea that these 2 services must run on the same host, but that neither one had to be runni

Re: [Pacemaker] Dependency Trees

2013-02-21 Thread Jake Smith
- Original Message - > From: "Donald Stahl" > To: "The Pacemaker cluster resource manager" > Sent: Thursday, February 21, 2013 9:40:06 AM > Subject: Re: [Pacemaker] Dependency Trees > > > No. > > > > [quote] > > If you s

Re: [Pacemaker] Dependency Trees

2013-02-21 Thread Donald Stahl
> It's of course possible to have that filesystem group and then reference > the group in dependencies, which can simplify some setups. True- but then you run into the problem of not being able to have groups of groups. So if I create a group for my filesystems- I can't create another group that in

Re: [Pacemaker] Dependency Trees

2013-02-21 Thread Lars Marowsky-Bree
On 2013-02-21T14:43:47, Andrew Beekhof wrote: > > I'd love to be able to create a group called "filesystem" that > > includes all of the file system mounts I have- and then be able to > > create a group that includes the listener, the IP, and the filesystem > > group- except you can't have a grou

Re: [Pacemaker] Dependency Trees

2013-02-21 Thread Lars Marowsky-Bree
On 2013-02-20T23:06:59, Donald Stahl wrote: > > On the one hand, you say OraListener1 and OraInstance1 need to be on > > the same node, but on the other you say they can start/stop > > individually. > There are maintenance reasons for some of these requirements- for > example the listener can onl

Re: [Pacemaker] Dependency Trees

2013-02-21 Thread Donald Stahl
> No. > > [quote] > If you say "colocate A with B" and there is nowhere B is allowed to > run, then A wont be allowed to run either. > But once the cluster has figured out where they go, it doesn't stop > them being started in parallel. > [/quote] > > in this case, A = OraListener1 and B = OraBin1

Re: [Pacemaker] Dependency Trees

2013-02-20 Thread Andrew Beekhof
On Thu, Feb 21, 2013 at 3:06 PM, Donald Stahl wrote: >> On the one hand, you say OraListener1 and OraInstance1 need to be on >> the same node, but on the other you say they can start/stop >> individually. > > There are maintenance reasons for some of these requirements- for > example the listener

Re: [Pacemaker] Dependency Trees

2013-02-20 Thread Donald Stahl
> On the one hand, you say OraListener1 and OraInstance1 need to be on > the same node, but on the other you say they can start/stop > individually. There are maintenance reasons for some of these requirements- for example the listener can only ever be on the same box as the database, but I might

Re: [Pacemaker] Dependency Trees

2013-02-20 Thread Andrew Beekhof
On Thu, Feb 21, 2013 at 1:51 PM, Donald Stahl wrote: >> shouldn't be too hard > Whenever you make something idiot proof, the universe invents a bigger idiot. :) > I'm that idiot I guess. Have you seen clusters from scratch? Its a pretty good starting point. >> use colocation constraints for th

Re: [Pacemaker] Dependency Trees

2013-02-20 Thread Donald Stahl
> shouldn't be too hard Whenever you make something idiot proof, the universe invents a bigger idiot. I'm that idiot I guess. > use colocation constraints for the things that need to run on the same node Except colocation resources also include order unless you specifically tell it that the items

Re: [Pacemaker] Dependency Trees

2013-02-20 Thread Andrew Beekhof
On Thu, Feb 21, 2013 at 7:49 AM, Donald Stahl wrote: > SUSE 11-SP2 with pacemaker-1.1.6-1.27.26 > > I apologize if this is obvious or has been answered before but my > foogle-fu is failing me. > > I'm trying to create a resource dependency tree similar to this one from VCS: > > // resource depende

[Pacemaker] Dependency Trees

2013-02-20 Thread Donald Stahl
SUSE 11-SP2 with pacemaker-1.1.6-1.27.26 I apologize if this is obvious or has been answered before but my foogle-fu is failing me. I'm trying to create a resource dependency tree similar to this one from VCS: // resource dependency tree group oracle01 { Oracle OraInstance1 { Mount OraBi