Thursday, March 6, 2014

Adding Resources by Using crsctl

Resources can be registered in Oracle Clusterware by using the crsctl add resource command.

To add the Apache web server as:

An administrator-managed resource:

# crsctl add resource myApache -type cluster_resource -attr "ACTION_SCRIPT='/u01/ogi/scripts/myapache.scr', PLACEMENT=’restricted’, HOSTING_MEMBERS=’host01 host02’, CHECK_INTERVAL=’30’,START_DEPENDENCIES=’hard(appsvip)’,
STOP_DEPENDENCIES=’hard(appsvip)’, RESTART_ATTEMPTS=’2’,"


A policy-managed resource:

# crsctl add resource myApache -type cluster_resource -attr "ACTION_SCRIPT=’/u01/ogi/scripts/myapache.scr’, PLACEMENT=’restricted’, SERVER_POOLS=’myServerPool’, CHECK_INTERVAL=’30’, START_DEPENDENCIES=’hard(appsvip)’, STOP_DEPENDENCIES=’hard(appsvip)’,RESTART_ATTEMPTS=’2’,"

To delete the resource:

# crsctl delete resource myApache


1 comment:


  1. My spouse and I love your blog and find almost all of your posts to be just what I’m looking for. Appreciating the persistence you put into your blog and the detailed information you provide. I found another one blog like you Oracle Cloud Infrastructure .Actually I was looking for the same information on internet for Oracle Cloud Infrastructure and came across your blog. I am impressed by the information that you have on this blog. Thanks once more for all the details.

    ReplyDelete