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

Bauer, Stefan (IZLBW Extern) Stefan.Bauer at iz.bwl.de
Wed Jan 8 07:59:05 UTC 2014


Hi Jorge,

that looks good. Thank you!

Stefan

Von: Jorge Armando Medina [mailto:jmedina at qindel.com]
Gesendet: Dienstag, 7. Januar 2014 18:49
An: The Pacemaker cluster resource manager
Betreff: Re: [Pacemaker] Howto check if the current node is active?

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140108/8130ce7a/attachment.htm>


More information about the Pacemaker mailing list