[Pacemaker] Time/Date Based Expressions in the CRM Shell
Dejan Muhamedagic
dejanmm at fastmail.fm
Wed Apr 7 10:18:38 UTC 2010
Hi,
On Wed, Apr 07, 2010 at 11:46:38AM +0200, Lars Marowsky-Bree wrote:
> On 2010-03-31T17:21:03, Darren.Mansell at opengi.co.uk wrote:
>
> > primitive QuoteCountGrab ocf:heartbeat:anything \
> > params binfile=/usr/local/bin/qc-grab.sh errlogfile=/var/log/qc-grab.err
> > logfile=/var/log/qc-grab.log pidfile=/var/run/qc-grab.pid user=root
> >
> > location QuoteCountGrabSchedule QuoteCountGrab rule inf: date date_spec
> > hours="0-4"
> >
> > but it seems to have started the resource right away and ignored the
> > date_spec. I've read the section on ensuring time based rules take
> > effect and Ive set cluster-recheck-interval to 5m but the resource is
> > still running.
> >
> > Any ideas?
>
> That rule by itself doesn't prevent the resource from running. In fact,
> it appears to do nothing.
>
> If you're setting a score to infinity for a location, that makes it
> prefer a place, but not prevent it from running. You could try to have
> rule-affected meta-attributes to set the target-role="stopped" for the
> interval you want it stopped in?
Rules in attribute sets are not yet supported in the crm shell.
But if you have a recent version, it will display raw xml.
Thanks,
Dejan
>
>
> Regards,
> Lars
>
> --
> Architect Storage/HA, OPS Engineering, Novell, Inc.
> SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
> "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
>
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
More information about the Pacemaker
mailing list