Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Previously (i.e. v < 2.1.4) crm_mon was part of the heartbeat package and would do this. If you have Pacemaker installed, crm_mon -n should list each node in the cluster (and its current status) as well as identifying the master node. – cyberx86 Nov 22 '11 at 21:11
master and slave? There is normally one primary node and the other nodes (for each resource group). Do you run just one resource group in your cluster? – Nils Dec 26 '11 at 20:55

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

share|improve this answer

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|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.