Resources show OFFLINE even though they are ONLINE.

book

Article ID: 100000906

calendar_today

Updated On:

Resolution

This article applies to the environment where theResources are  either in Solaris Local Zone or in Global Zone.
Thisarticle also applies to Resources in the Failover Service Group or in Parallelservice Group.

Symptoms:

If we probe the Resource, it showsOFFLINE even though it is  ONLINE  


Engine_A.log showsfollowing...

2010/02/05 10:51:03 VCS INFO V-16-1-50135 User root firedcommand: MSG_RES_PROBE App1  brecker  from localhost
2010/02/0510:51:08 VCS INFO V-16-1-10306 Resource App1 (Owner: unknown, Group: Prod_SG) isoffline on Sys1 (Previous State = OFFLINE)

Below is the Sample ofApplication Resource.......

Application App1 (
Critical = 0
User =user1
StartProgram = "/opt/myfolder/users/bin/RUNAPPSERVER"
StopProgram ="/opt/myfolder/users/apache/bin/STOPAPPSERVER"
MonitorProcesses ={"/opt/java1.6/bin/java -server" }
ContainerName =zonename
)
-----------------------------------------------------------------------------------------------
NICResource shows as Faulted state eventhough it is ONLINE.

Below is theSample of NIC resource.......

NIC csgnic (
Device = ce4
)

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

Solution:

1) Check /etc/VRTSvcs/conf/config/types.cf

2) Check ApplicationResource in the same file and ensure that if we have followingentry..

static boolean FireDrill = 1

The above entry intypes.cf file means Firedrill is enabled for the Resource.

Firedrillattribute is set either through fdsetup wizard or by running manual commands.

When FireDrill attribute is set to 1 for a resource that is alreadyonline, the agent-framework creates an "online-indicator-file" to make sure theresource is still shown as ONLINE. But when the resource faults, we remove theonline indicator file. When the resource faults for the first time, we removethe file, thereby suppressing all future state-updates. Since the file is nolonger present, the resource shows in OFFLINE or FAULTED ( for persistentresources ).

There are 2  ways to resolve this issue :

A)Turn FireDrill OFF as follows....

Examples:

For NIC Resource:

#haconf -makerw
#hatype -modify NIC Firedrill 0
#haconf -dump-makero

For Application Resource :

#haconf -makerw
#hatype-modify Application Firedrill 0
#haconf -dump -makero


OR


B) If you do not want to turn off the Firedrill, create a hidden file inthe Agent Directory while Application is up and running as follows and probe theresource..

e.g. Consider the Above Application Resourcehere...

#cd /opt/VRTSvcs/bin/Application
#touch .App1   (Notehere that the filename should be the ResourceName)

#hares -probe App1-sys systemname

Repeat the same for NIC resource.

Now it shouldshow you as Online.



 
 

 

Issue/Introduction

Resources show OFFLINE even though they are ONLINE.