I have created a simple heartbeat cluster:
2 Centos 4.5 nodes
HB version:
heartbeat-pils-2.1.2-3.el4.centos
heartbeat-stonith-2.1.2-3.el4.centos
heartbeat-gui-2.1.2-3.el4.centos
heartbeat-2.1.2-3.el4.centos
Here is the issue I see, and I dont know what I am doing wrong.
I have a simple group (*"GROUP_knworks_assp"*) setup. It is colocated
and ordered.
the issue is that I can get the IP address to work, but the LSB init
script will not work.
I have followed the document:
http://www.linux-ha.org/LSBResourceAgent
it meets all of the requirements and passes all the correct return codes
to be LSB Compliant.
The IP address is on node1, and the LSB script says: unmanaged and failed.
crm_mon -1 output:
Resource Group: GROUP_knworks_assp
knworks_assp_ip (heartbeat::ocf:IPaddr2): Started asknmapr01
knworks_assp_initscript (lsb:knworks_assp_init_script.sh):
Started asknmapr02 (unmanaged) FAILED
Failed actions:
knworks_assp_initscript_monitor_0 (node=asknmapr02, call=77,
rc=254): Error
knworks_assp_initscript_stop_0 (node=asknmapr02, call=78, rc=254): Error
Here is the resources section of my CIB:
<resources>
<primitive class="ocf" type="IPaddr2" provider="heartbeat"
id="IPADDR_WEB">
<instance_attributes id="IPADDR_WEB_instance_attrs">
<attributes>
<nvpair id="e4884172-6b9d-4d60-88d2-99ff34756ac5" name="ip"
value="10.1.2.190"/>
<nvpair name="target_role" id="IPADDR_WEB_target_role"
value="started"/>
</attributes>
</instance_attributes>
</primitive>
* <group id="GROUP_knworks_assp" ordered="true" collocated="true">
<primitive id="knworks_assp_ip" class="ocf" type="IPaddr2"
provider="heartbeat">
<instance_attributes id="knworks_assp_ip_instance_attrs">
<attributes>
<nvpair id="cfffb54c-3b2c-4e32-9ded-b78142aa4940" name="ip"
value="10.1.2.235"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="knworks_assp_initscript" class="lsb"
type="knworks_assp_init_script.sh" provider="heartbeat">
<instance_attributes id="knworks_assp_initscript_instance_attrs">
<attributes>
<nvpair id="knworks_assp_initscript_target_role"
name="target_role" value="started"/>
</attributes>
</instance_attributes>
</primitive>
</group>*
</resources>
Any help would be appreciated and save my forehead, I have been banging
it on the table for 2 days.
Thanks!
-Jeff Humes
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems