Eric J. Bowser wrote:

> Johan Hoeke wrote:
>> Just a quick suggestion, add debug 1 to your ha.cf file
>> And maybe a running
>> /usr/sbin/crm_verify -x /var/lib/heartbeat/crm/cib.xml
>> will turn up something.
> 
> Thanks, Johan.  I hadn't found the crm_verify command (also, I assume
> you meant -X instead of -x as the argument?)

nope, I meant lowercase x. From the usage:

  --crm_xml (-X) <string> : Use the configuration in the supplied string
  --xml-file (-x) <file>  : Use the configuration in the named file

so hence the -x for the file, not the string.
at least for me. (heartbeat-2.1.3-3.el4.centos)

you can add a couple of -V's for even more output
[EMAIL PROTECTED] tsm]# /usr/sbin/crm_verify -x /var/lib/heartbeat/crm/cib.xml
-VVV
crm_verify[19226]: 2008/03/28_22:04:00 info: main: =#=#=#=#= Getting XML
=#=#=#=#=
crm_verify[19226]: 2008/03/28_22:04:00 notice: main: Required feature
set: 2.0
crm_verify[19226]: 2008/03/28_22:04:00 notice: unpack_config: On loss of
CCM Quorum: Ignore
crm_verify[19226]: 2008/03/28_22:04:00 info: unpack_nodes: Node
koch.uvt.nl is in standby-mode


read over your cib.xml. I'm not an expert by any means, but I noticed
that the nodes aren't defined.

Here's mine: (note the generated id's)

[EMAIL PROTECTED] ~]# cibadmin -Q -o nodes
 <nodes>
   <node uname="koch.uvt.nl" type="normal"
id="858b162c-1520-445b-9ab9-e4aeb0d28df3">
     <instance_attributes id="nodes-858b162c-1520-445b-9ab9-e4aeb0d28df3">
       <attributes>
         <nvpair name="standby"
id="standby-858b162c-1520-445b-9ab9-e4aeb0d28df3" value="on"/>
       </attributes>
     </instance_attributes>
   </node>
   <node uname="julia.uvt.nl" type="normal"
id="ce506f64-da11-4f19-834e-08e52877d1cd">
     <instance_attributes id="nodes-ce506f64-da11-4f19-834e-08e52877d1cd">
       <attributes>
         <nvpair name="standby"
id="standby-ce506f64-da11-4f19-834e-08e52877d1cd" value="off"/>
       </attributes>
     </instance_attributes>
   </node>
 </nodes>

<snip>
> 
> crm_verify produces some interesting output, but I'm not quite sure what
> to do with it.  The example configs and getting started guide don't
> mention ID's:

<snip>

Others here may disagree, but I found starting w/ the gui very helpful.
(/usr/bin/hb_gui)

It does stuff like generate the ID's etc. Once you get the feel for it,
you can craft the cib.xml by hand.

I see where you're coming from, with regards to
http://www.linux-ha.org/GettingStartedV2
your cib.xml follows the example, but doesn't work. :(

I found Andrew's documentation very helpful:
http://www.clusterlabs.org/mw/Image:Configuration_Explained.pdf


regards,

Johan

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to