Rex -<br><br>To get quicker answer you should use this list.<br><br>Anyway it&#39;s hard to tell what is the problem without log files and crm_mon output.<br><br>Does you drbd works all right? Are you able to start postgres outside of Pacemaker? <br>
<br><div class="gmail_quote">On Tue, Jan 24, 2012 at 1:50 PM, Rex Zhen <span dir="ltr">&lt;<a href="mailto:rex.zhen@nextissuemedia.com">rex.zhen@nextissuemedia.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 style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>Hi Sir,</div><div><br></div><div>The postgreSQL won&#39;t start through the resource agent.</div><div><br></div><div>Here is my configure file</div>
<div><br></div><div><div>node db-3</div><div>node db-4</div><div>primitive db_drbd ocf:linbit:drbd \</div><div><span style="white-space:pre-wrap">        </span>params drbd_resource=&quot;drbd_pgsql&quot; \</div><div><span style="white-space:pre-wrap">        </span>op monitor interval=&quot;60&quot;</div>
<div>primitive db_fs ocf:heartbeat:Filesystem \</div><div><span style="white-space:pre-wrap">        </span>params device=&quot;/dev/drbd0&quot; directory=&quot;/var/lib/postgresql&quot; fstype=&quot;ext4&quot; \</div><div><span style="white-space:pre-wrap">        </span>meta target-role=&quot;Started&quot;</div>
<div>primitive db_ip ocf:heartbeat:IPaddr2 \</div><div><span style="white-space:pre-wrap">        </span>params ip=&quot;192.168.100.63&quot; \</div><div><span style="white-space:pre-wrap">        </span>op monitor interval=&quot;10s&quot; \</div>
<div><span style="white-space:pre-wrap">        </span>meta target-role=&quot;Started&quot;</div><div>primitive db_stonith stonith:external/ssh \</div><div><span style="white-space:pre-wrap">        </span>params hostlist=&quot;db-3 db-4&quot;</div>
<div>primitive pgsql ocf:heartbeat:pgsql \</div><div><span style="white-space:pre-wrap">        </span>params pgctl=&quot;/usr/lib/postgresql/9.1/bin/pg_ctl&quot; psql=&quot;/usr/lib/postgresql/9.1/bin/psql&quot; pgdata=&quot;/var/lib/postgresql/9.1/main&quot; pgdba=&quot;postgres&quot; start_opt=&quot;&quot; \</div>
<div><span style="white-space:pre-wrap">        </span>op monitor interval=&quot;10s&quot; timeout=&quot;20s&quot; depth=&quot;0&quot; \</div><div><span style="white-space:pre-wrap">        </span>meta target-role=&quot;Started&quot;</div>
<div>group postgres db_fs db_ip</div><div>ms db_ms db_drbd \</div><div><span style="white-space:pre-wrap">        </span>meta master-max=&quot;1&quot; master-node-max=&quot;1&quot; clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot;</div>
<div>clone fencing db_stonith \</div><div><span style="white-space:pre-wrap">        </span>meta target-role=&quot;Started&quot;</div><div>colocation fs-with-maskter inf: db_fs db_ms:Master</div><div>colocation ip-with-maskter inf: db_ip db_ms:Master</div>
<div>colocation pg-with-fs inf: pgsql db_fs</div><div>order drbd-after-fs inf: db_ms:promote postgres:start</div><div>property $id=&quot;cib-bootstrap-options&quot; \</div><div><span style="white-space:pre-wrap">        </span>dc-version=&quot;1.0.9-unknown&quot; \</div>
<div><span style="white-space:pre-wrap">        </span>cluster-infrastructure=&quot;openais&quot; \</div><div><span style="white-space:pre-wrap">        </span>expected-quorum-votes=&quot;2&quot; \</div><div><span style="white-space:pre-wrap">        </span>default-resource-stickiness=&quot;100&quot; \</div>
<div><span style="white-space:pre-wrap">        </span>no-quorum-policy=&quot;ignore&quot; </div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div><br></div><div>Rex Zhen</div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>Serge Dubrouski.<br>