heartbeat: find out machine's status within a cluster?

16,181

Solution 1

Are you using V1 or V2 syntax?

With V1 there is cl_status rscstatus which will return the Cluster`s Idea of resource distribution (none, local, all).

  • none: All resource groups are running on a different node
  • local: All resource groups that belong to this node run on this node
  • all: All resource groups run on this node

There are some other useful options for cl_status - just call it on the command line...

Also try /etc/init.d/heartbeat status

Solution 2

As stated by @cyberx86, crm_mon shows the cluster status. If you want to use a graphical X11 application, hb_gui offers you that. hb_gui allows you to also control your cluster.

hbgui screenshot

Share:
16,181

Related videos on Youtube

Richard
Author by

Richard

Updated on September 18, 2022

Comments

  • Richard
    Richard almost 2 years

    I'm trying to do some heartbeat debugging.

    Is there a simple way to ask a machine whether it thinks it's part of a cluster, and whether it's the master or the slave?

    I've tried

    $ heartbeat -s
    

    But it only seems to print a very basic status - running with process ID, or not running.