[Linux-cluster] Is there a way for a resource agent to know the previous node on which it was active?

Andrew Beekhof andrew at beekhof.net
Wed Feb 18 02:00:37 UTC 2015


> On 14 Feb 2015, at 6:57 pm, Michael Schwartzkopff <misch at schwartzkopff.org> wrote:
> 
> Am Freitag, 13. Februar 2015, 17:12:54 schrieb Vallevand, Mark K:
>> I didn't see an environment variable with that information.
>> Any other ways to determine this?
> 
> Your could re-write your resource agent to ist the crm_attribute command. This 
> adds attributes for a resoruce to the CIB. This attribute could hold the 
> information about the node the resource is running on.

Somewhat dangerous to rely on though.
What would be the reason for needing to know the previous node?

> 
> It would have to be updated by your resource agent (script) if the resource 
> migrates.
> 
> -- 
> Dr. Michael Schwartzkopff
> Guardinistr. 63
> 81375 München
> 
> Tel: (0162) 1650044
> Fax: (089) 620 304 13-- 
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster





More information about the Linux-cluster mailing list