Video Screencast Help

Is it possible to change the RestartLimit for an indvidual resouce?

Created: 26 Sep 2012 • Updated: 26 Sep 2012 | 3 comments
This issue has been solved. See solution.

Hello all,

Environment:

rsd9# uname -a
AIX rsd9 3 5 00C07C544C00
EngineVersion       5.0.30.0
 

I have an resource of type "APPLICATION". Is it possible to change the restartlimit of the individual resource rather than the resource type  (where I would be change it for all resources of type APPLICATION)?

I would like to set the restartlimit attribute to 2. In other words, I would like for the resource to try and restart twice before either getting marked as faulted or causing a cluster failover.

Here is the hares -display for the resource that I am trying to change.

rsd9# hares -display app_esp
#Resource    Attribute        System     Value
app_esp      Group            global     sg_ediprod
app_esp      Type             global     Application
app_esp      AutoStart        global     1
app_esp      Critical         global     0
app_esp      Enabled          global     1
app_esp      LastOnline       global     rsd9
app_esp      MonitorOnly      global     0
app_esp      ResourceOwner    global     unknown
app_esp      TriggerEvent     global     0
app_esp      ArgListValues    rs8e       User   1       ""      StartProgram    1       "/usr/lpp/esp_mel_prod_clusa/esp/start_stop_CybAgent.sh start"  StopProgram     1       "/usr/lpp/esp_mel_prod_clusa/esp/start_stop_CybAgent.sh stop"   CleanProgram    1       "/usr/lpp/esp_mel_prod_clusa/esp/start_stop_CybAgent.sh stop"   MonitorProgram  1       "/opt/VRTSvcs/bin/scripts/GeneralApp app_esp monitor NO-OP root esp_mel_prod_clusa esp_mel_prod_clusa 2000 NO-OP"       PidFiles        0       MonitorProcesses        0
app_esp      ArgListValues    rsd9       User   1       ""      StartProgram    1       "/usr/lpp/esp_mel_prod_clusa/esp/start_stop_CybAgent.sh start"  StopProgram     1       "/usr/lpp/esp_mel_prod_clusa/esp/start_stop_CybAgent.sh stop"   CleanProgram    1       "/usr/lpp/esp_mel_prod_clusa/esp/start_stop_CybAgent.sh stop"   MonitorProgram  1       "/opt/VRTSvcs/bin/scripts/GeneralApp app_esp monitor NO-OP root esp_mel_prod_clusa esp_mel_prod_clusa 2000 NO-OP"       PidFiles        0       MonitorProcesses        0
app_esp      ConfidenceLevel  rs8e       0
app_esp      ConfidenceLevel  rsd9       100
app_esp      Flags            rs8e
app_esp      Flags            rsd9
app_esp      IState           rs8e       not waiting
app_esp      IState           rsd9       not waiting
app_esp      Probed           rs8e       1
app_esp      Probed           rsd9       1
app_esp      Start            rs8e       0
app_esp      Start            rsd9       1
app_esp      State            rs8e       OFFLINE
app_esp      State            rsd9       ONLINE
app_esp      CleanProgram     global     /usr/lpp/esp_mel_prod_clusa/esp/start_stop_CybAgent.sh stop
app_esp      ComputeStats     global     0
app_esp      MonitorProcesses global
app_esp      MonitorProgram   global     /opt/VRTSvcs/bin/scripts/GeneralApp app_esp monitor NO-OP root esp_mel_prod_clusa esp_mel_prod_clusa 2000 NO-OP
app_esp      PidFiles         global
app_esp      ResourceInfo     global     State  Stale   Msg             TS
app_esp      StartProgram     global     /usr/lpp/esp_mel_prod_clusa/esp/start_stop_CybAgent.sh start
app_esp      StopProgram      global     /usr/lpp/esp_mel_prod_clusa/esp/start_stop_CybAgent.sh stop
app_esp      User             global
app_esp      MonitorTimeStats rs8e       Avg    0       TS
app_esp      MonitorTimeStats rsd9       Avg    0       TS

Thanks in advance,

George

 

Comments 3 CommentsJump to latest comment

mikebounds's picture

Yes use:

 hares -override app_esp RestartLimit
 hares -modify app_esp RestartLimit 2

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has helped you, please vote or mark as solution

SOLUTION
Marianne's picture

 

You can override some resource type static attributes and assign them resource-specific values. 
 
Appendix C of VCS Admin Guide contains a table with Resource Type attributes, indicating which ones can be overriden. RestartLimit is one of them:
RestartLimit
(user-defined)
Note: This attribute can
be overridden.
 
To override a type’s static attribute:
hares -override <resource> <static_attribute>

Followed by changing attribute for the resource:

hares -modify <resource> <attr> <value>
 
 
 
**** EDIT **** 
OOPS... Way too slow....... half asleep already....

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links