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 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-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 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 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 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 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 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

[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

Re: [Pacemaker] Listing all resources of a specific type

2013-02-20 Thread Donald Stahl
> Not using the crm shell, but cibadmin can do this via an xpath query. > For example: > > # cibadmin -Ql -A "//primitive[@type='o2cb']" > > Modify to taste. I was hoping to avoid having to parse XML but if that's the only option then that's what I'll use. Thanks, -Don ___

[Pacemaker] Listing all resources of a specific type

2013-02-19 Thread Donald Stahl
Is there some way of listing all resources that use a specific resource agent using crm shell? For example: # crm resource list stonith-sbd(stonith:external/sbd) Started IP1 (ocf::heartbeat:IPaddr2) Started IP2 (ocf::heartbeat:IPaddr2) Started FS1 (ocf::heartbeat:Filesystem) Started FS2