Hi, On Wed, Dec 23, 2009 at 10:19:00AM -0700, hj lee wrote: > 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.
Looks like that's currently the only way. You can file an enhancement bugzilla for this. crm_resource -W -r shows only that the resource is running, but not the state. Thanks, Dejan > Thanks > hj > _______________________________________________ > Pacemaker mailing list > Pacemaker@oss.clusterlabs.org > http://oss.clusterlabs.org/mailman/listinfo/pacemaker _______________________________________________ Pacemaker mailing list Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker