<br><div class="gmail_quote">On 30 October 2010 19:55, Lars Kellogg-Stedman <span dir="ltr"><<a href="mailto:lars@oddbit.com">lars@oddbit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a two node cluster that hosts two virtual ips on the same network:<br>
<br>
primitive proxy_0_ip ocf:heartbeat:IPaddr \<br>
params ip="10.10.10.20" cidr_netmask="255.255.255.0" nic="eth3"<br>
primitive proxy_1_ip ocf:heartbeat:IPaddr \<br>
params ip="10.10.10.30" cidr_netmask="255.255.255.0" nic="eth3"<br>
<br>
After the ip address comes up, the system must establish a network<br>
route and a default route. I'm having trouble defining the<br>
relationships between these services. I started with this:<br>
<br>
primitive public_net_route ocf:heartbeat:Route \<br>
params destination="<a href="http://10.10.10.0/24" target="_blank">10.10.10.0/24</a>"<br>
device="eth3" table="1"<br>
primitive public_def_route ocf:heartbeat:Route \<br>
params destination="default" gateway="10.10.10.1"<br>
device="eth3" table="1"<br>
<br>
clone clone_public_def_route public_def_route<br>
clone clone_public_net_route public_net_route<br></blockquote><div><br></div><div>why do you need/want to clone these 2 resources?</div><div>For me would make more to 1 group per IP and place the resources in the order you want</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
But having got this before, I don't understand how to estbalish the<br>
necessary ordering between the routes and the ip address resources.<br>
The clones can't come up on a host until one of the ip addresses are<br>
available on the host. In other words, the cloned resources cannot be<br>
active on a host unless an ip address resource is also active on that<br>
host.<br>
<br>
I tried this:<br>
<br>
order ip_0_before_routes inf: proxy_0_ip clone_public_net_route<br>
order ip_1_before_routes inf: proxy_1_ip clone_public_net_route<br>
order net_route_before_def_route \<br>
inf: clone_public_net_route clone_public_def_route<br>
<br>
...but the clone services in this case don't start unless both ips are<br>
started. Shutting down either ip takes down *all* of the clone<br>
resources on both nodes.<br>
<br>
Is it possible to do what I want? This seems like exactly the same<br>
relationship that would exist betwee, say, a cloned Apache instance<br>
and a set of ip address resources, but I can't find a good example.<br>
<br></blockquote><div><br></div><div>I am not sure if you can place order constraints like this on clones.</div><div>Most experience users will know better</div><div><br></div><div>Cheers,</div><div>Pavlos</div><div> </div>
</div>