[Pacemaker] CRM_MASTER unable to set/get value for Master/Slave resource.
Mike Toler
mike.toler at prodeasystems.com
Fri Mar 18 22:24:56 UTC 2011
I have a process (BP) that I need to have running on two servers, in a
Master/Slave configuration.
host_ip_1 is preferable to host_ip_2, so if it is available, the process
should always run on that server.
In my OCF file, I have the following sequence that occurs during
startup:
function billing_processor_start is called.
+---It verifies the BP is configured correctly and starts the process
itself in standby mode.
+---It then calls the billing_processor_update_prefs function.
Function billing_processor_update_prefs
+--- Checks to see which host this process is running on.
+--- If host_ip_1, then runs " response=`$CRM_MASTER -v 100 -l
reboot` "
+--- else runs " response=`$CRM_MASTER -v 50 -l reboot` "
+--- Prints out the "response" from CRM_MASTER
When the resources is started, I see the following in my log file. The
last line is the response I get back from crm_master. It says "No set
matching id=<someid>".
My understanding is that the OCF_RESKEY values used by crm_master are
set by Pacemaker, and I should not have to do anything else? What am I
missing? Do I need to add some other XML object?
Mar 18 21:56:49 int-xcp-11 crm_master: [28797]: info: Invoked:
/usr/sbin/crm_master -v 100 -l reboot
Mar 18 21:56:49 int-xcp-11 cib: [28738]: info: retrieveCib: Reading
cluster configuration from: /var/lib/heartbeat/crm/cib.xml (digest:
/var/lib/heartbeat/crm/cib.xml.sig)
Mar 18 21:56:49 int-xcp-11 cib: [28738]: info: retrieveCib: Reading
cluster configuration from: /var/lib/heartbeat/crm/cib.xml.last (digest:
/var/lib/heartbeat/crm/cib.xml.sig.last)
Mar 18 21:56:49 int-xcp-11 cib: [28738]: info: write_cib_contents: Wrote
version 0.279.178 of the CIB to disk (digest:
170cbc99dda5dd8261cdb653d2c7558a)
Mar 18 21:56:49 int-xcp-11 cib: [28738]: info: retrieveCib: Reading
cluster configuration from: /var/lib/heartbeat/crm/cib.xml (digest:
/var/lib/heartbeat/crm/cib.xml.sig)
Mar 18 21:56:49 int-xcp-11 cib: [28738]: info: retrieveCib: Reading
cluster configuration from: /var/lib/heartbeat/crm/cib.xml.last (digest:
/var/lib/heartbeat/crm/cib.xml.sig.last)
Mar 18 21:56:50 int-xcp-11 BillingProcessor2[28722]: INFO: Response = No
set matching id=master-dc477fed-eb09-4ab1-b2f9-dc056d1bfd92 in status,
ret = 0
Michael Toler
(Sorry about the following junk. Can't avoid it through my office.)
This message is confidential to Prodea Systems, Inc unless otherwise indicated
or apparent from its nature. This message is directed to the intended recipient
only, who may be readily determined by the sender of this message and its
contents. If the reader of this message is not the intended recipient, or an
employee or agent responsible for delivering this message to the intended
recipient:(a)any dissemination or copying of this message is strictly
prohibited; and(b)immediately notify the sender by return message and destroy
any copies of this message in any form(electronic, paper or otherwise) that you
have.The delivery of this message and its information is neither intended to be
nor constitutes a disclosure or waiver of any trade secrets, intellectual
property, attorney work product, or attorney-client communications. The
authority of the individual sending this message to legally bind Prodea Systems
is neither apparent nor implied,and must be independently verified.
More information about the Pacemaker
mailing list