Hi Andrew, > > When I do not appoint target_role, an error does not occur. > > Is my operation wrong? > > role=Stopped needs to occur after the meta keyword, not as part of the > operation
I was wrong. This targer_role was for MASTER/SLAVE appointment. Thanks, Hideo Yamauchi. --- Andrew Beekhof <and...@beekhof.net> wrote: > On Tue, Jul 28, 2009 at 9:12 AM, <renayama19661...@ybb.ne.jp> wrote: > > Hi, > > > > I tested addition of monitor by a crm command. > > I tried it in environment of Pacemaker(Pacemaker-1-0-c0a1d730fe44) and > > Corosync(1.00). > > > > ------Operation > > ---------------------------------------------------------------- > > [r...@node01 ~]# crm > > crm(live)# configure > > crm(live)configure# monitor prmDummy1:Stopped 10s:60s > > crm(live)configure# commit > > element op: Relax-NG validity error : Expecting an element meta_attributes, > > got nothing > > Relax-NG validity error : Extra element operations in interleave > > element operations: Relax-NG validity error : Element primitive failed to > > validate content > > element primitive: Relax-NG validity error : Element resources has extra > > content: primitive > > element configuration: Relax-NG validity error : Invalid sequence in > > interleave > > element cib: Relax-NG validity error : Element cib failed to validate > > content > > crm_verify[21371]: 2009/07/28_16:02:06 ERROR: main: CIB did not pass > > DTD/schema validation > > Errors found during check: config not valid > > WARNING: crm_verify(8) found errors in the CIB > > INFO: use commit force if you know what you are doing > > crm(live)configure# show > > node node01 > > primitive prmDummy1 ocf:heartbeat:Dummy \ > > \xA0 \xA0 \xA0 \xA0params $id="instance_attributes.id2380645" \ > > \xA0 \xA0 \xA0 \xA0op start interval="0" timeout="60s" on-fail="restart" \ > > \xA0 \xA0 \xA0 \xA0op stop interval="0" timeout="60s" on-fail="block" \ > > \xA0 \xA0 \xA0 \xA0op monitor interval="10s" role="Stopped" timeout="60s" \ > > \xA0 \xA0 \xA0 \xA0meta migration-threshold="1" > > location rsc_location prmDummy1 200: ais-1 > > location rsc_location2 prmDummy1 100: ais-2 > > property $id="cib-bootstrap-options" \ > > \xA0 \xA0 \xA0 \xA0no-quorum-policy="ignore" \ > > \xA0 \xA0 \xA0 \xA0stonith-enabled="false" \ > > \xA0 \xA0 \xA0 \xA0default-resource-stickiness="INFINITY" \ > > \xA0 \xA0 \xA0 \xA0start-failure-is-fatal="false" \ > > \xA0 \xA0 \xA0 \xA0last-lrm-refresh="1229322188" \ > > \xA0 \xA0 \xA0 \xA0is-managed-default="true" \ > > \xA0 \xA0 \xA0 > > \xA0dc-version="1.0.4-c0a1d730fe44af8115a4f8b959acba6a28e3e348" \ > > \xA0 \xA0 \xA0 \xA0cluster-infrastructure="openais" \ > > \xA0 \xA0 \xA0 \xA0expected-quorum-votes="2" > > op_defaults $id="op_defaults-options" > > > > ---------------------------------------------------------------------- > > > > When I do not appoint target_role, an error does not occur. > > Is my operation wrong? > > role=Stopped needs to occur after the meta keyword, not as part of the > operation > > _______________________________________________ > Pacemaker mailing list > Pacemaker@oss.clusterlabs.org > http://oss.clusterlabs.org/mailman/listinfo/pacemaker >
_______________________________________________ Pacemaker mailing list Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker