[Linux-cluster] Is there a way for a resource agent to know the previous node on which it was active?
Vallevand, Mark K
Mark.Vallevand at UNISYS.com
Mon Feb 16 14:55:26 UTC 2015
Thank you.
Regards.
Mark K Vallevand Mark.Vallevand at Unisys.com <mailto:Mark.Vallevand at Unisys.com>
Outside of a dog, a book is man's best friend.
Inside of a dog, its too dark to read. - Groucho
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
-----Original Message-----
From: linux-cluster-bounces at redhat.com [mailto:linux-cluster-bounces at redhat.com] On Behalf Of Michael Schwartzkopff
Sent: Saturday, February 14, 2015 01:58 AM
To: linux clustering
Subject: Re: [Linux-cluster] Is there a way for a resource agent to know the previous node on which it was active?
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.
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
More information about the Linux-cluster
mailing list