[Linux-HA] Configuring my cib.xml, need help!

Alan Robertson alanr at unix.sh
Mon Jan 22 19:12:07 MST 2007


Quoting Jake Conk <jake.conk at gmail.com>:

> Thanks all for your help. According to Rainer Ternes it does seem that the
> connection to my CIB file does fail but I can't figure out why. I do not
> have my cib file in "/var/lib/heartbeat/ccm/cib.xml" because I do not have
> that directory but I do have it in "/var/lib/heartbeat/crm/cib.xml" and the
> owner is "hacluster:haclient" with the permissions of "-rw-------". That
> seems to be the right place to put it but still not being able to connect.
>
> Below is my output from hb_gui from /var/log/messages when trying to connect
> if this can give you guys any hints...
>
>
----------------------------------------------------------------------------------------------------------------------------------------------------
> Jan 22 17:33:54 falbert mgmtd: [8017]: debug: recv msg: login hacluster ****
> Jan 22 17:33:54 falbert mgmtd: [8017]: debug: send msg: ok
> Jan 22 17:33:54 falbert mgmtd: [8017]: debug: recv msg: regevt
> evt:cib_changed
> Jan 22 17:33:54 falbert mgmtd: [8017]: debug: send msg: ok
> Jan 22 17:33:54 falbert mgmtd: [8017]: debug: recv msg: regevt
> evt:disconnected
> Jan 22 17:33:54 falbert mgmtd: [8017]: debug: send msg: ok
> Jan 22 17:33:54 falbert mgmtd: [8017]: debug: recv msg: all_nodes
> Jan 22 17:33:54 falbert mgmtd: [8017]: debug: send msg: ok falbert dell amax
> Jan 22 17:33:54 falbert mgmtd: [8017]: debug: recv msg: active_nodes
> Traceback (most recent call last):
>   File "/usr/bin/hb_gui", line 1901, in on_event
>     for server in self.active_nodes :
> TypeError: 'NoneType' object is not iterable
> Jan 22 17:33:54 falbert cib: [7883]: debug: parse_local_options: Processing
> locally scoped cib_query op from 8017
> Jan 22 17:33:54 falbert cib: [7883]: ERROR: cib_process_request: cib_query
> operation failed: the on-disk configuration was manually altered. shutdown
> heartbeat and repair.
> Jan 22 17:33:54 falbert cib: [7883]: debug: #========= CIB[output] message
> start ==========#
> Jan 22 17:33:54 falbert cib: [7883]: debug: MSG: Dumping message with 7
> fields
> Jan 22 17:33:54 falbert cib: [7883]: debug: MSG[0] : [t=cib]
> Jan 22 17:33:54 falbert cib: [7883]: debug: MSG[1] : [cib_op=cib_query]
> Jan 22 17:33:54 falbert cib: [7883]: debug: MSG[2] : [cib_callid=2]
> Jan 22 17:33:54 falbert cib: [7883]: debug: MSG[3] :
> [cib_clientid=9bb0e9a3-1264-4102-8985-b2b152ea64a0]
> Jan 22 17:33:54 falbert cib: [7883]: debug: MSG[4] : [cib_callopt=4352]
> Jan 22 17:33:54 falbert cib: [7883]: debug: MSG[5] : [cib_rc=-49]
> Jan 22 17:33:54 falbert cib: [7883]: debug: MSG[6] :
> [(5)cib_calldata=0x6503c8(481 618)]
> Jan 22 17:33:54 falbert cib: [7883]: debug:  <cib admin_epoch="0" epoch="0"
> num_updates="0" have_quorum="false" generated="false" ccm_transition="1"
> num_peers="1">
> Jan 22 17:33:54 falbert cib: [7883]: debug:    <status/>
> Jan 22 17:33:54 falbert cib: [7883]: debug:  </cib>
> Jan 22 17:33:54 falbert cib: [7883]: info: #========= Input message message
> start ==========#
> Jan 22 17:33:54 falbert cib: [7883]: info: MSG: Dumping message with 6
> fields
> Jan 22 17:33:54 falbert cib: [7883]: info: MSG[0] : [t=cib]
> Jan 22 17:33:54 falbert cib: [7883]: info: MSG[1] : [cib_op=cib_query]
> Jan 22 17:33:54 falbert cib: [7883]: info: MSG[2] : [cib_callid=2]
> Jan 22 17:33:54 falbert cib: [7883]: info: MSG[3] : [cib_callopt=4352]
> Jan 22 17:33:54 falbert cib: [7883]: info: MSG[4] :
> [cib_clientid=9bb0e9a3-1264-4102-8985-b2b152ea64a0]
> Jan 22 17:33:54 falbert cib: [7883]: info: MSG[5] : [cib_clientname=8017]
> Jan 22 17:33:54 falbert mgmtd: [8017]: ERROR: cib_native_perform_op: Call
> failed: the on-disk configuration was manually altered. shutdown heartbeat
> and repair.

You can't manually modify the CIB with impunity.  If you're going to do this,
you have to shut down heartbeat completely, modify it, remove the checksum
file, and restart heartbeat.

This isn't the right way to do it, but it will work (even though it sucks).  The
right way is to use cibadmin to replace it or modify it at run time.

 -- Alan Robertson
    alanr at unix.sh



More information about the Linux-HA mailing list