For details on how to configure cluster applications, see "Chapter 6 Building Cluster Applications."
When configuring cluster applications on guest OSes, you must set up I/O fencing for all cluster applications to which Gds resources or Fsystem resources corresponding to the shared disk are registered.
This section explains how to set up I/O fencing for all cluster applications to which Gds resources or Fsystem resources corresponding to the shared disk are registered.
Perform the following to set up I/O fencing:
Creating Cmdline resources and setting up Online and Offline scripts
Setting up userApplication scripts (PreOnline, OfflineDone, and Fault scripts)
In the Cmdline resource settings, add the Start script, the Stop script, and the Check script in the following format:
<Start script>
/opt/SMAW/bin/hvsgpr -c
<Stop script>
/opt/SMAW/bin/hvsgpr -u
<Check script>
/opt/SMAW/bin/hvsgpr -m
To create Cmdline resources, see, "6.7.3.1 Setting Up Cmdline Resources."
In the attribute settings of the Cmdline resources, set the AutoRecover attribute to disabled ("0"). Do not change the default settings for other attributes.
In the cluster application settings, add the PreOnline and OfflineDone scripts in the following format.
<PreOnline script>
/opt/SMAW/bin/hvsgpr -r
<OfflineDone script>
/opt/SMAW/bin/hvsgpr -o
Select "(PreOnlineScript=)" of "Machines+Basics."
Consistency check ...
Machines+Basics (app1:consistent)
1) HELP
2) -
3) SAVE+EXIT
4) REMOVE+EXIT
5) AdditionalMachine
6) AdditionalConsole
7) Machines[0]=vm21RMS
8) Machines[1]=vm22RMS
9) (PreCheckScript=)
10) (PreOnlineScript=)
11) (PostOnlineScript=)
12) (PreOfflineScript=)
13) (OfflineDoneScript=)
14) (FaultScript=)
15) (AutoStartUp=yes)
16) (AutoSwitchOver=HostFailure|ResourceFailure|ShutDown)
17) (PreserveState=no)
18) (PersistentFault=0)
19) (ShutdownPriority=)
20) (OnlinePriority=)
21) (StandbyTransitions=ClearFaultRequest|StartUp|SwitchRequest)
22) (LicenseToKill=no)
23) (AutoBreak=yes)
24) (AutoBreakMaintMode=no)
25) (HaltFlag=yes)
26) (PartialCluster=0)
27) (ScriptTimeout=)
Choose the setting to process:10
Select "FREECHOICE" and enter the full path of the PreOnline script.
1) HELP 2) RETURN 3) NONE 4) FREECHOICE Enter the command line to start prior to the application becoming ONLINE:4 >> /opt/SMAW/bin/hvsgpr -r
Select "(OfflineDoneScript=)" of "Machines+Basics."
Consistency check ...
Machines+Basics (app1:consistent)
1) HELP
2) -
3) SAVE+EXIT
4) REMOVE+EXIT
5) AdditionalMachine
6) AdditionalConsole
7) Machines[0]=vm21RMS
8) Machines[1]=vm22RMS
9) (PreCheckScript=)
10) (PreOnlineScript='/opt/SMAW/bin/hvsgpr~-r')
11) (PostOnlineScript=)
12) (PreOfflineScript=)
13) (OfflineDoneScript=)
14) (FaultScript=)
15) (AutoStartUp=yes)
16) (AutoSwitchOver=HostFailure|ResourceFailure|ShutDown)
17) (PreserveState=no)
18) (PersistentFault=0)
19) (ShutdownPriority=)
20) (OnlinePriority=)
21) (StandbyTransitions=ClearFaultRequest|StartUp|SwitchRequest)
22) (LicenseToKill=no)
23) (AutoBreak=yes)
24) (AutoBreakMaintMode=no)
25) (HaltFlag=yes)
26) (PartialCluster=0)
27) (ScriptTimeout=)
Choose the setting to process:13
Select "FREECHOICE" and enter the full path of the OfflineDone script.
1) HELP 2) RETURN 3) NONE 4) FREECHOICE Enter the command line to start prior to the application becoming ONLINE:4 >> /opt/SMAW/bin/hvsgpr -o
In the attribute settings of the cluster application, if the HaltFlag attribute is set to enabled ("1"), add the Fault script in the following format.
<Fault script>
/opt/SMAW/bin/hvsgpr -f
Select "(FaultScript=)" of "Machines+Basics."
Consistency check ...
Machines+Basics (app1:consistent)
1) HELP
2) -
3) SAVE+EXIT
4) REMOVE+EXIT
5) AdditionalMachine
6) AdditionalConsole
7) Machines[0]=vm21RMS
8) Machines[1]=vm22RMS
9) (PreCheckScript=)
10) (PreOnlineScript='/opt/SMAW/bin/hvsgpr~-r')
11) (PostOnlineScript=)
12) (PreOfflineScript=)
13) (OfflineDoneScript='/opt/SMAW/bin/hvsgpr~-o')
14) (FaultScript=)
15) (AutoStartUp=yes)
16) (AutoSwitchOver=HostFailure|ResourceFailure|ShutDown)
17) (PreserveState=no)
18) (PersistentFault=0)
19) (ShutdownPriority=)
20) (OnlinePriority=)
21) (StandbyTransitions=ClearFaultRequest|StartUp|SwitchRequest)
22) (LicenseToKill=no)
23) (AutoBreak=yes)
24) (AutoBreakMaintMode=no)
25) (HaltFlag=yes)
26) (PartialCluster=0)
27) (ScriptTimeout=)
Choose the setting to process:14
Select "FREECHOICE" and enter the full path of the Fault script.
1) HELP 2) RETURN 3) NONE 4) FREECHOICE Enter the command line to start prior to the application becoming ONLINE:4 >> /opt/SMAW/bin/hvsgpr -f