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


_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to