[Pacemaker] Listing all resources of a specific type

Dan Frincu df.cluster at gmail.com
Wed Feb 20 08:22:01 UTC 2013


Hi,

On Tue, Feb 19, 2013 at 10:42 PM, Donald Stahl <don at blacksun.org> wrote:
> Is there some way of listing all resources that use a specific
> resource agent using crm shell?
>
> For example:
>
> # crm resource list
>  stonith-sbd    (stonith:external/sbd) Started
>  IP1 (ocf::heartbeat:IPaddr2) Started
>  IP2 (ocf::heartbeat:IPaddr2) Started
>  FS1 (ocf::heartbeat:Filesystem) Started
>  FS2 (ocf::heartbeat:Filesystem) Started
>
> I'd like to be able to filter by the resource agents- for example the
> ocf::heartbeat:Filesystem agent.
>
> Much like:
> # crm resource list | grep ocf::heartbeat:Filesystem
>  FS1 (ocf::heartbeat:Filesystem) Started
>  FS2 (ocf::heartbeat:Filesystem) Started
>
> Obviously I can use grep but I'd love to know if there were a native
> way of doing this.

There's crm ra list class:provider:type but I guess you want to find
RA's that are actively used in the configuration. In this case, the
command returns all RA's that match from the ones installed on the
system.

>
> Thanks,
> -Don
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at 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://bugs.clusterlabs.org



-- 
Dan Frincu
CCNA, RHCE




More information about the Pacemaker mailing list