<div dir="ltr">i think, if you use pacemaker_remote inside the container, the container will be a normal node of you cluster, so you can run pgsql + vip in it<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-02-15 19:40 GMT+01:00 Tomasz Kontusz <span dir="ltr"><<a href="mailto:tomasz.kontusz@gmail.com" target="_blank">tomasz.kontusz@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
I'm setting up a cluster which will use OpenVZ containers for separating resource's environments.<br>
So far I see it like this:<br>
 * each node runs Pacemaker<br>
 * each container runs pacemaker_remote, and one kind of resource (but there might be multiple containers providing the same resource)<br>
 * containers are started with VirtualDomain agent (I had to patch it a bit to work around libvirt/OpenVZ issue),<br>
   each container resource is node-specific (and constrained to only run on the right node)<br>
<br>
The problem I have is with running pgsql database with virtual IP in such setup.<br>
I want to have IPaddr2 resource started on the node that holds container with current pgsql master.<br>
How can I go about achieving something like that?<br>
Is the idea of using pacemaker_remote in such setup sensible?<br>
<br>
--<br>
Tomasz Kontusz<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera
</div>