<br><br><div class="gmail_quote">On Thu, Oct 13, 2011 at 4:29 AM, Lars Ellenberg <span dir="ltr">&lt;<a href="mailto:lars.ellenberg@linbit.com">lars.ellenberg@linbit.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Wed, Oct 12, 2011 at 07:41:20PM -0600, Serge Dubrouski wrote:<br>
&gt; On Wed, Oct 12, 2011 at 9:20 AM, Amar Prasovic &lt;<a href="mailto:amar@linux.org.ba">amar@linux.org.ba</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Thank you all for tips and suggestions. I managed to configure postgres so<br>
&gt; &gt; it actually starts.<br>
&gt; &gt;<br>
&gt; &gt; First, I updated resource-agents (Florian thanks for the tip, still don&#39;t<br>
&gt; &gt; know how did I manage to miss that :) )<br>
&gt; &gt; Second, I deleted postgres primitive, cleared all failcounts and configure<br>
&gt; &gt; it again like this:<br>
&gt; &gt;<br>
&gt; &gt; primitive postgres_res ocf:heartbeat:pgsql \<br>
&gt; &gt;         params pgctl=&quot;/usr/lib/postgresql/8.4/bin/pg_ctl&quot;<br>
&gt; &gt; psql=&quot;/usr/bin/psql&quot; start_opt=&quot;&quot; pgdata=&quot;/var/lib/postgresql/8.4/main&quot;<br>
&gt; &gt; config=&quot;/etc/postgresql/8.4/main/postgresql.conf&quot; pgdba=&quot;postgres&quot; \<br>
&gt; &gt;<br>
&gt; &gt;         op start interval=&quot;0&quot; timeout=&quot;120s&quot; \<br>
&gt; &gt;         op stop interval=&quot;0&quot; timeout=&quot;120s&quot; \<br>
&gt; &gt;         op monitor interval=&quot;30s&quot; timeout=&quot;30s&quot; depth=&quot;0&quot;<br>
&gt; &gt;<br>
&gt; &gt; After that, it all worked like a charm.<br>
&gt; &gt;<br>
&gt; &gt; However, I noticed some strange output in the log file, it wasn&#39;t there<br>
&gt; &gt; before I updated the resource-agents.<br>
&gt; &gt;<br>
&gt; &gt; Here is the extract from the syslog:<br>
&gt; &gt;<br>
&gt; &gt; <a href="http://pastebin.com/ybPi0VMp" target="_blank">http://pastebin.com/ybPi0VMp</a><br>
&gt; &gt;<br>
&gt; &gt; (postgres_res:monitor:stderr) [: 647: monitor: unexpected operator<br>
&gt; &gt;<br>
&gt; &gt; This error is actually reported with any operator. I tried to start the<br>
&gt; &gt; script from CLI, I got the same thing with ./pgsql start, ./pgsql status,<br>
&gt; &gt; ./pgsql stop<br>
&gt; &gt;<br>
&gt;<br>
&gt; Weird. I don&#39;t know what to tell. The RA is basically all right, it just<br>
&gt; misses one nor very important fix. On my system CentOS 5. PosgreSQL 8.4 or<br>
&gt; 9.0 it doesn&#39;t produce any errors. If understand you log right the problem<br>
&gt; is in line 647 of the RA which is:<br>
&gt;<br>
&gt; [ &quot;$1&quot; == &quot;validate-all&quot; ] &amp;&amp; exit $rc<br>
<br>
</div></div> &quot;==&quot; != &quot;=&quot;<br>
<br></blockquote><div><br>Theoretically yes &quot;=&quot; is for strings and &quot;==&quot; is for numbers. But why it would create a problem on Debian and not on CentOS and why nobody else reported this issue so far? <br>
<br>BTW, other RAs use  &quot;==&quot; operator as well: apache, LVM, portblock, <br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Make that [ &quot;$1&quot; = &quot;validate-all&quot; ] &amp;&amp; exit $rc<br>
<font color="#888888"><br>
<br>
--<br>
: Lars Ellenberg<br>
: LINBIT | Your Way to High Availability<br>
: DRBD/HA support and consulting <a href="http://www.linbit.com" target="_blank">http://www.linbit.com</a><br>
</font><div><div></div><div class="h5"><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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Serge Dubrouski.<br>