[Linux-HA] cibadmin -R or -U to change a resource parameter
Junko IKEDA
ikedaj at intellilink.co.jp
Fri Nov 30 03:00:04 MST 2007
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?
-U option for <primitive> tag works well, is it the only way to change that
tag?
if <op> tag was modified with -R option, others tags were not deleted.
# cibadmin -R -X '<op id=...>'
Best Regards,
Junko Ikeda
NTT DATA INTELLILINK CORPORATION
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hb_report.tar.gz
Type: application/octet-stream
Size: 34224 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20071130/dc73ec19/hb_report.tar-0001.obj
-------------- next part --------------
# 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"/>
More information about the Linux-HA
mailing list