<div dir="ltr">Hi Emmanuel,<div><br></div><div>Thank you!<br></div><div><br></div><div style>Cristiane.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 8, 2013 at 2:55 PM, emmanuel segura <span dir="ltr"><<a href="mailto:emi2fast@gmail.com" target="_blank">emi2fast@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You need a order constrain<br><br>order fs_after_ms inf: drbd_sistema:promote sistema_fs:start<br>order pgsql_afterLfs inf: sistema_fs postgresql<br>
<br>Or maybe you can put fs and pgsql in a group, like that you can use a contrais like this<br>
<br>order foo inf: drbd_sistema:promote myservicegroup:start<br><br><br><br><div class="gmail_quote">2013/3/8 Cristiane França <span dir="ltr"><<a href="mailto:cristianedefranca@gmail.com" target="_blank">cristianedefranca@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hi, </div><div>My cluster is presenting error on startup of the service postgresql because this service is being initialized before mounting the partition /sistema.</div>
<div><br></div><div>How can I configure Pacemaker to start the Postgresql only after mounting the partition /sistema?</div>
<div><br></div><div><br></div><div>My server configuration:</div><div><br></div><div>primitive drbd_sistema ocf:linbit:drbd \</div><div> params drbd_resource="sistema" \</div><div> op monitor interval="15s"</div>
<div>primitive sistema_fs ocf:heartbeat:Filesystem \</div><div> params device="/dev/drbd2" directory="/sistema" fstype="ext4"</div><div><br></div><div><br></div><div>... </div><div><br>
</div><div>primitive postgresql ocf:heartbeat:pgsql \</div><div> params pgctl="/usr/bin/pg_ctl" psql="/usr/bin/psql" start_opt="" pgdata="/sistema/pgsql/data/" config="/sistema/pgsql/data/postgresq</div>
<div>l.conf" pgdba="postgres" \</div><div> op start interval="0" timeout="120s" \</div><div> op stop interval="0" timeout="120s" \</div><div> op monitor interval="30s" timeout="30s" depth="0" \</div>
<div> meta target-role="Started"</div><div><br></div><div><br></div><div><br></div><div>Regards,</div><div>Cristiane</div></div>
<br></div></div>_______________________________________________<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/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>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera
</font></span><br>_______________________________________________<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>
<br></blockquote></div><br></div>