On Wed, Jul 8, 2009 at 5:58 PM, Bret E. Palsson<[email protected]> wrote:
> 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?

It should work, but Dejan's the one that understands this stuff (and
he's on vacation).
I wonder if its an escaping thing, perhaps $id is being expanded...

Then again, maybe its a bug thats been fixed since.  What version are
you running?

>
> 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.
>
> crm<<EOF
> configure
> erase
> primitive virtual_ip ocf:heartbeat:IPaddr2 operations 
> $id="virtual_ip-operations" op monitor interval="10s" timeout="20s" 
> start-delay="5s" params ip="10.130.0.5" nic="eth0" cidr_netmask="16" meta 
> $id="virtual_ip-meta_attributes"
> 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 
> hostlist="dbcontroller1.net:dbcontroller1.master,dbcontroller2.net:dbcontroller2.master"
>  poolMaster="10.128.250.1" 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"
> commit
> EOF
>
> OUTPUT:
> element nvpair: Relax-NG validity error : Expecting element op, got nvpair
> 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 content
> 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
> <null>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to