[Linux-HA] Element crm_config content does not follow the DTD -
help with error
Slawomir Mroczek
s.mroczek at wasko.pl
Thu Oct 12 00:23:10 MDT 2006
On Wed, 11 Oct 2006 15:25:29 +0100
"Dan Track" <dan.track at gmail.com> wrote:
> I can see this line on the top, but how do I generate it?
>
> <cib admin_epoch="0" have_quorum="true" generated="true"
> num_peers="2" cib_feature_revision="1.3" ccm_transition="4"
> dc_uuid="2b6e1dc8-aa6e-494d-b68b-c7a0cf8d1a38" epoch="6"
> num_updates="78" cib-last-written="Wed Oct 11 14:31:27 2006">
>
>
> Apologies if this is a basic question, as I'm getting quite lost in
> the documentation on the site.
You're not the only one who got lost :)
OK, let's suppose you want to change cib.xml using vim. You've got
node1, node2 and node3. First, you should shutdown every node. Second,
let's suppose you're making changes to cluster using cib.xml at node1.
So, you should remove cib.xml.sig form node1 and - just to be safe -
_any_ "cib files" from other nodes i.e. rm /var/lib/heartbeat/crm/*
Now you can edit your cib.xml file at node1 and when you finish just
start heartbeat at this node. Watch your log (i.e. /var/log/ha-debug).
Consider using hb_gui to check resources and constraints.
You can also run crm_verify -VL, but don't panic when you see "errors"
like this "No value specified for cluster preference" or "Processing
failed op". Just make the node1 up and runnig. Then you can start
heartbeat at node2 and node3 - one by one. Use hb_gui if you're not
familiar with geartbeat.
And learn the cibadmin tool. Look:
cibadmin -R -o crm_config -X'<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<attributes>
<nvpair id="transition_idle_timeout" name="transition_idle_timeout" value="120s"/>
<nvpair id="symmetric_cluster" name="symmetric_cluster" value="true"/>
<nvpair id="no_quorum_policy" name="no_quorum_policy" value="stop"/>
</attributes>
</cluster_property_set>
</crm_config>'
--
Sławomir Mroczek
More information about the Linux-HA
mailing list