<div dir="ltr">example: colocation ipwithpgsql inf: virtualip psql:Master<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-17 6:25 GMT+01:00 Tomasz Kontusz <span dir="ltr">&lt;<a href="mailto:tomasz.kontusz@gmail.com" target="_blank">tomasz.kontusz@gmail.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Andrew Beekhof &lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt; napisał:<br>
<div class="">&gt;<br>
&gt;On 16 Feb 2014, at 6:53 am, emmanuel segura &lt;<a href="mailto:emi2fast@gmail.com">emi2fast@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; i think, if you use pacemaker_remote inside the container, the<br>
&gt;container will be a normal node of you cluster, so you can run pgsql +<br>
&gt;vip in it<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2014-02-15 19:40 GMT+01:00 Tomasz Kontusz &lt;<a href="mailto:tomasz.kontusz@gmail.com">tomasz.kontusz@gmail.com</a>&gt;:<br>
&gt;&gt; Hi<br>
&gt;&gt; I&#39;m setting up a cluster which will use OpenVZ containers for<br>
&gt;separating resource&#39;s environments.<br>
&gt;&gt; So far I see it like this:<br>
&gt;&gt;  * each node runs Pacemaker<br>
&gt;&gt;  * each container runs pacemaker_remote, and one kind of resource<br>
&gt;(but there might be multiple containers providing the same resource)<br>
&gt;&gt;  * containers are started with VirtualDomain agent (I had to patch it<br>
&gt;a bit to work around libvirt/OpenVZ issue),<br>
&gt;&gt;    each container resource is node-specific (and constrained to only<br>
&gt;run on the right node)<br>
&gt;&gt;<br>
&gt;&gt; The problem I have is with running pgsql database with virtual IP in<br>
&gt;such setup.<br>
&gt;&gt; I want to have IPaddr2 resource started on the node that holds<br>
&gt;container with current pgsql master.<br>
&gt;&gt; How can I go about achieving something like that?<br>
&gt;<br>
&gt;Colocate the IP with the OpenVZ VM?<br>
<br>
</div>Won&#39;t work, because the containers are normally all running (psql01 on node 01, psql02 on node 02), and I want to collocate with current master.<br>
<div class=""><br>
&gt;&gt; Is the idea of using pacemaker_remote in such setup sensible?<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Tomasz Kontusz<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt;&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;&gt;<br>
&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; Getting started:<br>
&gt;<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; esta es mi vida e me la vivo hasta que dios quiera<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt;&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;&gt;<br>
&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; Getting started:<br>
&gt;<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
</div>&gt;------------------------------------------------------------------------<br>
<div class="im HOEnZb">&gt;<br>
&gt;_______________________________________________<br>
&gt;Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt;<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt;Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt;Getting started:<br>
&gt;<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
--<br>
</div><div class="im HOEnZb">Wysłane za pomocą K-9 Mail.<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/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/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera
</div>