[Pacemaker] resource file

Dejan Muhamedagic dejanmm at fastmail.fm
Mon Jun 3 05:29:26 EDT 2013


Hi,

On Mon, Jun 03, 2013 at 08:39:23AM +0000, Alex Samad - Yieldbroker wrote:
> Hi
> 
> Written my own resource script file
> 
> In the monitor command, what error code should I return to say the resource has failed, but to no make it permanent 

OCF_ERR_GENERIC

There's also the OCF resource agent developer's guide:

http://www.linux-ha.org/doc/dev-guides/ra-dev-guide.html

Thanks,

Dejan

> Currently I am using 
> return $OCF_ERR_PERM
> 
> but it means that ones the resource is unavailable it is permanently unavailable
> 
> This is not my preferred option I would like to the resource to fail and potentially be moved to another node, but I would like pacemaker to attempt to retry, but it doesn't until I issue a clean command on that resource
> 
> Alex
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org




More information about the Pacemaker mailing list