[Pacemaker] detect/cleanup failed resource

Bernd Schubert bs_lists at aakef.fastmail.fm
Thu Oct 21 17:29:39 EDT 2010


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




More information about the Pacemaker mailing list