order mysql_after_drbd inf: ms_drbd_mysql:promote mysql:start<br><br>is committed ok, but it doesn&#39;t show right in the configuration:<br><br>primitive fs_mysql ocf:heartbeat:Filesystem \<br>        params device=&quot;/dev/drbd0&quot; directory=&quot;/service/&quot; fstype=&quot;ext3&quot;<br>

primitive ip_mysql ocf:heartbeat:IPaddr2 \<br>        params ip=&quot;192.168.1.72&quot; nic=&quot;eth2:0&quot;<br>primitive mysqld lsb:mysql<br>primitive apache lsb:apache2<br>primitive drbd_mysql ocf:linbit:drbd \<br>        params drbd_resource=&quot;r0&quot; \<br>

        operations $id=&quot;drbd_mysql-ops&quot; \<br>        op monitor interval=&quot;15s&quot;<br>group mysql fs_mysql ip_mysql mysqld apache<br>ms ms_drbd_mysql drbd_mysql \<br>        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;<br>

colocation mysql_on_drbd INFINITY: mysql ms_drbd_mysql:Master<br>order mysql_after_drbd INFINITY:<br>property $id=&quot;cib-bootstrap-options&quot; \<br>        dc-version=&quot;1.0.1-node: 27be064e090742359bbdd1914f9d7dd363c8e0d8&quot; \<br>

        no-quorum-policy=&quot;ignore&quot; \<br>        stonith-enabled=&quot;false&quot; \<br>        default-resource-stickiness=&quot;1000&quot;<br><br>And if i exit crm and enter again i get:<br><br>alpha:/ # crm<br>
