[Pacemaker] What is the best way to find out master node?

hj lee kerdosa at gmail.com
Wed Dec 23 12:19:00 EST 2009


Hi,

I have two-node cluster with a simple multi-state clone. I am using "crm_mon
-1 | grep Masters: | awk '{print $3}' " to find out which node is a master.
Is there a better way doing this? I don't like relying on the output of
crm_mon command, because the output can change in the future.

Thanks
hj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091223/00a9cae9/attachment.html>


More information about the Pacemaker mailing list