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.
ldg2# haconf -makerw
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.
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.
ldg2# hares -modify APPL_sleep_88888 MonitorProcesses "/opt/VRTSvcs/lbin/mysleep/mysleep 100" -sys ldg3
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"
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
example:
ldg2# hares -global APPL_sleep_88888 MonitorProcesses "/opt/VRTSvcs/lbin/mysleep/mysleep 88888"