Re: Antw: How to modify crm configure by command line

"Ulrich Windl" <[email protected]>
Newsgroups gmane.linux.highavailability.user
Message-ID <[email protected]>
>>> Kristoffer Grönlund<[email protected]> schrieb am 28.07.2014 um 12:10 in
Nachricht <20140728121056.06228063@ultralix>:
> On Mon, 28 Jul 2014 17:45:44 +0800 (CST)
> "Dang Zhiqiang" <[email protected]> wrote:
> 
>> thanks,
>> I know this method, but I want to modify it by command line, provides
>> an interface for other user.
>> 
> 
> This is a bit of a hack, but you can achieve this with the filter
> command:
> 
> crm configure filter "sed '/op start/s/60s/600s/'" test-ip
> 
> It would probably be good to have an update mode for the configure
> commands so that crm configure primitive could make changes like these,
> I will see about adding it in future versions.

The interesting part is the question whether such a change will cause a
restart of the resource. IMHO it shouldn't, but it looks like a configuration
change for the resource. If a restart of the resource is triggered, we don't
need a special command, as "edit" / "filter" will do already.

> 
> // Kristoffer
> 
>> 
>> 
>> At 2014-07-28 05:25:15, "Ulrich Windl"
>> <[email protected]> wrote:
>> >>>> "Dang Zhiqiang" <[email protected]> schrieb am 28.07.2014 um 11:18
>> >>>> in Nachricht
>> ><[email protected]>:
>> >> hi,
>> >> 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"
>> >
>> >"crm configure edit test-ip"?
>> >
>> >> 
>> >> _______________________________________________
>> >> 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 
>> _______________________________________________
>> Linux-HA mailing list
>> [email protected] 
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha 
>> See also: http://linux-ha.org/ReportingProblems 
>> 
> 
> 
> 
> -- 
> // Kristoffer Grönlund
> // [email protected] 
> _______________________________________________
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.