<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. The weird thing is if I use cibadmin —replace —xml-file cib.xml, it’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, "Andrew Beekhof" <<a href="andrew@beekhof.net">andrew@beekhof.net</a>> 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 <<a href="kellwong@cisco.com">kellwong@cisco.com</a>> wrote:<BR>
> Hello,<BR>
><BR>
> I am trying to update the configuration of my cluster through the cibadmin<BR>
> command, but the command always fails:<BR>
><BR>
> cibadmin --replace --scope resources --xml-file r.xml<BR>
> Call cib_replace failed (-41): Remote node did not respond<BR>
<BR>
That error is triggered by a timeout. How long does the command wait<BR>
before returning this error?<BR>
<BR>
> <null><BR>
><BR>
> I was able to replace the initial blank configuration, but updating it<BR>
> doesn’t seem to work. The cluster is functioning and running some of the<BR>
> resources. Some of the are down, but I don’t think that should make a<BR>
> difference:<BR>
><BR>
> ============<BR>
> Last updated: Fri Jul 22 18:33:03 2011<BR>
> Stack: openais<BR>
> Current DC: poc-tst-rh4 - partition with quorum<BR>
> Version: 1.0.9-89bd754939df5150de7cd76835f98fe90851b677<BR>
> 2 Nodes configured, 2 expected votes<BR>
> 3 Resources configured.<BR>
> ============<BR>
><BR>
> Online: [ poc-tst-rh4 poc-tst-rh4-2 ]<BR>
><BR>
> Resource Group: mysql<BR>
> fs_mysql (ocf::heartbeat:Filesystem): Started poc-tst-rh4<BR>
> mysqld (ocf::heartbeat:mysql): Stopped<BR>
> Master/Slave Set: ms_drbd_mysql<BR>
> Masters: [ poc-tst-rh4 ]<BR>
> Slaves: [ poc-tst-rh4-2 ]<BR>
> Clone Set: pingclone<BR>
> Started: [ poc-tst-rh4-2 poc-tst-rh4 ]<BR>
><BR>
> Failed actions:<BR>
> mysqld_start_0 (node=poc-tst-rh4, call=26, rc=5, status=complete): not<BR>
> installed<BR>
> fs_mysql_start_0 (node=poc-tst-rh4-2, call=31, rc=5, status=complete):<BR>
> not installed<BR>
><BR>
> If I try to use the crm command line, it rejects any configuration changes I<BR>
> make:<BR>
> crm configure edit<BR>
> ERROR: could not replace mysql<BR>
> INFO: offending xml: <group id="mysql"><BR>
> <meta_attributes id="mysql-meta_attributes"><BR>
> <nvpair id="mysql-meta_attributes-target-role" name="target-role"<BR>
> value="Started"/><BR>
> </meta_attributes><BR>
> <primitive class="ocf" id="fs_mysql" provider="heartbeat"<BR>
> type="Filesystem"><BR>
> <instance_attributes id="fs_mysql-instance_attributes"><BR>
> <nvpair id="fs_mysql-instance_attributes-device" name="device"<BR>
> value="/dev/drbd0"/><BR>
> <nvpair id="fs_mysql-instance_attributes-directory"<BR>
> name="directory" value="/var/lib/mysql/"/><BR>
> <nvpair id="fs_mysql-instance_attributes-fstype" name="fstype"<BR>
> value="ext3"/><BR>
> </instance_attributes><BR>
> <operations><BR>
> <op id="fs_mysql-start-0" interval="0" name="start"<BR>
> timeout="60"/><BR>
> <op id="fs_mysql-stop-0" interval="0" name="stop" timeout="60"/><BR>
> </operations><BR>
> </primitive><BR>
> <primitive class="ocf" id="mysqld" provider="heartbeat" type="mysql"><BR>
> <instance_attributes id="mysqld-instance_attributes"><BR>
> <nvpair id="mysqld-instance_attributes-binary" name="binary"<BR>
> value="/usr/bin/mysqld_safe"/><BR>
> <nvpair id="mysqld-instance_attributes-pid" name="pid"<BR>
> value="/var/lib/mysql/mysql.pid"/><BR>
> </instance_attributes><BR>
> <operations><BR>
> <op id="mysqld-monitor-15s" interval="15s" name="monitor"<BR>
> timeout="60"/><BR>
> <op id="mysqld-start-0" interval="0" name="start"<BR>
> timeout="240"/><BR>
> <op id="mysqld-stop-0" interval="0" name="stop" timeout="240"/><BR>
> </operations><BR>
> </primitive><BR>
> </group><BR>
><BR>
><BR>
> What could be causing the configuration to fail?<BR>
><BR>
> Thank you for any assistance,<BR>
> Kelly Wong<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:<BR>
> <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>
><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>