2 Replies Latest reply: Feb 5, 2014 11:21 PM by shiyer RSS

Resource without dependencies start as a result of starting another resource

user633661 Newbie
Currently Being Moderated

Hi,

 

I have a 2-node 11.2.0.4 cluster running on OEL5 (only Grid Infrastructure, no database software present) and I'm testing the behavior of dependencies between user-defined resources. For testing purposes I created a resource named "checkFile" using the action script available here: http://docs.oracle.com/cd/E11882_01/rac.112/e41959/resatt.htm#CWADD91497 and two application VIPs, namely MyAppsVip and MyAppsVip2. The checkFile resource has the following profile (if necessary I can post the output of the command "crsctl stat res checkFile -f"):

 

ACTION_SCRIPT=/u01/acfs_mount/monitoring_sctipt.sh

PLACEMENT=restricted

HOSTING_MEMBERS=ractest1 ractest2

CHECK_INTERVAL=30

RESTART_ATTEMPTS=2

START_DEPENDENCIES=hard(MyAppsVip,MyAppsVip2) pullup:always(MyAppsVip) pullup:always(MyAppsVip2)

STOP_DEPENDENCIES=hard(MyAppsVip,MyAppsVip)

 

Here are the start dependencies of all three resources:

 

[grid@ractest1 ~]$ crsctl stat res checkFile -dependency

================================================================================

Resource Start Dependencies

================================================================================

-----------------------------------checkFile------------------------------------

checkFile(cluster_resource)->

| MyAppsVip(app.appvip.type)[hard,pullup:always]

| | ora.net1.network(ora.network.type)[hard,pullup]

| MyAppsVip2(app.appvip_net1.type)[hard,pullup:always]

| | ora.net1.network(ora.network.type)[hard,pullup]

--------------------------------------------------------------------------------

 

[grid@ractest1 ~]$ crsctl stat res MyAppsVip -dependency

================================================================================

Resource Start Dependencies

================================================================================

-----------------------------------MyAppsVip------------------------------------

MyAppsVip(app.appvip.type)->

| ora.net1.network(ora.network.type)[hard,pullup]

--------------------------------------------------------------------------------

 

[grid@ractest1 ~]$ crsctl stat res MyAppsVip2 -dependency

================================================================================

Resource Start Dependencies

================================================================================

-----------------------------------MyAppsVip2-----------------------------------

MyAppsVip2(app.appvip_net1.type)->

| ora.net1.network(ora.network.type)[hard,pullup]

--------------------------------------------------------------------------------

[grid@ractest1 ~]$

 

 

And now the test and the question:

 

[grid@ractest1 ~]$ crsctl stat res -t -w "(NAME == 'checkFile') OR (NAME co 'MyAppsVip')"

--------------------------------------------------------------------------------

NAME           TARGET  STATE        SERVER                   STATE_DETAILS

--------------------------------------------------------------------------------

Cluster Resources

--------------------------------------------------------------------------------

MyAppsVip

      1        OFFLINE OFFLINE

MyAppsVip2

      1        OFFLINE OFFLINE

checkFile

      1        OFFLINE OFFLINE

[grid@ractest1 ~]$ crsctl start res MyAppsVip -n ractest2

CRS-2672: Attempting to start 'MyAppsVip' on 'ractest2'

CRS-2676: Start of 'MyAppsVip' on 'ractest2' succeeded

CRS-2672: Attempting to start 'MyAppsVip2' on 'ractest2'

CRS-2676: Start of 'MyAppsVip2' on 'ractest2' succeeded

CRS-2672: Attempting to start 'checkFile' on 'ractest2'

CRS-2676: Start of 'checkFile' on 'ractest2' succeeded

[grid@ractest1 ~]$ crsctl stat res -t -w "(NAME == 'checkFile') OR (NAME co 'MyAppsVip')"

--------------------------------------------------------------------------------

NAME           TARGET  STATE        SERVER                   STATE_DETAILS

--------------------------------------------------------------------------------

Cluster Resources

--------------------------------------------------------------------------------

MyAppsVip

      1        ONLINE  ONLINE       ractest2

MyAppsVip2

      1        ONLINE  ONLINE       ractest2

checkFile

      1        ONLINE  ONLINE       ractest2

[grid@ractest1 ~]$

 

 

If I start the resource MyAppsVip, why are the resources MyAppsVip2 and checkFile also started? The checkFile resource has as a hard and pullup dependency on the two application VIPs and not the other way around. So when the checkFile resource is started the two VIPs should also start if not already running, but when starting one of the VIPs, only that one VIP should start and not the checkFile resource, since the application VIPs by themselves don't have any dependencies apart a dependency on ora.net1.network.

 

Thanks in advance for any answer.

 

Jure

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points