On Wed, 2009-08-05 at 10:43 +0530, abhishek agrawal wrote: > I referred the following document page -35 > > http://clusterlabs.org/mediawiki/images/f/fb/Configuration_Explained.pdf > > As of given in it..there is no ID associated with date_spec. > > moreover to try date_spec id, i useed following rule,but its also not > working. > > <rule id="core-hour-rule" score="100"> > <date_expression id="9to5" operation="date_spec"> id cannot be numeric prefixed. Beginning with '^[A-Za-z_]' is allowed.
> <date_spec id="daytime" hours="9-17"/> > </date_expression> > </rule> > > with this rule XML looks like following: > > <primitive class="ocf" id="failover-ip" provider="heartbeat" > type="IPaddr"> > <instance_attributes id="failover-ip-instance_attributes"> > <nvpair id="failover-ip-instance_attributes-ip" name="ip" > value="15.154.59.49"/> > </instance_attributes> > <operations> > <op id="failover-ip-monitor-5s" interval="5s" name="monitor"/> > </operations> > <meta_attributes id="core-hours" score="10"> > <rule id="core-hour-rule" score="100"> > <date_expression id="9to5" operation="date_spec"> > <date_spec id="daytime" hours="9-17"/> > </date_expression> > </rule> > <nvpair id="core-hour-role" name="target-role" value="started"/> > </meta_attributes> > <meta_attributes id="after-hours" score="5"> > <nvpair id="after-hour-role" name="target-role" value="stopped"/> > </meta_attributes> > </primitive> > without rule this config is working fine..but after addition of rule > cib_replace is not accepting this file. > > I am a newbie and it will be a great help if someone can give me a detailed > idea about it. > -- Regards, Yan Gao China R&D Software Engineer [email protected] Novell, Inc. Making IT Work As One?6?4 _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
