[Linux-HA] cibadmin -R or -U to change a resource parameter
Junko IKEDA
ikedaj at intellilink.co.jp
Sun Dec 2 18:52:09 MST 2007
> > 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
-------------- next part --------------
# 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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hb_report.tar.gz
Type: application/octet-stream
Size: 31292 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20071203/5096c1a8/hb_report.tar-0001.obj
More information about the Linux-HA
mailing list