[Pacemaker] Howto check if the current node is active?

Jacek Konieczny jajcus at jajcus.net
Tue Jan 7 17:46:00 UTC 2014


On 2014-01-07 13:33, Bauer, Stefan (IZLBW Extern) wrote:
> How can i check if the current node i’m connected to is the active?
> 
> It should be parseable because i want to use it in a script.

Pacemaker is not limited to Active-Passive setups, in fact it has no
notion of 'Active' node – every node in the cluster is active (unless on
standby).

Active/Passive node status may make sense in many Pacemaker deployments
– but that is specific to the configuration. Sometimes 'active node'
will be running the DRBD master, other times it will be the one where a
specific resource is running. Generally you can test that with by
parsing 'cibadmin' output or some higher-level Pacemaker shell (crmsh or
pcs).

Greets,
   Jacek





More information about the Pacemaker mailing list