Hi, On Fri, Nov 30, 2007 at 07:00:04PM +0900, Junko IKEDA wrote: > Hi, > > When I changed a resource parameter using cibadmin, > some other parameters were also changed. > For instance, > # cibadmin -R -X '<primitive id=...>' > > I found that <operations> and <instance_attributes> were deleted. > Please see the attached the file that explained my operation. > Is it expected?
I think so. The -R option means replace. Hence, the resource is replaced with whatever you supply. > -U option for <primitive> tag works well, is it the only way to change that > tag? Either that or you have to provide the complete resource. > if <op> tag was modified with -R option, others tags were not deleted. > # cibadmin -R -X '<op id=...>' I guess that you mean -U here. Thanks, Dejan > > Best Regards, > Junko Ikeda > > NTT DATA INTELLILINK CORPORATION > > # date; crm_resource -L > Fri Nov 30 18:35:43 JST 2007 > Resource Group: grpDummy > prmDummy (heartbeat::ocf:Dummy) > > > # date; crm_resource -r prmDummy -x > Fri Nov 30 18:35:48 JST 2007 > prmDummy (heartbeat::ocf:Dummy): Started prec370d > raw xml: > <primitive id="prmDummy" class="ocf" type="Dummy" provider="heartbeat"> > <operations> > <op id="opDummyStart" name="start" timeout="60s" on_fail="fence"/> > <op id="opDummyMonitor" name="monitor" interval="10s" timeout="10s" > on_fail="fence"/> > <op id="opDummyStop" name="stop" timeout="60s" on_fail="fence"/> > </operations> > <instance_attributes id="atrDummy"> > <attributes> > <nvpair id="atrDummy1" name="delay" value="1"/> > <nvpair id="atrDummy2" name="state" > value="/var/run/heartbeat/rsctmp/Dummy.state"/> > </attributes> > </instance_attributes> > </primitive> > > > # date; cibadmin -U -X '<primitive id="prmDummy" class="ocf" type="Dummy" > provider="heartbeat" resource_stickiness="0">' > Fri Nov 30 18:37:15 JST 2007 > > > # date; crm_resource -r prmDummy -x > Fri Nov 30 18:37:19 JST 2007 > prmDummy (heartbeat::ocf:Dummy): Started prec370d > raw xml: > <primitive id="prmDummy" class="ocf" type="Dummy" provider="heartbeat" > resource_stickiness="0"> > <operations> > <op id="opDummyStart" name="start" timeout="60s" on_fail="fence"/> > <op id="opDummyMonitor" name="monitor" interval="10s" timeout="10s" > on_fail="fence"/> > <op id="opDummyStop" name="stop" timeout="60s" on_fail="fence"/> > </operations> > <instance_attributes id="atrDummy"> > <attributes> > <nvpair id="atrDummy1" name="delay" value="1"/> > <nvpair id="atrDummy2" name="state" > value="/var/run/heartbeat/rsctmp/Dummy.state"/> > </attributes> > </instance_attributes> > </primitive> > > > # date; cibadmin -R -X '<primitive id="prmDummy" class="ocf" type="Dummy" > provider="heartbeat" resource_stickiness="0">' > Fri Nov 30 18:37:28 JST 2007 > > > # date; crm_resource -r prmDummy -x > Fri Nov 30 18:37:30 JST 2007 > prmDummy (heartbeat::ocf:Dummy): Started prec370d > raw xml: > <primitive id="prmDummy" class="ocf" type="Dummy" provider="heartbeat" > resource_stickiness="0"/> > > _______________________________________________ > 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
