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.ba...@iz.bwl.de> Para: pacemaker@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@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
_______________________________________________ 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