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

Jorge Armando Medina jmedina at qindel.com
Tue Jan 7 12:49:05 EST 2014

We used this in a postgres cluster 

# Run drbdadm verify every saturday 3 am 
00 03 * * 06 root [ $(/usr/sbin/crm_resource -Q -r g_postgres -W ) = $(hostname) ] && /sbin/drbdadm verify all 

I hope you can use it. 

Best regards. 

----- Mensaje original -----

De: "Stefan Bauer (IZLBW Extern)" <Stefan.Bauer at iz.bwl.de> 
Para: pacemaker at oss.clusterlabs.org 
Enviados: Martes, 7 de Enero 2014 6:33:01 
Asunto: [Pacemaker] Howto check if the current node is active? 

Hi Folks! 

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. 

We want to use this to trigger a cronjob on the active. 


Pacemaker mailing list: Pacemaker at oss.clusterlabs.org 

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140107/6bd5feb3/attachment-0003.html>

More information about the Pacemaker mailing list