[Linux-HA] Newbie question regarding IPaddr resource

Guochun Shi gshi at ncsa.uiuc.edu
Tue Jul 19 10:38:47 MDT 2005


At 05:26 PM 7/19/2005 +0200, you wrote:

>Hi! 
>
>I would very appreciate your help as I couldn't find any hint in the mailing list. Heartbeat 1.99.5 is installed on three Linux servers(kernel 2.6.11). Up to now I couldn't  get even a virtual IPaddr resource enabled  ( I just took available examples and adapted them: f.i. the IP address). 
>The command crmadmin always gives back: "NO resources configured", while cibadmin -Q displays the XML configuration as expected. 
>
>This is my ha.cf: 
>------------------ 
>debug 1 
>coredumps       true 
>logfile         /var/log/ha-log 
>node muctam01              # List our cluster members 
>node muctam02              # List our cluster members 
>node muctam03              # List our cluster members 
>keepalive 1                # Send one heartbeat each second 
>deadtime 10                # Declare nodes dead after 10 seconds 
>mcast eth1 224.1.2.3 694 1 0 
>ping 172.24.52.66          # Ping our router to monitor ethernet connectivity 
>auto_failback no           # Don't fail back to paul automatically 
>crm     yes 
>use_logd yes 
>apiauth cibmon   uid=hacluster 
>respawn root      /usr/lib/heartbeat/stonithd 

u don't need the above line once you have crm set to "yes"


It looks like your .xml might have some problem. You can try to generate cib.xml using linux-ha/cts/haresouces2cib.py
python <path>/liux-ha/cts/haresources2cib.py >/var/lib/heartbeat/crm/cib.xml


-Guochun

>respawn hacluster /usr/lib/heartbeat/cibmon 
>----------------------------------------------------------------- 
>
>The debug ouput is long but I think this might be the essential part of it:  Uknown resource type primitive? 
>
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):  <cib timestamp="1121781472" generated="true" cib_feature_revision="1" num_peers="1" have_quorum="false" last_written="Tue Jul 19 13:57:52 2005" origin="muctam01" dc_uuid="7484ba11-b38b-4e9f-b8ba-f6f7badd220d" debug_source="process_join_ack_msg" num_updates="225" epoche="14" ccm_transition="1"/> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: debug: mask(xml.c:find_entity): node <nvpair id=transition_timeout> not found in crm_config. 
>Jul 19 13:57:52 muctam01 pengine: [9429]: WARN: mask(unpack.c:param_value): Option transition_timeout not set 
>Jul 19 13:57:52 muctam01 pengine: [9429]: debug: mask(xml.c:find_entity): node <nvpair id=stonith_enabled> not found in crm_config. 
>Jul 19 13:57:52 muctam01 pengine: [9429]: WARN: mask(unpack.c:param_value): Option stonith_enabled not set 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(unpack.c:unpack_config): STONITH of failed nodes is disabled 
>Jul 19 13:57:52 muctam01 pengine: [9429]: debug: mask(xml.c:find_entity): node <nvpair id=symmetric_cluster> not found in crm_config. 
>Jul 19 13:57:52 muctam01 pengine: [9429]: WARN: mask(unpack.c:param_value): Option symmetric_cluster not set 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(unpack.c:unpack_config): Cluster is symmetric - resources can run anywhere by default 
>Jul 19 13:57:52 muctam01 pengine: [9429]: debug: mask(xml.c:find_entity): node <nvpair id=no_quorum_policy> not found in crm_config. 
>Jul 19 13:57:52 muctam01 pengine: [9429]: WARN: mask(unpack.c:param_value): Option no_quorum_policy not set 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(unpack.c:unpack_config): On loss of CCM Quorum: Stop ALL resources 
>Jul 19 13:57:52 muctam01 pengine: [9429]: WARN: mask(stages.c:stage0): We do not have quorum - fencing and resource management disabled 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(complex.c:common_unpack): Unknown resource type: primitive 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(unpack.c:unpack_resources): Failed unpacking resource WebServerIP 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(complex.c:common_unpack): Unknown resource type: primitive 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(unpack.c:unpack_resources): Failed unpacking resource DcIPaddr 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(complex.c:common_unpack): Unknown resource type: primitive 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(unpack.c:unpack_resources): Failed unpacking resource rsc_c001n01 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(complex.c:common_unpack): Unknown resource type: primitive 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(unpack.c:unpack_resources): Failed unpacking resource rsc_c001n02 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(complex.c:common_unpack): Unknown resource type: primitive 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(unpack.c:unpack_resources): Failed unpacking resource rsc_c001n03 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(complex.c:common_unpack): Unknown resource type: primitive 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(unpack.c:unpack_resources): Failed unpacking resource rsc_c001n04 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(complex.c:common_unpack): Unknown resource type: primitive 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(unpack.c:unpack_resources): Failed unpacking resource rsc_c001n05 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(complex.c:common_unpack): Unknown resource type: primitive 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(unpack.c:unpack_resources): Failed unpacking resource rsc_c001n06 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(complex.c:common_unpack): Unknown resource type: primitive 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(unpack.c:unpack_resources): Failed unpacking resource rsc_c001n07 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(complex.c:common_unpack): Unknown resource type: primitive 
>Jul 19 13:57:52 muctam01 pengine: [9429]: ERROR: mask(unpack.c:unpack_resources): Failed unpacking resource rsc_c001n08 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(stages.c:stage8): Creating transition graph 1. 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(pengine.c:process_pe_message): ERRORs found during PE processing.  Input follows: 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message): [input]: 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):  <cib timestamp="1121781472" generated="true" cib_feature_revision="1" num_peers="1" have_quorum="false" last_written="Tue Jul 19 13:57:52 2005" origin="muctam01" dc_uuid="7484ba11-b38b-4e9f-b8ba-f6f7badd220d" debug_source="process_join_ack_msg" num_updates="225" epoche="14" ccm_transition="1"> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):    <configuration timestamp="1119608644"> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):      <crm_config/> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):      <nodes timestamp="1121781472"> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):        <node id="7484ba11-b38b-4e9f-b8ba-f6f7badd220d" uname="muctam01" type="member"/> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):        <node id="8afc369e-552d-42ba-a419-abb560c1d3f2" uname="muctam02" type="member"/> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):        <node id="70f02295-fc57-4625-876b-85422e5c4b6b" uname="muctam03" type="member"/> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):      </nodes> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):      <resources timestamp="1121781472"> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):        <primitive id="WebServerIP" class="ocf" type="IPaddr" provider="heartbeat"> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):          <instance_attributes> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):            <attributes> 
>Jul 19 13:57:52 muctam01 pengine: [9429]: info: mask(process_pe_message):              <nvpair name="ip" value="172.24.52.85"/> 
>... 
>
>Thanks 
>_______________________________________________
>Linux-HA mailing list
>Linux-HA at lists.linux-ha.org
>http://lists.linux-ha.org/mailman/listinfo/linux-ha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux-ha.org/pipermail/linux-ha/attachments/20050719/154fedf1/attachment.html>


More information about the Linux-HA mailing list