<br>Apologies there - a quick read and I missed the colocation part.<br><br>Thanks,<br><br>Joe<br><br><br><div class="gmail_quote">On Mon, Apr 26, 2010 at 11:59 PM, Matthew Sackman <span dir="ltr"><<a href="mailto:matthew@lshift.net">matthew@lshift.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Joe,<br>
<div class="im"><br>
On Mon, Apr 26, 2010 at 11:48:12PM +1000, Joe Healy wrote:<br>
> Thanks - this is a great guide for ha rabbit.<br>
<br>
</div>Good to hear!<br>
<div class="im"><br>
> We've been using a similar set up for a couple of months with iscsi instead<br>
> of drdb.<br>
<br>
</div>Yup. I was simply using drbd because it's pretty much the lowest common<br>
denominator - (e)nbd would also be possible (over RAID 1), but that's<br>
more fiddly. iscsi / NAS / SAN and such ilk would, I'd expect, give<br>
better results.<br>
<div class="im"><br>
> Do you need to add resource grouping or colocation to the bunny and ip<br>
> resources to make sure that they move together? Is it important that the ip<br>
> migrates before the bunny starts so that it will listen on the right<br>
> address?<br>
<br>
</div>Yes and yes:<br>
<br>
"crm(ip)# configure primitive ip ocf:heartbeat:IPaddr2 params ip="192.168.50.1" cidr_netmask="24"<br>
crm(ip)# configure colocation bunny_on_ip inf: bunny ip<br>
crm(ip)# configure order bunny_after_ip inf: ip bunny<br>
<br>
This should all be looking rather familiar by now. We create the ip<br>
resource, we say that the bunny resource must run on the same node as<br>
the ip resource, and we make sure that the bunny resource is started<br>
after, and stopped before, the ip resource."<br>
<br>
These are necessary steps - sure, you could have bunny just listen on<br>
0.0.0.0 which is the default, but if the network i/f isn't there when it<br>
starts then there may be problems. I'm not quite sure what the IPaddr2<br>
script is doing, but it's clearly at least slightly magic - the<br>
interface doesn't show up in the output of ifconfig. In general, I found<br>
things more reliable if the IP address is already there before bunny<br>
starts up.<br>
<font color="#888888"><br>
Matthew<br>
</font></blockquote></div><br>