[Pacemaker] Changing name/location of resource script

Arnold Krille arnold at arnoldarts.de
Tue Jun 12 16:12:10 EDT 2012


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20120612/225ccc09/attachment-0003.sig>


More information about the Pacemaker mailing list