On 12.06.2012 17:52, Walter Feddern wrote: > I have a 4 node cluster running about 120 tomcat resources. Currently they > are using the stock tomcat resource script ( ocf:heartbeat:tomcat ) > > As I may need to make some adjustments to the script for our environment, I > would like to move it out of the heartbeat directory. I have created a > directory 'custom', and can edit the resource manually using: > > crm configure edit tomcat_rsc1 > > then making the change using 'vi' > > As I have to make the change to 120 resources, I would like find a way to > automate it a bit more, but have not been able to find an easy way to make > the change on the command line.
The above command also allows listing many resources. And without any resource given, you edit all resources, all nodes and all parameters and defaults. But switching agents while the cluster and the service are running can be tricky. So better check your ":s/bla/blub/g"-foo on a limited number of resources first... But yes, I already did the same successfully when switching some resources to the dev-version of the RA and then back to original when the dev-RA became the real RA. Have fun, Arnold -- Dieses Email wurde elektronisch erstellt und ist ohne handschriftliche Unterschrift gültig.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org