[Linux-HA] CRM

Bret Palsson bret at getjive.com
Wed Jul 8 02:07:31 MDT 2009

All was done in reference to http://clusterlabs.org/mediawiki/images/8/8d/Crm_cli.pdf 
    pages 3 and 4.

When pasting the following I get errors. However if I enter the crm  
and paste line by line I don't get errors and everything works dandy.  
Any suggestions on how I can "script" this configuration?

I've also tried: crm configure show > backup  (Obviously after having  
a valid configuration to backup)

and then pasted the contents of the backup after the erase command  
below. That didn't work either.

primitive virtual_ip ocf:heartbeat:IPaddr2 operations $id="virtual_ip- 
operations" op monitor interval="10s" timeout="20s" start-delay="5s"  
params ip="" nic="eth0" cidr_netmask="16" meta  
primitive pgpool-ha ocf:pacemaker:pgpoolha operations $id="pgpool-ha- 
operations" op monitor interval="10" timeout="20" start-delay="0"  
params pgpool="/usr/bin/pgpool" pgpoolconf="/etc/pgpool.conf"  
pcpconf="/etc/pcp.conf" pool_hbaconf="/etc/pool_hba.conf"  
forcestop="10" meta $id="pgpool-ha-meta_attributes"
primitive citrix-stonith stonith:external/citrix-xenserver operations  
$id="citrix-stonith-operations" op monitor interval="15" timeout="15"  
start-delay="15" params  
poolMaster="" poolMasterUserName="root"  
poolMasterPassword="nada" meta $id="citrix-stonith-meta_attributes"
group pgpool-ha-group virtual_ip pgpool-ha meta target-role="started"
clone stone-citrix citrix-stonith meta target-role="started"
property $id="cib-bootstrap-options" expected-quorum-votes="2" no- 
quorum-policy="ignore" stonith-timeout="30s" default-action- 
timeout="30s" cluster-delay="30s"
rsc_defaults $id="rsc_defaults-options" resource-stickiness="INFINITY"

element nvpair: Relax-NG validity error : Expecting element op, got  
Relax-NG validity error : Extra element operations in interleave
element operations: Relax-NG validity error : Element primitive failed  
to validate content
element group: Relax-NG validity error : Invalid sequence in interleave
element group: Relax-NG validity error : Element group failed to  
validate content
element cib: Relax-NG validity error : Element cib failed to validate  
crm_verify[3180]: 2009/07/08_02:02:08 ERROR: main: CIB did not pass  
DTD/schema validation
Errors found during check: config not valid
WARNING: 10: crm_verify(8) found errors in the CIB
INFO: 10: use commit force if you know what you are doing
Call cib_modify failed (-47): Update does not conform to the  
configured schema/DTD

More information about the Linux-HA mailing list