[Pacemaker] Time/Date Based Expressions in the CRM Shell

Lars Marowsky-Bree lmb at suse.de
Wed Apr 7 05:46:38 EDT 2010


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?



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





More information about the Pacemaker mailing list