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

Jorge Armando Medina jmedina at qindel.com
Tue Jan 7 17:49:05 UTC 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. 



Stefan 

_______________________________________________ 
Pacemaker mailing list: Pacemaker at 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 

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


More information about the Pacemaker mailing list