Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

stonith resource

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


gromivan at rambler

Aug 30, 2010, 1:16 AM

Post #1 of 6 (442 views)
Permalink
stonith resource

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
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


gromivan at rambler

Aug 30, 2010, 1:16 AM

Post #2 of 6 (440 views)
Permalink
stonith resource [In reply to]

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
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


andrew at beekhof

Sep 1, 2010, 11:49 PM

Post #3 of 6 (441 views)
Permalink
Re: stonith resource [In reply to]

crm_resource --list should do it if I understand the question correctly

On Mon, Aug 30, 2010 at 10:16 AM, Ivan Gromov <gromivan [at] rambler> 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
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


great_guy001 at yahoo

Sep 2, 2010, 2:23 AM

Post #4 of 6 (420 views)
Permalink
Re: stonith resource [In reply to]

Hi Andrew,
                    you can use  lrmadmin -T stonith command to see list of resources which have stonith class.
 
Thanks,
gintu

--- On Thu, 2/9/10, Andrew Beekhof <andrew [at] beekhof> wrote:


From: Andrew Beekhof <andrew [at] beekhof>
Subject: Re: [Linux-HA] stonith resource
To: "General Linux-HA mailing list" <linux-ha [at] lists>
Date: Thursday, 2 September, 2010, 2:49 AM


crm_resource --list  should do it if I understand the question correctly

On Mon, Aug 30, 2010 at 10:16 AM, Ivan Gromov <gromivan [at] rambler> 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
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


gromivan at rambler

Sep 2, 2010, 5:00 PM

Post #5 of 6 (414 views)
Permalink
Re: stonith resource [In reply to]

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 <andrew [at] beekhof> [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 <gromivan [at] rambler>
> 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
> > Linux-HA [at] lists
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
> >
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems


_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


andrew at beekhof

Sep 5, 2010, 11:28 PM

Post #6 of 6 (390 views)
Permalink
Re: stonith resource [In reply to]

On Fri, Sep 3, 2010 at 2:00 AM, Ivan Gromov <gromivan [at] rambler> wrote:
> 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.

Works for me:

[root [at] f1 ~]# crm ra list stonith
apcmaster apcmastersnmp apcsmart
baytech bladehpi
cyclades
drac3 external/drac5
external/dracmc-telnet external/hmchttp external/ibmrsa
external/ibmrsa-telnet
external/ipmi external/kdumpcheck external/rackpdu
external/riloe external/sbd
external/ssh
external/vmware external/xen0 external/xen0-ha
ibmhmc ipmilan
meatware
null nw_rpc100s rcd_serial
rps10 ssh
suicide
wti_mpc wti_nps


>
> Thanks a lot for your help,
> Ivan
>
> * Andrew Beekhof <andrew [at] beekhof> [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 <gromivan [at] rambler>
>> 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
>> > Linux-HA [at] lists
>> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> > See also: http://linux-ha.org/ReportingProblems
>> >
>> _______________________________________________
>> Linux-HA mailing list
>> Linux-HA [at] lists
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha
>> See also: http://linux-ha.org/ReportingProblems
>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.