Hello, Andrew I try to reformulate the question, sorry for confusion. "Icrm_resource --list" shows up clone Fencing with other clones. But I wonder whether exists way (function, command) to define stonith resources (id=Fencing in my example) which RAs were installed and configured on my system. Something like is_stonith (resource) procedure. It isn't "crm ra list stonith" which shows up all possible stonith files.
Thanks a lot for your help, Ivan * Andrew Beekhof <[email protected]> [Thu, 2 Sep 2010 08:49:41 +0200]: > crm_resource --list should do it if I understand the question correctly > > On Mon, Aug 30, 2010 at 10:16 AM, Ivan Gromov <[email protected]> > wrote: > > Dear all, > > > > Is it possible to get name of stonith (clone id) resource from some > > command? For instance, I have cluster with stonith like presented > below. > > I want to get clone id (Fencing) > > <clone id="Fencing"> > > <meta_attributes id="fencing"> > > <nvpair id="Fencing-unique" name="globally-unique" value="false"/> > > </meta_attributes> > > <primitive id="rsa" class="stonith" type="external/ibmrsa"> > > <operations> > > <op id="rsa-mon-1" name="monitor" interval="120s"/> > > </operations> > > <instance_attributes id="rsa-parameters"> > > <nvpair id="rsa-attr-1" name="hostname" value="node1 node2 node3 > > node4"/> > > </instance_attributes> > > </primitive> > > </clone> > > > > Or more general question: how can I get list of resources which have > > appropriate class (heartbeat, lsb, ocf, stonith). > > For ocf class I can simple type: 'crm ra list ocf'. But for stonith > > class it doesn't return what I want. > > > > -- > > Thank in advance, > > Ivan Gromov. > > > > _______________________________________________ > > Linux-HA mailing list > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems > > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
