[Linux-HA] Getting IP address of other nodes in cluter

Lars Marowsky-Bree lmb at suse.de
Thu Jul 5 03:18:38 MDT 2007


On 2007-07-05T11:19:24, Maxim Veksler <hq4ever at gmail.com> wrote:

> I'm new to heartbeat.
> 
> I'm using the authkeys option in ha.cf, is the some way I can get the
> IP address of other nodes participating in the cluster? Lets assume
> that I'm always interested in eth0 IP.
> 
> >From looking at /var/lib/heartbeat/hostcache is can only learn hostname & 
> >UUID.

Not directly; heartbeat internally doesn't care about the IP addresses,
and so doesn't store them.

If you look at my o2cb resource agent (for example, at
http://hg.linux-ha.org/dev/file/tip/resources/OCF/o2cb.in), you can see
one trick of using the CIB to distribute such information.


Regards,
    Lars

-- 
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde



More information about the Linux-HA mailing list