How to configure Veritas Cluster Server (VCS) resource attribute on each node differently

book

Article ID: 100007574

calendar_today

Updated On:

Resolution

This is also known as VCS resource attribute localize.For some resource types and cluster application environment, it may be necessary to configure a resource attribute parameter differently for each node.

The following procedure shows how to localize an Application resource attribute MonitoprProcesses on each node locally. 

  1. Open VCS configuration.

ldg2# haconf -makerw

  1. The Application  resource used in this example is called APPL_sleep_88888.

ldg2# hares -display APPL_sleep_88888 | grep MonitorProcesses
... snip ...

APPL_sleep_88888 MonitorProcesses      global     "/opt/VRTSvcs/lbin/mysleep/mysleep 88888"

As we can see that the attribute MonitorProcesses is current on default setting as "global" meaning it is set the same on all nodes.

  1. Localize it so that  user can set different parameters for the same attribute MonitorProcesses on each node.

ldg2# hares -local APPL_sleep_88888 MonitorProcesses

The command below shows the attribute is now changed from "-global" to "-local"

ldg2# hares -display APPL_sleep_88888 | grep MonitorProcesses
... snip ...

APPL_sleep_88888 MonitorProcesses      ldg2       "/opt/VRTSvcs/lbin/mysleep/mysleep 88888"
APPL_sleep_88888 MonitorProcesses      ldg3       "/opt/VRTSvcs/lbin/mysleep/mysleep 88888"

where ldg2 and ldg3 are the host names.

  1. Localize MonitorProcesses by setting MonitorProcesses on node ldg3 with a different argument 100.

ldg2# hares -modify APPL_sleep_88888 MonitorProcesses "/opt/VRTSvcs/lbin/mysleep/mysleep 100" -sys ldg3

  1. Check and verify the result:

ldg2# hares -display APPL_sleep_88888 | grep MonitorProcesses
APPL_sleep_88888 ArgListValues         ldg2       State 1       1       IState  1       0       User    1       root    StartProgram    1       /opt/VRTSvcs/lbin/mysleep/start_sleep_88888     StopProgram    

... snip ...

APPL_sleep_88888 MonitorProcesses      ldg2       "/opt/VRTSvcs/lbin/mysleep/mysleep 88888"
APPL_sleep_88888 MonitorProcesses      ldg3       "/opt/VRTSvcs/lbin/mysleep/mysleep 100"

  1. Write the change made to on disk configuration file and close up configuration.

ldg2# haconf -dump -makero

The change made is in the main.cf

ldg2# grep MonitorProcesses main.cf

ldg2# grep MonitorProcesses main.cf
                MonitorProcesses @ldg2 = { "/opt/VRTSvcs/lbin/mysleep/mysleep 88888" }
                MonitorProcesses @ldg3 = { "/opt/VRTSvcs/lbin/mysleep/mysleep 100" }              <<<<< new localized parameter

  1. To set the "localized" attribute back to global back .

example:

ldg2# hares -global APPL_sleep_88888 MonitorProcesses "/opt/VRTSvcs/lbin/mysleep/mysleep 88888"


 

 

 

Issue/Introduction

How to configure Veritas Cluster Server (VCS) resource attribute on each node differently