<HTML>
<HEAD>
<TITLE>Re: [Pacemaker] Unable to configure Pacemaker with cibadmin</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>It waits for a pretty long time, at least 30 seconds. &nbsp;The weird thing is if I use cibadmin &#8212;replace &#8212;xml-file cib.xml, it&#8217;s able to update the cib, but if I try to replace a particular scope, it fails.<BR>
<BR>
Kelly Wong<BR>
TXBU - Cisco Systems<BR>
<BR>
<BR>
On 7/31/11 7:00 PM, &quot;Andrew Beekhof&quot; &lt;<a href="andrew@beekhof.net">andrew@beekhof.net</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>On Sat, Jul 23, 2011 at 11:57 AM, Kelly Wong &lt;<a href="kellwong@cisco.com">kellwong@cisco.com</a>&gt; wrote:<BR>
&gt; Hello,<BR>
&gt;<BR>
&gt; I am trying to update the configuration of my cluster through the cibadmin<BR>
&gt; command, but the command always fails:<BR>
&gt;<BR>
&gt; cibadmin --replace --scope resources --xml-file r.xml<BR>
&gt; Call cib_replace failed (-41): Remote node did not respond<BR>
<BR>
That error is triggered by a timeout. &nbsp;How long does the command wait<BR>
before returning this error?<BR>
<BR>
&gt; &lt;null&gt;<BR>
&gt;<BR>
&gt; I was able to replace the initial blank configuration, but updating it<BR>
&gt; doesn&#8217;t seem to work.  The cluster is functioning and running some of the<BR>
&gt; resources.  Some of the are down, but I don&#8217;t think that should make a<BR>
&gt; difference:<BR>
&gt;<BR>
&gt; ============<BR>
&gt; Last updated: Fri Jul 22 18:33:03 2011<BR>
&gt; Stack: openais<BR>
&gt; Current DC: poc-tst-rh4 - partition with quorum<BR>
&gt; Version: 1.0.9-89bd754939df5150de7cd76835f98fe90851b677<BR>
&gt; 2 Nodes configured, 2 expected votes<BR>
&gt; 3 Resources configured.<BR>
&gt; ============<BR>
&gt;<BR>
&gt; Online: [ poc-tst-rh4 poc-tst-rh4-2 ]<BR>
&gt;<BR>
&gt;  Resource Group: mysql<BR>
&gt;      fs_mysql    (ocf::heartbeat:Filesystem):    Started poc-tst-rh4<BR>
&gt;      mysqld    (ocf::heartbeat:mysql):    Stopped<BR>
&gt;  Master/Slave Set: ms_drbd_mysql<BR>
&gt;      Masters: [ poc-tst-rh4 ]<BR>
&gt;      Slaves: [ poc-tst-rh4-2 ]<BR>
&gt;  Clone Set: pingclone<BR>
&gt;      Started: [ poc-tst-rh4-2 poc-tst-rh4 ]<BR>
&gt;<BR>
&gt; Failed actions:<BR>
&gt;     mysqld_start_0 (node=poc-tst-rh4, call=26, rc=5, status=complete): not<BR>
&gt; installed<BR>
&gt;     fs_mysql_start_0 (node=poc-tst-rh4-2, call=31, rc=5, status=complete):<BR>
&gt; not installed<BR>
&gt;<BR>
&gt; If I try to use the crm command line, it rejects any configuration changes I<BR>
&gt; make:<BR>
&gt; crm configure edit<BR>
&gt; ERROR: could not replace mysql<BR>
&gt; INFO: offending xml: &lt;group id=&quot;mysql&quot;&gt;<BR>
&gt;     &lt;meta_attributes id=&quot;mysql-meta_attributes&quot;&gt;<BR>
&gt;         &lt;nvpair id=&quot;mysql-meta_attributes-target-role&quot; name=&quot;target-role&quot;<BR>
&gt; value=&quot;Started&quot;/&gt;<BR>
&gt;     &lt;/meta_attributes&gt;<BR>
&gt;     &lt;primitive class=&quot;ocf&quot; id=&quot;fs_mysql&quot; provider=&quot;heartbeat&quot;<BR>
&gt; type=&quot;Filesystem&quot;&gt;<BR>
&gt;         &lt;instance_attributes id=&quot;fs_mysql-instance_attributes&quot;&gt;<BR>
&gt;             &lt;nvpair id=&quot;fs_mysql-instance_attributes-device&quot; name=&quot;device&quot;<BR>
&gt; value=&quot;/dev/drbd0&quot;/&gt;<BR>
&gt;             &lt;nvpair id=&quot;fs_mysql-instance_attributes-directory&quot;<BR>
&gt; name=&quot;directory&quot; value=&quot;/var/lib/mysql/&quot;/&gt;<BR>
&gt;             &lt;nvpair id=&quot;fs_mysql-instance_attributes-fstype&quot; name=&quot;fstype&quot;<BR>
&gt; value=&quot;ext3&quot;/&gt;<BR>
&gt;         &lt;/instance_attributes&gt;<BR>
&gt;         &lt;operations&gt;<BR>
&gt;             &lt;op id=&quot;fs_mysql-start-0&quot; interval=&quot;0&quot; name=&quot;start&quot;<BR>
&gt; timeout=&quot;60&quot;/&gt;<BR>
&gt;             &lt;op id=&quot;fs_mysql-stop-0&quot; interval=&quot;0&quot; name=&quot;stop&quot; timeout=&quot;60&quot;/&gt;<BR>
&gt;         &lt;/operations&gt;<BR>
&gt;     &lt;/primitive&gt;<BR>
&gt;     &lt;primitive class=&quot;ocf&quot; id=&quot;mysqld&quot; provider=&quot;heartbeat&quot; type=&quot;mysql&quot;&gt;<BR>
&gt;         &lt;instance_attributes id=&quot;mysqld-instance_attributes&quot;&gt;<BR>
&gt;             &lt;nvpair id=&quot;mysqld-instance_attributes-binary&quot; name=&quot;binary&quot;<BR>
&gt; value=&quot;/usr/bin/mysqld_safe&quot;/&gt;<BR>
&gt;             &lt;nvpair id=&quot;mysqld-instance_attributes-pid&quot; name=&quot;pid&quot;<BR>
&gt; value=&quot;/var/lib/mysql/mysql.pid&quot;/&gt;<BR>
&gt;         &lt;/instance_attributes&gt;<BR>
&gt;         &lt;operations&gt;<BR>
&gt;             &lt;op id=&quot;mysqld-monitor-15s&quot; interval=&quot;15s&quot; name=&quot;monitor&quot;<BR>
&gt; timeout=&quot;60&quot;/&gt;<BR>
&gt;             &lt;op id=&quot;mysqld-start-0&quot; interval=&quot;0&quot; name=&quot;start&quot;<BR>
&gt; timeout=&quot;240&quot;/&gt;<BR>
&gt;             &lt;op id=&quot;mysqld-stop-0&quot; interval=&quot;0&quot; name=&quot;stop&quot; timeout=&quot;240&quot;/&gt;<BR>
&gt;         &lt;/operations&gt;<BR>
&gt;     &lt;/primitive&gt;<BR>
&gt; &lt;/group&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; What could be causing the configuration to fail?<BR>
&gt;<BR>
&gt; Thank you for any assistance,<BR>
&gt; Kelly Wong<BR>
&gt; _______________________________________________<BR>
&gt; Pacemaker mailing list: <a href="Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><BR>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><BR>
&gt;<BR>
&gt; Project Home: <a href="http://www.clusterlabs.org">http://www.clusterlabs.org</a><BR>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><BR>
&gt; Bugs:<BR>
&gt; <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><BR>
&gt;<BR>
&gt;<BR>
<BR>
_______________________________________________<BR>
Pacemaker mailing list: <a href="Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><BR>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><BR>
<BR>
Project Home: <a href="http://www.clusterlabs.org">http://www.clusterlabs.org</a><BR>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><BR>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>