Thank you. My pacemaker version is 1.0.13, don't have filter subcommand, but I think I will implement this function by "delete resource and create same resoure", although doing it more complex, because I need it.
At 2014-07-28 06:10:56, "Kristoffer Grönlund" <[email protected]> wrote: >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. > >// 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
