[Pacemaker] re: Pacemaker Digest, Vol 34, Issue 50

Andrew Beekhof andrew at beekhof.net
Wed Sep 22 08:43:33 UTC 2010


On Tue, Sep 21, 2010 at 10:33 AM, jiaju liu <liujiaju86 at yahoo.com.cn> wrote:

>
>
> --- *10年9月21日,周二, pacemaker-request at oss.clusterlabs.org <
> pacemaker-request at oss.clusterlabs.org>* 写道:
>
>
> Message: 5
> Date: Tue, 21 Sep 2010 09:15:16 +0200
> From: Andrew Beekhof <andrew at beekhof.net<http://cn.mc157.mail.yahoo.com/mc/compose?to=andrew@beekhof.net>
> >
> To: The Pacemaker cluster resource manager
>     <pacemaker at oss.clusterlabs.org<http://cn.mc157.mail.yahoo.com/mc/compose?to=pacemaker@oss.clusterlabs.org>
> >
> Subject: Re: [Pacemaker] pingd problem about clone
> Message-ID:
>     <AANLkTi=L0YW-K4rmZO6dMJp4FUyccnKi7W-HbW32ZOgw at mail.gmail.com<http://cn.mc157.mail.yahoo.com/mc/compose?to=L0YW-K4rmZO6dMJp4FUyccnKi7W-HbW32ZOgw@mail.gmail.com>
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Fri, Sep 17, 2010 at 2:38 AM, jiaju liu <liujiaju86 at yahoo.com.cn<http://cn.mc157.mail.yahoo.com/mc/compose?to=liujiaju86@yahoo.com.cn>>
> wrote:
>
> > Clone Set: pingd_data_net
> >      Started: [ oss3 oss2 oss1 ]
> >
> >     I use the command :
> >
> >     crm_resource -g host_list -r pingd_data_net
> >     to check the param host_list
> >
>
> what does the resource definition look like?
>
> *crm configure primitive pingd_data ocf:pacemaker:pingd meta
> target-role=stopped params name=pingd_data op start timeout=100s op stop
> timeout=100s op monitor interval=90s timeout=100s*
> **
>
>  *crm_resource -p host_list -r pingd_data -v "10.53.11.101"*
> **
> *crm configure clone pingd_data_net pingd_data meta
> globally-unique=falsetarget-role=stopped*
> **
> *crm resource pind_data_net start*
> **
> *and then I want to change host_list*
> *so I use command *
> *crm_resource -p host_list -r pingd_data -v "10.53.11.101 10.53.11.100"*
>
>
Given:

primitive FencingChild stonith:fence_xvm \
params pcmk_arg_map="domain:uname" \
op monitor interval="120s" timeout="300" \
op start interval="0" timeout="180s" \
op stop interval="0" timeout="180s"


and

clone Fencing FencingChild \
meta globally-unique="false" migration-threshold="5"

I get the following...

If I (incorrectly) use the clone name, I get the error you see:

[root at pcmk-1 ~]# crm_resource -g pcmk_arg_map -r Fencing
Fencing is active on more than one node, returning the default value for
<null>
Error performing operation: The object/attribute does not exist

But if I (correctly) use the primitive name, it works:

[root at pcmk-1 ~]# crm_resource -g pcmk_arg_map -r FencingChild
domain:uname


Can you check you're using the name of the primitive and not the clone
please?


>
>
> >
> >     the result is
> >
> >     pingd_data_net is active on more than one node, returning the default
> > value for <null>
> >     Error performing operation: The object/attribute does not exist
> >
> >     So If I want to check the parm, what I should do?
> >     Thank you:-)
> >
> >
> > _______________________________________________
> > Pacemaker mailing list: Pacemaker at oss.clusterlabs.org<http://cn.mc157.mail.yahoo.com/mc/compose?to=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
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://oss.clusterlabs.org/pipermail/pacemaker/attachments/20100921/223fb58b/attachment.htm
> >
>
> ------------------------------
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org<http://cn.mc157.mail.yahoo.com/mc/compose?to=Pacemaker@oss.clusterlabs.org>
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
>
> End of Pacemaker Digest, Vol 34, Issue 50
> *****************************************
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100922/79ac39d3/attachment-0002.htm>


More information about the Pacemaker mailing list