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.

crm_monwas part of the heartbeat package and would do this. If you have Pacemaker installed,crm_mon -nshould list each node in the cluster (and its current status) as well as identifying the master node. – cyberx86 Nov 22 '11 at 21:11