how to configure optional resources ?
Andrea MAug 25 2009 — edited Aug 27 2009Hi all,
I'm trying to evaluate Oracle CRS to build active / passive cluster toi run single-instance Oracle databases and external applications.
I'm doing some tests on a two-node linux cluster, and I'm not able to configure "optional" applications, i.e. applications witch might fail without forcing a relocate to a different group.
Let's say i have these applications:
rg4
rg4.main_app
rg4.opt_app
where rg3 is just a "container", a "resource group", rg3.main_app is a higly critical application and rg3.opt_app is a non-critical application.
I have created the resources using these commands:
[oracrs@giallo ~]$ crs_profile -create rg4 -t application \
-a ${ORA_CRS_HOME}/crs/public/act_resgroup.pl \
-o ci=600
[oracrs@giallo ~]$
[oracrs@giallo ~]$ crs_register rg4
[oracrs@giallo ~]$
[oracrs@giallo ~]$ crs_start rg4 -c giallo
Attempting to start `rg4` on member `giallo`
Start of `rg4` on member `giallo` succeeded.
[oracrs@giallo ~]$
[oracrs@giallo ~]$ crs_profile -create rg4.app_main \
-t application \
-r rg4 \
-a ${ORA_CRS_HOME}/crs/public/act_test.sh \
-o st=10,ci=5,ft=2,fi=120,ra=5
[oracrs@giallo ~]$
[oracrs@giallo ~]$ crs_register rg4.app_main
[oracrs@giallo ~]$
[oracrs@giallo ~]$ crs_start rg4.app_main
Attempting to start `rg4.app_main` on member `giallo`
Start of `rg4.app_main` on member `giallo` succeeded.
[oracrs@giallo ~]$
[oracrs@giallo ~]$ crs_profile -create rg4.app_opt \
-t application \
-r rg4.app_main \
-a ${ORA_CRS_HOME}/crs/public/act_test.sh \
-o st=10,ci=5,ft=1,ra=5
[oracrs@giallo ~]$
[oracrs@giallo ~]$ crs_register rg4.app_opt
[oracrs@giallo ~]$
[oracrs@giallo ~]$ crs_start rg4.app_opt
Attempting to start `rg4.app_opt` on member `giallo`
Start of `rg4.app_opt` on member `giallo` succeeded.
[oracrs@giallo ~]$
[oracrs@giallo ~]$
the problem is that if rg4.app_opt fails 5 times, the whole group is failed over the second node.
I want that if rg4.app_opt fails 5 times nothing appen (I don't want users working on rg4.app_main to be disconnected because of o failure in rg4.app_opt).
I know I could achieve this by changing the actoin scripts by forcing it to return 0 when it is used to check rg4.app_opt status, but I would prefer to configure Oracle CRS properly, to have a consistent view of the application status from crs_stat.
How can I do this?