----- Original Message ----- From: "Yan Gao" <y...@novell.com>
To: <pacema...@clusterlabs.org>
Sent: Tuesday, June 09, 2009 7:05 AM
Subject: Re: [Pacemaker] is pacemaker-gui create right XML ?


On Tue, 2009-06-09 at 18:25 +0800, Yan Gao wrote:
On Tue, 2009-06-09 at 03:59 -0400, Infos E-Blokos wrote:
> Simple test,
>
> I make a copy of cib.xml created by pacemaker-gui last version
> I edit the copy and increase the epoch,
> and run the command
> cibadmin -R -o cib -x cib.xml
> Call cib_replace failed (-47): Update does not conform to the
> configured schema/DTD
> <null>
For whatever reason, you can find the details in the log.

>
> Is anyone can explain what's wrong in the original cib.xml created by
> pacemaker-gui ?
If you ever successfully created it, then the cib is valid:-)
But if you directly use the cib.xml under "/var/lib/heartbeat/crm",
I meant your copy which is from there. Never ever
modify /var/lib/heartbeat/crm/cib.xml in place.
it's
not. Because the cib.xml on disk doesn't include <status> section, which
is not valid against the schema. You may want to use the output of
"cibadmin -Q".

BTW, why didn't you use crm_shadow?

--
Regards,
Yan Gao
China R&D Software Engineer
y...@novell.com

Novell, Inc.
Making IT Work As One?6?4


Ok thanks for your answer Yan, No I didn't modify /var/lib/heartbeat/crm/cib.xml. only copy it with "cp" in other place on HD and reimport it with cibadmin -R -o cib -x cib.xml It was only a test (as it's not specify on docs you can't copy cib.xml with "cp")
I will use crm_shadow.

Regards

Franck

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


_______________________________________________
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to