[ClusterLabs] Trigger an action before a resource is moved to a cluster node

Andrew Beekhof andrew at beekhof.net
Mon Aug 3 22:14:54 EDT 2015


> On 25 May 2015, at 9:02 pm, John Gogu <ionut.gogu at gmail.com> wrote:
> 
> Hello all,
> there is a possibility to trigger an OS action  before a resource is moved to a cluster node?

modify the resource agent script?

> 
> for example to touch a file (touch /dev/shm/test) before Webservice_P22 resource group is moved to node  node02hb0 (manually move or due to a failure move)
> 
> Online: [ node01hb0 node02hb0 ]
> Full list of resources:
>  Resource Group: Webservice_P22
>      pkgP22b0   (ocf::heartbeat:IPaddr):        Started node01hb0
> 
> 
> Mit freundlichen Grüßen/Kind regards,
> 
> 
> John Gogu
> 
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
> 
> 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 Users mailing list