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

hj lee kerdosa at gmail.com
Wed Dec 23 17:19:00 UTC 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: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091223/00a9cae9/attachment-0001.html>


More information about the Pacemaker mailing list