<div dir="ltr"><div><div>Thanks, it works. I replaced the "promote" to "start" in the constraint, and ora* resources start.<br></div>Also thanks for resource grouping advice.<br></div>lados.<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-02 16:26 GMT+01:00 Ken Gaillot <span dir="ltr"><<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, 2018-03-02 at 11:53 +0100, Mevo Govo wrote:<br>
><br>
> Hi, <br>
><br>
> I am new in pacemaker, corosync and on this list. <br>
> I created a cluster (based on "Clusters from Scratch" doc). The DRBD<br>
> and my filesystem on it work fine. Then I add an oracle and oralsnr<br>
> resource. But these oracle resources remain stopped. I can start and<br>
> stop the ora resources well by "pcs resource debug-start". (I can<br>
> login into database, lsnrctl status ...). Could you help me, why do<br>
> not these resources start automatically? I do not see errors in<br>
> "/var/log/cluster/corosync.<wbr>log", only this:<br>
><br>
> Mar  1 10:44:40 xetest1 crmd[12440]: warning: Input I_ELECTION_DC<br>
> received in state S_INTEGRATION from do_election_check<br>
> Mar  1 10:44:40 xetest1 pengine[12439]:  notice: On loss of CCM<br>
> Quorum: Ignore<br>
> Mar  1 10:44:40 xetest1 pengine[12439]:  notice: Start  <br>
> fs_drbd1#011(xetest1)<br>
> Mar  1 10:44:40 xetest1 pengine[12439]:  notice: Start  <br>
> ora_listener#011(xetest1 - blocked)<br>
> Mar  1 10:44:40 xetest1 pengine[12439]:  notice: Start  <br>
> ora_db_xe#011(xetest1 - blocked)<br>
><br>
><br>
> [root@xetest1 /]# pcs status<br>
> Cluster name: cluster_xetest<br>
> Stack: corosync<br>
> Current DC: xetest2 (version 1.1.16-12.el7-94ff4df) - partition with<br>
> quorum<br>
> Last updated: Fri Mar  2 10:03:04 2018<br>
> Last change: Fri Mar  2 10:02:48 2018 by root via cibadmin on xetest1<br>
><br>
> 2 nodes configured<br>
> 5 resources configured<br>
><br>
> Online: [ xetest1 xetest2 ]<br>
><br>
> Full list of resources:<br>
><br>
>  Master/Slave Set: drbd1_sync [drbd1]<br>
>      Masters: [ xetest1 ]<br>
>      Slaves: [ xetest2 ]<br>
>  fs_drbd1       (ocf::heartbeat:Filesystem):  <wbr>  Started xetest1<br>
>  ora_listener   (ocf::heartbeat:oralsnr):     <wbr>  Stopped<br>
>  ora_db_xe      (ocf::heartbeat:oracle):      <wbr>  Stopped<br>
><br>
> Daemon Status:<br>
>   corosync: active/disabled<br>
>   pacemaker: active/disabled<br>
>   pcsd: active/disabled<br>
> [root@xetest1 /]#<br>
><br>
> # I created oracle resources by these commands (OCFMON user also<br>
> created successful during debug-start)<br>
><br>
> pcs -f clust_ora_cfg_tmp resource create ora_listener<br>
> ocf:heartbeat:oralsnr \<br>
>   sid="XE" \<br>
>   home="/u01/app/oracle/product/<wbr>11.2.0/xe" \<br>
>   user="oracle" \<br>
>   listener="LISTENER" \<br>
>   op monitor interval=30s<br>
><br>
> pcs -f clust_ora_cfg_tmp constraint colocation add ora_listener with<br>
> fs_drbd1 INFINITY<br>
> pcs -f clust_ora_cfg_tmp constraint order promote fs_drbd1 then start<br>
> ora_listener<br>
<br>
</div></div>^^^ fs_drbd1 is not a master/slave resource, so it can't be promoted<br>
<br>
I'm guessing you want to colocate fs_drbd1 with the master role of<br>
drbd1_sync (and order it after the promote of that).<br>
<br>
If you want ora_listener and then ora_db_exe to start in order after<br>
that, I'd group fs_drbd1, ora_listener, and ora_db_exe, then<br>
colocate/order the group with the master role of drbd1_sync.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> pcs -f clust_ora_cfg_tmp resource create ora_db_xe<br>
> ocf:heartbeat:oracle \<br>
>   sid="XE" \<br>
>   home="/u01/app/oracle/product/<wbr>11.2.0/xe" \<br>
>   user="oracle" \<br>
>   monuser="OCFMON" \<br>
>   monpassword="******" \<br>
>   shutdown_method="immediate" \<br>
>   op monitor interval=30s<br>
><br>
> pcs -f clust_ora_cfg_tmp constraint colocation add ora_db_xe with<br>
> ora_listener INFINITY<br>
> pcs -f clust_ora_cfg_tmp constraint order promote ora_listener then<br>
> start ora_db_xe<br>
><br>
> pcs -f clust_ora_cfg_tmp constraint<br>
> pcs -f clust_ora_cfg_tmp resource show<br>
><br>
> pcs cluster cib-push clust_ora_cfg_tmp<br>
> pcs status<br>
><br>
> Thanks: lados.<br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Ken Gaillot <<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>><br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</font></span></blockquote></div><br></div>