On Thursday, October 21, 2010, Rasto Levrinc wrote: > On Thu, October 21, 2010 12:42 pm, Bernd Schubert wrote: > > Hi all, > > > > > > is there a better way to detect a failed resource than to run "crm_mon -1 > > -r"? > > Well, you could list all resources with crm_resource -l, then get > failcount with crm_failcount -r $rsc and grep for value=INFINITY
Thanks! That works perfectly. I even don't need "crm_resource -l", as we already know all resources from our config file (frontend tools for pacemaker, lustre, e2fsck, lfsck, etc). Thanks again, Bernd -- Bernd Schubert DataDirect Networks _______________________________________________ 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker