[Pacemaker] target: 7 vs. rc: 0 error

ESWAR RAO eswar7028 at gmail.com
Thu Jun 6 09:47:47 EDT 2013


Hi Florian,

Thanks fro the mail.

In my resource scripts, i never returned with 7.

In my lsb script (sample one)
++++++++++++++++++++++++++++++++
start)    i created a file
status) if file exists exit 0; else exit 3;
stop) remove file
restart) stop;start
force-reload) restart

return codes as per http://linux-ha.org/wiki/LSB_Resource_Agents

++++++++++++++++++++++++++++++++

Please let me know if there's any chance that I can monitor the already
running resources ?????

Thanks
Eswar

On Thu, Jun 6, 2013 at 7:06 PM, Florian Crouzat
<gentoo at floriancrouzat.net>wrote:

> Le 06/06/2013 11:40, ESWAR RAO a écrit :
>
>  Hi All,
>>
>> Can someone help me in my below setup:
>>
>> I am trying to monitor RA on a 2 node cluster setup.
>> The resources are already running before start of HB+pacemaker.
>> ++++++++++++++++++++++++++++++**++++++++++++++++++++++++++++++**+
>> #crm configure primitive oc_d1 lsb::testd1 meta allow-migrate="true"
>> migration-threshold="1" failure-timeout="30s" op monitor interval="3s"
>> #crm configure clone oc_d1_clone oc_d1
>>
>> #crm configure primitive oc_d2 lsb::testd2 meta allow-migrate="true"
>> migration-threshold="3" failure-timeout="30s" op monitor interval="5s"
>> #crm configure clone oc_d2_clone oc_d2
>> ++++++++++++++++++++++++++++++**++++++++++++++++++++++++++++++**+
>>
>> But the resources are getting stopped on one node with below errors:
>>
>>   [11519]: WARN: status_from_rc: Action 9 (oc_d1:0_monitor_0) on
>> ubuntu191 failed (target: 7 vs. rc: 0): Error
>> Jun 06 14:45:22 ubuntu191 pengine: [11712]: notice: LogActions: Stop
>> oc_d1:0  (ubuntu191)
>>
>>   Clone Set: oc_d1_clone [oc_d1]
>>       Started: [ ubuntu190 ]
>>       Stopped: [ oc_d1:1 ]
>>   Clone Set: oc_d2_clone [oc_d2]
>>       Started: [ ubuntu190 ]
>>       Stopped: [ oc_d2:1 ]
>>
>> Thanks
>> Eswar
>>
>>
> 1/ There is no question in your email.
> 2/ You should not start your HA resources in the runlevels if you intend
> to have them clusterized: pacemaker (aka: the resource manager) should
> start them.
> 3/ Eventually, if you persist against point 2, check what does return-code
> 7 means, and eventually read the sources from your RA to fine what could
> possibly returns 7.
>
> --
> Cheers,
> Florian Crouzat
>
> ______________________________**_________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/**mailman/listinfo/pacemaker<http://oss.clusterlabs.org/mailman/listinfo/pacemaker>
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/**doc/Cluster_from_Scratch.pdf<http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf>
> Bugs: http://bugs.clusterlabs.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20130606/35f69353/attachment-0003.html>


More information about the Pacemaker mailing list