[Pacemaker] is pacemaker-gui create right XML ?

Infos E-Blokos infos at e-blokos.com
Tue Jun 9 12:04:18 EDT 2009


----- Original Message ----- 
From: "Yan Gao" <ygao at novell.com>
To: <pacemaker at 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
> ygao at novell.com
>
> Novell, Inc.
> Making IT Work As One™
>

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.





More information about the Pacemaker mailing list