[Linux-HA] check who is master ?

Alexandros Papadopoulos apap at gdb.gr
Wed Jan 31 08:25:08 MST 2007


On Wednesday 31 January 2007 13:37, Holger wrote:
> Hello,
> i have a active-passiv cluster and want to mirror some files with rsync.
> But only from active to passive. How can i reliable check which of my
> two nodes is the master ?

root at odysseus:~# /etc/ha.d/resource.d/IPaddr 192.168.5.31 status
running
root at odysseus:~#

This means that the "clustered" IP address 192.168.5.31 is active on the node, 
hence, this node is the "master".

It may not be 100% reliable if you have only one communication channel though.

-A


More information about the Linux-HA mailing list