Re: [Pacemaker] Make pacemaker retry failed resources

2012-09-24 Thread Andrew Beekhof
On Thu, May 10, 2012 at 9:14 PM, Lars Marowsky-Bree wrote: > On 2012-05-10T07:49:05, Gareth Davis wrote: > >> Monitor does return OCF_NOT_RUNNING. >> >> What seems to happen is >> >> Monitor - OCF_NOT_RUNNING >> start - OCF_ERR_GENERIC >> >> And then it stops trying, I would like it just to keep

Re: [Pacemaker] Make pacemaker retry failed resources

2012-05-11 Thread Gareth Davis
The weird thing is I literally (30 seconds) ago tested that option, and it does indeed do exactly what I want (http://serverfault.com/a/388150/11015) Thanks Gareth On 10/05/2012 12:14, "Lars Marowsky-Bree" wrote: >On 2012-05-10T07:49:05, Gareth Davis wrote: > >> Monitor does return OCF_NOT_RU

Re: [Pacemaker] Make pacemaker retry failed resources

2012-05-11 Thread Lars Marowsky-Bree
On 2012-05-10T07:49:05, Gareth Davis wrote: > Monitor does return OCF_NOT_RUNNING. > > What seems to happen is > > Monitor - OCF_NOT_RUNNING > start - OCF_ERR_GENERIC > > And then it stops trying, I would like it just to keep trying to start > the resource for ever. Investigate the "startup-

Re: [Pacemaker] Make pacemaker retry failed resources

2012-05-10 Thread Gareth Davis
Sure: http://www.linux-ha.org/doc/dev-guides/ra-dev-guide.html On start failing my RA returns $OCF_ERR_GENERIC There doesn't seem to be any other choice. I looked at OCF_NOT_RUNNING, but this is exclusively for the monitor action. Monitor does return OCF_NOT_RUNNING. What seems to happen is

Re: [Pacemaker] Make pacemaker retry failed resources

2012-05-09 Thread Dejan Muhamedagic
Hi, On Wed, May 09, 2012 at 03:23:43PM +, Gareth Davis wrote: > Hi, > > This actually cross posted from > http://serverfault.com/questions/387425/make-pacemaker-retry-failed-resourc > es > > I would like to get pacemaker to retry starting my resource > > primitive Imq ocf:example:imq