crm(live)# configure<br>ERROR: syntax : order mysql_after_drbd INFINITY:<br>crm(live)configure# show<br>ERROR: object mysql_after_drbd cannot be represented in the CLI notation<br>crm(live)configure#<br><br>I&#39;m attaching my log.<br>
<br>Thanks.<br><br><div class="gmail_quote">
On Wed, Oct 14, 2009 at 1:21 PM, Dejan Muhamedagic <span dir="ltr">&lt;<a href="mailto:dejanmm@fastmail.fm" target="_blank">dejanmm@fastmail.fm</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi,<br>
<div><br>
On Wed, Oct 14, 2009 at 12:13:42PM +0200, Johan Verrept wrote:<br>
&gt; Sorry, I missed that. Was already wondering why the error was so<br>
&gt; cryptic.<br>
&gt;<br>
&gt; It is definatly possible, I use it myself:<br>
&gt;<br>
&gt; order drbd-before-master-group inf: ms-drbd0:promote master-group:start<br>
&gt;<br>
&gt; And master-group is a group with 3 primitives.<br>
&gt;<br>
&gt; Maybe try the inf: instead of the mandatory: ?<br>
<br>
</div>Maybe, that&#39;s equal, though mandatory should work fine as well.<br>
<br>
The only way to figure out what&#39;s going on is to take a look at<br>
the logs.<br>
<br>
Thanks,<br>
<font color="#888888"><br>
Dejan<br>
</font><div><div></div><div><br>
&gt; FYI, I am on pacemaker 1.0.5.<br>
&gt;<br>
&gt;       J.<br>
&gt;<br>
&gt; On Wed, 2009-10-14 at 13:11 +0300, Stratos Zolotas wrote:<br>
&gt; &gt; As you can see in the config, I have a group named mysql that includes<br>
&gt; &gt; fs_mysql, ip_mysql, mysqld, apache primitives.<br>
&gt; &gt;<br>
&gt; &gt; The expecting result is to start this group after ms_drbd_mysql is<br>
&gt; &gt; promoted to one of the nodes.<br>
&gt; &gt;<br>
&gt; &gt; Is this wrong? Should I try a different approach?<br>
&gt; &gt;<br>
&gt; &gt; Stratos.<br>
&gt; &gt;<br>
&gt; &gt; On Wed, Oct 14, 2009 at 1:02 PM, Johan Verrept &lt;<a href="mailto:Johan.Verrept@able.be" target="_blank">Johan.Verrept@able.be</a>&gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt;         I don&#39;t know if it is your only problem but in the order you<br>
&gt; &gt;         refer to<br>
&gt; &gt;         primitive &quot;mysql&quot; while in your configuration you have<br>
&gt; &gt;         primitive<br>
&gt; &gt;         &quot;mysqld&quot;. Note the &quot;d&quot;.<br>
&gt; &gt;         Other than that, the order constraint looks like mine.<br>
&gt; &gt;<br>
&gt; &gt;                J.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;         On Wed, 2009-10-14 at 12:59 +0300, Stratos Zolotas wrote:<br>
&gt; &gt;         &gt; Hello again.<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; After struggling with the latest versions, i decided to try<br>
&gt; &gt;         with the<br>
&gt; &gt;         &gt; versions in the standard opesuse repos, that means:<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; openais 0.80.3<br>
&gt; &gt;         &gt; libopenais2 0.80.3<br>
&gt; &gt;         &gt; pacemaker 1.0.1<br>
&gt; &gt;         &gt; libpacemaker3 1.0.1<br>
&gt; &gt;         &gt; heartbeat 2.99.3<br>
&gt; &gt;         &gt; heartbeat-common 2.99.3<br>
&gt; &gt;         &gt; heartbeat-resources 2.99.3<br>
&gt; &gt;         &gt; libheartbeat2 2.99.3<br>
&gt; &gt;         &gt; OpenIPMI 2.0.14<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; It seems to work ok, the nodes are communicating and i can<br>
&gt; &gt;         connect to<br>
&gt; &gt;         &gt; cib and create configuration, but i cannot configure an<br>
&gt; &gt;         order<br>
&gt; &gt;         &gt; constraint in the configuration file.<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; I try this:<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; order mysql_after_drbd mandatory: ms_drbd_mysql:promote<br>
&gt; &gt;         mysql:start<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; But when i try to commit i get:<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; Call cib_create failed (-47): Update does not conform to the<br>
&gt; &gt;         &gt; configured schema/DTD<br>
&gt; &gt;         &gt; &lt;null&gt;<br>
&gt; &gt;         &gt; ERROR: could not create mysql_after_drbd<br>
&gt; &gt;         &gt; offending xml: &lt;rsc_order first=&quot;ms_drbd_mysql&quot;<br>
&gt; &gt;         first-action=&quot;promote&quot;<br>
&gt; &gt;         &gt; id=&quot;mysql_after_drbd&quot; score=&quot;inf&quot; then=&quot;mysql&quot;<br>
&gt; &gt;         then-action=&quot;start&quot;/&gt;<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; Am I doing something wrong?<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; The rest of the configuration is accepted and is:<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; primitive fs_mysql ocf:heartbeat:Filesystem \<br>
&gt; &gt;         &gt;         params device=&quot;/dev/drbd0&quot; directory=&quot;/service/&quot;<br>
&gt; &gt;         fstype=&quot;ext3&quot;<br>
&gt; &gt;         &gt; primitive ip_mysql ocf:heartbeat:IPaddr2 \<br>
&gt; &gt;         &gt;         params ip=&quot;192.168.1.72&quot; nic=&quot;eth2:0&quot;<br>
&gt; &gt;         &gt; primitive mysqld lsb:mysql<br>
&gt; &gt;         &gt; primitive apache lsb:apache2<br>
&gt; &gt;         &gt; primitive drbd_mysql ocf:linbit:drbd \<br>
&gt; &gt;         &gt;         params drbd_resource=&quot;r0&quot; \<br>
&gt; &gt;         &gt;         operations $id=&quot;drbd_mysql-ops&quot; \<br>
&gt; &gt;         &gt;         op monitor interval=&quot;15s&quot;<br>
&gt; &gt;         &gt; group mysql fs_mysql ip_mysql mysqld apache<br>
&gt; &gt;         &gt; ms ms_drbd_mysql drbd_mysql \<br>
&gt; &gt;         &gt;         meta master-max=&quot;1&quot; master-node-max=&quot;1&quot;<br>
&gt; &gt;         clone-max=&quot;2&quot;<br>
&gt; &gt;         &gt; clone-node-max=&quot;1&quot; notify=&quot;true&quot;<br>
&gt; &gt;         &gt; colocation mysql_on_drbd INFINITY: mysql<br>
&gt; &gt;         ms_drbd_mysql:Master<br>
&gt; &gt;         &gt; property $id=&quot;cib-bootstrap-options&quot; \<br>
&gt; &gt;         &gt;         dc-version=&quot;1.0.1-node:<br>
&gt; &gt;         &gt; 27be064e090742359bbdd1914f9d7dd363c8e0d8&quot; \<br>
&gt; &gt;         &gt;         no-quorum-policy=&quot;ignore&quot; \<br>
&gt; &gt;         &gt;         stonith-enabled=&quot;false&quot; \<br>
&gt; &gt;         &gt;         default-resource-stickiness=&quot;1000&quot;<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; Thanks in advance<br>
&gt; &gt;         &gt;<br>
&gt; &gt;         &gt; Stratos.<br>
&gt; &gt;         &gt;<br>
&gt; &gt;<br>
&gt; &gt;         &gt; _______________________________________________<br>
&gt; &gt;         &gt; Pacemaker mailing list<br>
&gt; &gt;         &gt; <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
&gt; &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;<br>
&gt; &gt;         _______________________________________________<br>
&gt; &gt;         Pacemaker mailing list<br>
&gt; &gt;         <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">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;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Kernel IT Solutions Ltd<br>
&gt; &gt; <a href="http://www.kernelit.gr" target="_blank">http://www.kernelit.gr</a><br>
&gt; &gt;<br>
&gt; &gt; Cyclades Wireless Network<br>
&gt; &gt; <a href="http://www.cywn.gr" target="_blank">http://www.cywn.gr</a><br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Pacemaker mailing list<br>
&gt; &gt; <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">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;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list<br>
&gt; <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">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>
<br>
_______________________________________________<br>
Pacemaker mailing list<br>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Kernel IT Solutions Ltd<br><a href="http://www.kernelit.gr" target="_blank">http://www.kernelit.gr</a><br><br>Cyclades Wireless Network<br><a href="http://www.cywn.gr" target="_blank">http://www.cywn.gr</a><br>