7.19.1 HA Toolkit Exの設定例
次のファイルの設定例を示します。
すべての系で,同じ設定をしてください。
-
定義ファイル(servers)
-
termcommandオペランドで指定するHiRDB停止コマンド
-
自動運用での起動用バッチファイル
(1) 定義ファイル(servers)の設定例
C:\HATkEx\HAmon\etc\serversの設定例を次に示します。
/**************************** BES1 ***************************/ server name HRD1/bes1, alias bes1, termcommand C:\HATkEx\HAmon\etc\bes1_end.bat, switch_nosby actfail, onl_timming act, patrol 60; /**************************** BES2 ***************************/ server name HRD1/bes2, alias bes2, termcommand C:\HATkEx\HAmon\etc\bes2_end.bat, switch_nosby actfail, onl_timming act, patrol 60; /**************************** BES3 ***************************/ server name HRD1/bes3, alias bes3, termcommand C:\HATkEx\HAmon\etc\bes3_end.bat, switch_nosby actfail, onl_timming act, patrol 60; /**************************** BES4 ***************************/ server name HRD1/bes4, alias bes4, termcommand C:\HATkEx\HAmon\etc\bes4_end.bat, switch_nosby actfail, onl_timming act, patrol 60; /**************************** BES5 ***************************/ server name HRD1/bes5, alias bes5, termcommand C:\HATkEx\HAmon\etc\bes5_end.bat, switch_nosby actfail, onl_timming act, patrol 60; /**************************** BES6 ***************************/ server name HRD1/bes6, alias bes6, termcommand C:\HATkEx\HAmon\etc\bes6_end.bat, switch_nosby actfail, onl_timming act, patrol 60;
(2) HiRDB停止コマンドの設定例
C:\HATkEx\HAmon\etc\bes[n]※_end.batファイルの内容を次に示します。
@rem #################### stop HiRDB ##################################### call C:\\win32app\hitachi\hirdb_p\SAMPLE\SAMPLECONF\HiRDBCMD.BAT cd %PDDIR% %PDDIR%\bin\pdstop -z -s bes[n]※ exit
- 注※
-
[n]は,サーバごとに1〜6に変えて作成してください。
(3) 自動運用での起動用バッチファイルの設定例
自動運用での起動用バッチファイルの設定例を次に示します。
系1でのC:¥HATkEx¥HAmon¥etc¥hatestart_online.batファイルの内容を次に示します。
@rem ############# ONLINE Permission ################################# C:\HATkEx\HAmon\bin\hateactonl bes1 C:\HATkEx\HAmon\bin\hateactonl bes2 @rem ############# BES1,BES2 ONLINE ############################ %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell -Command "Start-ClusterGroup bes1 -Cluster node1" %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell -Command "Start-ClusterGroup bes2 -Cluster node1" @rem ############# start HiRDB and all-BES ############## call C:\\win32app\hitachi\hirdb_p\SAMPLE\SAMPLECONF\HiRDBCMD.BAT @net start HiRDBClusterService @if "%ERRORLEVEL%"=="0" @goto end cd %PDDIR% %PDDIR%\bin\pdstart -q :end pause
系2でのC:¥HATkEx¥HAmon¥etc¥hatestart_online.batファイルの内容を次に示します。
@rem ############# ONLINE Permission ################################# C:\HATkEx\HAmon\bin\hateactonl bes3 C:\HATkEx\HAmon\bin\hateactonl bes4 @rem ############# BES3,BES4 ONLINE ############################ %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell -Command "Start-ClusterGroup bes3 -Cluster node2" %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell -Command "Start-ClusterGroup bes4 -Cluster node2" @rem ############# start HiRDB and all-BES ############## call C:\\win32app\hitachi\hirdb_p\SAMPLE\SAMPLECONF\HiRDBCMD.BAT @net start HiRDBClusterService @if "%ERRORLEVEL%"=="0" @goto end cd %PDDIR% %PDDIR%\bin\pdstart -q :end pause
系3でのC:¥HATkEx¥HAmon¥etc¥hatestart_online.batファイルの内容を次に示します。
@rem ############# ONLINE Permission ################################# C:\HATkEx\HAmon\bin\hateactonl bes5 C:\HATkEx\HAmon\bin\hateactonl bes6 @rem ############# BES5,BES6 ONLINE ############################ %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell -Command "Start-ClusterGroup bes5 -Cluster node3" %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell -Command "Start-ClusterGroup bes6 -Cluster node3" @rem ############# start HiRDB and all-BES ############## call C:\\win32app\hitachi\hirdb_p\SAMPLE\SAMPLECONF\HiRDBCMD.BAT @net start HiRDBClusterService @if "%ERRORLEVEL%"=="0" @goto end cd %PDDIR% %PDDIR%\bin\pdstart -q :end pause