Moullé Alain <[email protected]> writes:

> Le 28/07/2014 11:45, Dang Zhiqiang a écrit :
>
>>>> I want to modify op start timeout value through command line, but I search
>>>> on internet find nothing.
>>>> I try crm_resource  comand, but I only modify params and meta.
>>>>
>>>>
>>>> root@host2:~# crm configure show test-ip
>>>> primitive test-ip ocf:openindiana:IPaddr \
>>>>          params ip="192.168.1.253" nic="igb0" cidr_netmask="24" \
>>>>          op start interval="0s" timeout="60s" on-fail="restart" \
>>>>          op monitor interval="10s" timeout="60s" on-fail="restart" \
>>>>          op stop interval="0s" timeout="60s" on-fail="stop" \
>>>>          meta target-role="Stopped"
>
> I think there is no easy command line to modify a timeout, except if
> you can write a good filter script to be used on
> command line such as :
> crm -F configure filter "sed, or whatever ..."

I guess using XML would be more robust, try something like this:

# cibadmin --replace 
--xpath="/cib/configuration/resources/primitive[@id='test-ip']/operations/op[@name='start']"
 --xml-text '<op name="start" interval="0" timeout="61s" id="test-ip-start-0"/>'
-- 
Regards,
Feri.
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to