> > 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.
I tried is again and attached it. I think I misused it... <primitive> tag has some child tags. But <op> doesn't have it. -R option would have an effect on all tags if a parent tag is specified, right? Thanks, Junko
# date; crm_resource -r prmDummy -x
Mon Dec 3 10:20:27 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 -R -X '<op id="opDummyMonitor" name="monitor" interval="10s"
timeout="10s" on_fail="fence" disabled="true"/>
Mon Dec 3 10:20:58 JST 2007
# date; crm_resource -r prmDummy -x
Mon Dec 3 10:21:17 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" disabled="true"/>
<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>
hb_report.tar.gz
Description: Binary data
_______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
