Hi, I am trying to make a rule to control the failback on the resources. I want during working days from 06:00 to 23:00 and on weekend from 08:00 to 16:00 to have resource-stickiness 1000 and on the left hours zero, so cluster can perform failback any resource which failed over during the working hours. I wrote the following but I also get error [1]. I am not xml guru so I must have done some stupid mistake here. Any hints?
<rsc_defaults> <meta_attributes id="working-hours"> <rule id="working-hours-rule" boolean_op="or" score="2"> <date_expression id="six-to-eleven" operation="date_spec"> <date_spec id="six-to-elevene-Mon-Fri-spec" hours="6-23" weekdays="1-5"/> </date_expression> <date_expression id="eight-six" operation="date_spec"> <date_spec id="eight-six-Sat-Sun-spec" hours="8-16" weekdays="6-7"/> </date_expression> </rule> <nvpair id="working-hours-stickiness" name="resource-stickiness" value="INFINITY"/> </meta_attributes> <meta_attributes id="after-hours" score="1"> <nvpair id="after-hours-stickiness" name="resource-stickiness" value="0"/> </meta_attributes> </rsc_defaults> [1] cibadmin -V --replace --obj_type rsc_defaults --xml-file tmp.xml Call cib_replace failed (-47): Update does not conform to the configured schema/DTD
_______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker