[Pacemaker] Time/Date Based Expressions in the CRM Shell
Darren.Mansell at opengi.co.uk
Darren.Mansell at opengi.co.uk
Wed Mar 31 16:21:03 UTC 2010
> -----Original Message-----
> From: Dejan Muhamedagic [mailto:dejanmm at fastmail.fm]
> Sent: 31 March 2010 11:09
> To: The Pacemaker cluster resource manager
> Subject: Re: [Pacemaker] Time/Date Based Expressions in the CRM Shell
> Hi,
>
> On Wed, Mar 31, 2010 at 10:56:29AM +0100, Darren.Mansell at opengi.co.uk
> wrote:
>> Apologies if this is in the documentation but I can't see how to use
>> the time/date based expression resource constraints in the CRM shell.
>
> There's usage in the crm shell documentation and help for the location
> constraint (crm configure help location). There's nothing about the
date
> format, but you should be able to find about that in the configuration
> explained document. It's some ISO standard (looks a bit awkward).
>
> Thanks,
>
> Dejan
>
I've added the resource and location constraint:
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?
Thanks
Darren
More information about the Pacemaker
mailing list