On 8/14/07, matilda matilda <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm using HAv2 and after trying several things I'm stuck and I don't know > if it's even possible. I can only achieve a subset of my requirements but > not all together. > As I think that my requirement is really common I hope that you can help > me or give me the right hints. Probably someone has solved it. > > To my requirements: > > - I have a resource Y which depends on resource X (e.g. server depends on > filesystem). > - Y must run on the same node as X. (ok, colocation) > - when X ist stopped (target_role=stop) Y must be stopped by HA (ok, > colocation) > - when Y is stopped (target_role=stopped) X should NOT stop. (ok, asymetrical > colocation > from Y to X) > - Y should run on a preferred node (mmmhh, as Y depends on X, I can set a > location > constraint to X for that node, that would pull Y behind X, if I set a > location constraint > to Y I get trouble because of the asymetrical colocation and the location > constraint, not good) > - If Y fails one or some times on a node it should be moved to the other node > (mmm, as I have a asymetrical colocation it would not be moves as X is still > alive on node1, > so I don't get failover; I seems that only a group does the thing, BUT if I > set target_role=stopped > for Y the whole group of X and Y would be stopped, waht I don't LIKE) > > Is there a way to achieve what I want? > > In general: There is a dependency chain X -> Y, meaning X must run that Y can > run, but Y can be > stopped (target_role=stopped), BUT Y has a preferred node, that means, as > soon as Y is started > it should force X to move to that node as X is a prerequisite. And: When Y > fails over, it should > pull X as a prerequisite behind itself.
odd - that should work already oh, try setting the priority of Y so that its greater than X (resources are processed in order of priority) that will ensure Y's preferences (ie. that it cant run somewhere) are passed on to X if that doesn't work - please attach the output of "cibadmin -Q" > Is there a proper way to stop a member of a group without stopping the other > members > bcause of the group constraint? anything later will always be stopped unless the group isnt managed _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
