Systemwalker Operation Managerをクラスタアプリケーションとして登録する手順を説明します。
1) RMSの停止とRMS Wizardの起動
クラスタアプリケーションを登録する前に、RMSが起動していないことをClusterAdminまたは“hvdisp”コマンドで確認します。RMSが動作している場合は、クラスタシステムを構成するすべてのノードでClusterAdminまたは“hvshut”コマンドを実行してRMSを停止してください。
“hvdisp”コマンドおよび“hvshut”コマンドの詳細は、PRIMECLUSTERのマニュアルを参照してください。
“hvshut”コマンドを起動し、RMSを停止する例:
# /opt/SMAW/SMAWRrms/bin/hvshut -a |
“hvw”コマンドを実行し、RMS Wizardを起動します。
“hvw”コマンドの詳細は、PRIMECLUSTERのマニュアルを参照してください。
configurationファイル名を“config”としてRMS Wizardを起動する例:
# /opt/SMAW/SMAWRrms/bin/hvw -n config |
→“Main configuration menu”が表示されます。
注意
他製品と共存している場合、Configurationファイルは各製品共通のものを指定してください。異なる指定をするとすでに設定済みの他製品の設定情報が消去される場合があります。
2) userApplication(クラスタアプリケーション)の設定
以下の手順に従ってクラスタアプリケーションの設定をします。
“Application-Create”を選択します。
linux01: Main configuration menu, current configuration: config No RMS active in the cluster 1) HELP 10) Configuration-Remove 2) QUIT 11) Configuration-Freeze 3) Application-Create 12) Configuration-Thaw 4) Application-Edit 13) Configuration-Edit-Global-Settings 5) Application-Remove 14) Configuration-Consistency-Report 6) Application-Clone 15) Configuration-ScriptExecution 7) Configuration-Generate 16) RMS-CreateMachine 8) Configuration-Activate 17) RMS-RemoveMachine 9) Configuration-Copy Choose an action: 3
“STANDBY”を選択します。
Creation: Application type selection menu: 1) HELP 7) SCALABLE 2) QUIT 8) STANDBY 3) RETURN 4) OPTIONS 5) DEMO 6) GENERIC Application Type: 8
“ApplicationName”を選択し、userApplication名を設定します。
Settings of turnkey wizard "STANDBY" (APP1:not yet consistent) 1) HELP 4) REMOVE+EXIT 2) NO-SAVE+EXIT 5) ApplicationName=APP1 3) SAVE+EXIT 6) Machines+Basics(-) Choose the setting to process: 5
“FREECHOICE”を設定します。
1) HELP 2) RETURN 3) FREECHOICE Enter the name of this turnkey type wizard name: 3
“ApplicationName”を設定します。アプリケーション名は任意です。“OP1”を指定した例を示します。
>> OP1
“Machines+Basics”を選択し、ノード設定と基本設定を行います。
Settings of turnkey wizard "STANDBY" (OP1:not yet consistent) 1) HELP 4) REMOVE+EXIT 2) NO-SAVE+EXIT 5) ApplicationName=OP1 3) SAVE+EXIT 6) Machines+Basics(-) Choose the setting to process: 6
“AdditionalMachine”を選択します。
Machines+Basics (op1:consistent) 1) HELP 14) (AutoStartUp=no) 2) - 15) (AutoSwitchOver=No) 3) SAVE+EXIT 16) (PreserveState=no) 4) REMOVE+EXIT 17) (PersistentFault=0) 5) AdditionalMachine 18) (ShutdownPriority=) 6) AdditionalConsole 19) (OnlinePriority=) 7) Machines[0]=linux01RMS 20) (StandbyTransitions=) 8) (PreCheckScript=) 21) (LicenseToKill=no) 9) (PreOnlineScript=) 22) (AutoBreak=yes) 10) (PostOnlineScript=) 23) (HaltFlag=no) 11) (PreOfflineScript=) 24) (PartialCluster=0) 12) (OfflineDoneScript=) 25) (ScriptTimeout=) 13) (FaultScript=) Choose the setting to process: 5
“linux02RMS”を選択します。運用ノードをMachines[0]、待機ノードをMachines[1]に設定します。
1) HELP 2) RETURN 3) linux01RMS 4) linux02RMS Choose a machine for this application: 4
“AutoSwitchOver”を選択します。
Machines+Basics (op1:consistent) 1) HELP 14) (FaultScript=) 2) - 15) (AutoStartUp=no) 3) SAVE+EXIT 16) (AutoSwitchOver=No) 4) REMOVE+EXIT 17) (PreserveState=no) 5) AdditionalMachine 18) (PersistentFault=0) 6) AdditionalConsole 19) (ShutdownPriority=) 7) Machines[0]=linux01RMS 20) (OnlinePriority=) 8) Machines[1]=linux02RMS 21) (StandbyTransitions=) 9) (PreCheckScript=) 22) (LicenseToKill=no) 10) (PreOnlineScript=) 23) (AutoBreak=yes) 11) (PostOnlineScript=) 24) (HaltFlag=no) 12) (PreOfflineScript=) 25) (PartialCluster=0) 13) (OfflineDoneScript=) 26) (ScriptTimeout=) Choose the setting to process: 16
“HOSTFAILURE”と“RESOURCEFAILURE”を選択します。
ここでは、ノード故障時、リソース故障時にフェールオーバさせる“HOSTFAILURE”と“RESOURCEFAILURE”を設定しています。この値は、実際のクラスタシステムの運用によって変更してください。
Set flags for AutoSwitchOver: Currently set: NO (N) 1) HELP 4) DEFAULT 7) RESOURCEFAILURE(R) 2) - 5) NO(N) 8) SHUTDOWN(S) 3) SAVE+RETURN 6) HOSTFAILURE(H) Choose one of the flags: 6 Set flags for AutoSwitchOver: Currently set: HOSTFAILURE (H) 1) HELP 4) DEFAULT 7) RESOURCEFAILURE(R) 2) - 5) NO(N) 8) SHUTDOWN(S) 3) SAVE+RETURN 6) NOT:HOSTFAILURE(H) Choose one of the flags: 7
設定後、“SAVE+RETURN”を選択します。
Set flags for AutoSwitchOver: Currently set: HOSTFAILURE,RESOURCEFAILURE (HR) 1) HELP 4) DEFAULT 7) NOT:RESOURCEFAILURE(R) 2) - 5) NO(N) 8) SHUTDOWN(S) 3) SAVE+RETURN 6) NOT:HOSTFAILURE(H) Choose one of the flags: 3
設定後、“SAVE+EXIT”を選択します。
ここでは、RMS起動時にクラスタアプリケーションを自動起動しないように“AutoStartUp”を“no”に設定しています。この値は、実際のクラスタシステムの運用によって変更してください。その他の値についても同様に、実際のクラスタシステムの運用によって変更してください。
Machines+Basics (op1:consistent) 1) HELP 2) - 3) SAVE+EXIT 4) REMOVE+EXIT 5) AdditionalMachine 6) AdditionalConsole 7) Machines[0]=linux01RMS 8) Machines[1]=linux02RMS 9) (PreCheckScript=) 10) (PreOnlineScript=) 11) (PostOnlineScript=) 12) (PreOfflineScript=) 13) (OfflineDoneScript=) 14) (FaultScript=) 15) (AutoStartUp=no) 16) (AutoSwitchOver=HostFailure|ResourceFailure) 17) (PreserveState=no) 18) (PersistentFault=0) 19) (ShutdownPriority=) 20) (OnlinePriority=) 21) (StandbyTransitions=) 22) (LicenseToKill=no) 23) (AutoBreak=yes) 24) (HaltFlag=no) 25) (PartialCluster=0) 26) (ScriptTimeout=) Choose the setting to process: 3
3)リソースの設定
クラスタアプリケーションにリソースを登録します。ここでは、以下のリソースを用いてクラスタアプリケーションを設定する手順を説明します。
Fsystemリソース(共有ディスクリソース)
Glsリソース(引継ぎIPアドレスリソース)
プロシジャリソース(状態遷移プロシジャ)
注意
クラスタアプリケーションを構成するすべてのノードの/etc/fstab(PRIMECLUSTER 4.2A00の場合)または/etc/fstab.pcl(PRIMECLUSTER 4.2A30以降の場合)に、リソースとして使用するマウントポイントを事前に定義しておく必要があります。詳細については、PRIMECLUSTERマニュアルを参照してください。
Glsリソースの設定前に仮想インタフェースと引継ぎ仮想インタフェースの設定を行っておく必要があります。詳細については、PRIMECLUSTERマニュアルを参照してください。
[Fsystemリソースの設定]
“LocalFileSystem”を選択し、Fsystemリソース(共有ディスク)を設定します。
Settings of turnkey wizard "STANDBY" (OP1:not yet consistent) 1) HELP 9) Procedure:BasicApplication(-) 2) - 10) Symfoware(-) 3) SAVE+EXIT 11) Procedure:SystemState3(-) 4) - 12) Procedure:SystemState2(-) 5) ApplicationName=OP1 13) Gls:Global-Link-Services(-) 6) Machines+Basics(op1) 14) LocalFileSystems(-) 7) CommandLines(-) 15) Gds:Global-Disk-Services(-) 8) Procedure:Application(-) Choose the setting to process: 14
“AdditionalMountPoint”を選択します。
File systems (Lfs_OP1:not yet consistent) 1) HELP 4) REMOVE+EXIT 7) (Timeout=180) 2) - 5) AdditionalMountPoint 3) SAVE+EXIT 6) (Filter=) Choose the setting to process: 5
クラスタアプリケーションに登録するマウントポイントを選択します。ここでは、“/disk1”を選択した例を示します。
1) HELP 2) RETURN 3) FREECHOICE 4) ALL 5) /disk1 Choose a mount point: 5
“MONITORONLY”属性をONにするため、“MONITORONLY”を選択します。
Set flags for mount point: /disk1 Currently set: LOCAL,AUTORECOVER (LA) 1) HELP 4) DEFAULT 7) SHARE(S) 2) - 5) SYNC(Y) 8) MONITORONLY(M) 3) SAVE+RETURN 6) NOT:AUTORECOVER(A) Choose one of the flags: 8
“SAVE+RETURN”を選択します。
Set flags for mount point: /disk1 Currently set: LOCAL,AUTORECOVER,MONITORONLY (LAM) 1) HELP 4) DEFAULT 7) SHARE(S) 2) - 5) SYNC(Y) 8) MONITORONLY(M) 3) SAVE+RETURN 6) NOT:AUTORECOVER(A) Choose one of the flags: 3
“SAVE+EXIT”を選択します。
File systems (Lfs_OP1:consistent) 1) HELP 5) AdditionalMountPoint 2) - 6) MountPoints[0]=LAM:/disk1 3) SAVE+EXIT 7) (Filter=) 4) REMOVE+EXIT 8) (Timeout=180) Choose the setting to process: 3
[Glsリソースの設定]
“Gls”を選択し、Glsリソース(引継ぎIPアドレス)を設定します。
Settings of turnkey wizard "STANDBY" (OP1:consistent) 1) HELP 9) Procedure:BasicApplication(-) 2) - 10) Symfoware(-) 3) SAVE+EXIT 11) Procedure:SystemState3(-) 4) - 12) Procedure:SystemState2(-) 5) ApplicationName=OP1 13) Gls:Global-Link-Services(-) 6) Machines+Basics(op1) 14) LocalFileSystems(Lfs_OP1) 7) CommandLines(-) 15) Gds:Global-Disk-Services(-) 8) Procedure:Application(-) Choose the setting to process: 13
“AdditionalTakeoverIpaddress”を選択します。
Gls (Gls_OP1:not yet consistent) 1) HELP 4) REMOVE+EXIT 2) - 5) AdditionalTakeoverIpaddress 3) SAVE+EXIT 6) (Timeout=60) Choose the setting to process: 5
引継ぎIPアドレスが表示されます。クラスタアプリケーションに登録する引継ぎIPアドレスを選択します。000.000.000.00xを選択した例を示します。
1) HELP 2) RETURN 3) FREECHOICE 4) 000.000.000.00x Choose a takeover IP address for Gls: 4
“SAVE+RETURN”を選択します。
Set a flag for takeover IP address: 000.000.000.00x Currently set: 1) HELP 5) AUTORECOVER(A) 2) - 3) SAVE+RETURN 4) DEFAULT Choose additonally one of the flags: 3
“SAVE+EXIT”を選択します。
Gls (Gls_OP1:consistent) 1) HELP 5) AdditionalTakeoverIpaddress 2) - 6) TakeoverIpaddress[0]=N,000.000.000.00x 3) SAVE+EXIT 7) (Timeout=60) 4) REMOVE+EXIT Choose the setting to process: 3
[プロシジャリソースの設定]
“SystemState3”を選択します。“5.1.3 状態遷移プロシジャを使用するリソースの登録”で指定したリソースクラス“SystemState3”を選択します。
Settings of turnkey wizard "STANDBY" (OP1:consistent) 1) HELP 9) Procedure:BasicApplication(-) 2) - 10) Symfoware(-) 3) SAVE+EXIT 11) Procedure:SystemState3(-) 4) - 12) Procedure:SystemState2(-) 5) ApplicationName=OP1 13) Gls:Global-Link-Services(Gls_OP1) 6) Machines+Basics(op1) 14) LocalFileSystems(Lfs_OP1) 7) CommandLines(-) 15) Gds:Global-Disk-Services(-) 8) Procedure:Application(-) Choose the setting to process: 11
“AdditionalProcedureResource”を選択します。
SystemState3 Procedure (ProSS3_OP1:not yet consistent) 1) HELP 3) REMOVE+EXIT 2) - 4) AdditionalProcedureResource Choose the setting to process: 4
“5.1.3 状態遷移プロシジャを使用するリソースの登録”で指定した状態遷移プロシジャ“OMGR”が表示されます。クラスタアプリケーションに登録する“OMGR”を選択します。
1) HELP 2) RETURN 3) OMGR 4) OMGRMONITOR Choose an procedure resource name: 3
“SAVE+RETURN”を選択します。
Set flags for Procedure resource : Currently set: TIMEOUT (T1800), PRIORITY (P100) 1) HELP 2) - 3) SAVE+RETURN 4) TIMEOUT 5) PRIORITY Choose one of the flags: 3
“AdditionalProcedureResource”を選択します。
SystemState3 Procedure (ProSS3_OP1:consistent) 1) HELP 2) - 3) SAVE+EXIT 4) REMOVE+EXIT 5) AdditionalProcedureResource 6) ProcedureResources[0]=OMGR:T1800,P100 Choose the setting to process: 5
“5.1.3 状態遷移プロシジャを使用するリソースの登録”で指定した状態遷移プロシジャ“OMGRMONITOR”が表示されます。クラスタアプリケーションに登録する“OMGRMONITOR”を選択します。
1) HELP 2) RETURN 3) OMGR 4) OMGRMONITOR Choose an procedure resource name: 4
“SAVE+RETURN”を選択します。
Set flags for Procedure resource : Currently set: TIMEOUT (T1800), PRIORITY (P150) 1) HELP 2) - 3) SAVE+RETURN 4) TIMEOUT 5) PRIORITY Choose one of the flags: 3
“SAVE+EXIT”を選択します。
SystemState3 Procedure (ProSS3_OP1:consistent) 1) HELP 2) - 3) SAVE+EXIT 4) REMOVE+EXIT 5) AdditionalProcedureResource 6) ProcedureResources[0]=OMGR:T1800,P100 7) ProcedureResources[1]=OMGRMONITOR:T1800,P150 Choose the setting to process: 3
[リソース設定]
設定後、“SAVE+EXIT”を選択し、クラスタアプリケーションにリソースを設定します。
Settings of turnkey wizard "STANDBY" (OP1:consistent) 1) HELP 9) Procedure:BasicApplication(-) 2) - 10) Symfoware(-) 3) SAVE+EXIT 11) Procedure:SystemState3(ProSS3_OP1) 4) - 12) Procedure:SystemState2(-) 5) ApplicationName=OP1 13) Gls:Global-Link-Services(Gls_OP1) 6) Machines+Basics(op1) 14) LocalFileSystems(Lfs_OP1) 7) CommandLines(-) 15) Gds:Global-Disk-Services(-) 8) Procedure:Application(-) Choose the setting to process: 3
4)GenerateとActivate
GenerateとActivateの手順について説明します。GenerateとActivateの作業は、作成したクラスタアプリケーションが正しいことを確認した後、実行してください。
“Configuration-Generate”を選択します。
linux01: Main configuration menu, current configuration: config No RMS active in the cluster 1) HELP 10) Configuration-Remove 2) QUIT 11) Configuration-Freeze 3) Application-Create 12) Configuration-Thaw 4) Application-Edit 13) Configuration-Edit-Global-Settings 5) Application-Remove 14) Configuration-Consistency-Report 6) Application-Clone 15) Configuration-ScriptExecution 7) Configuration-Generate 16) RMS-CreateMachine 8) Configuration-Activate 17) RMS-RemoveMachine 9) Configuration-Copy Choose an action: 7
“Configuration-Activate”を選択します。
linux01: Main configuration menu, current configuration: config No RMS active in the cluster 1) HELP 10) Configuration-Remove 2) QUIT 11) Configuration-Freeze 3) Application-Create 12) Configuration-Thaw 4) Application-Edit 13) Configuration-Edit-Global-Settings 5) Application-Remove 14) Configuration-Consistency-Report 6) Application-Clone 15) Configuration-ScriptExecution 7) Configuration-Generate 16) RMS-CreateMachine 8) Configuration-Activate 17) RMS-RemoveMachine 9) Configuration-Copy Choose an action: 8
“QUIT”を選択し、終了します。
linux01: Main configuration menu, current configuration: config No RMS active in the cluster 1) HELP 10) Configuration-Remove 2) QUIT 11) Configuration-Freeze 3) Application-Create 12) Configuration-Thaw 4) Application-Edit 13) Configuration-Edit-Global-Settings 5) Application-Remove 14) Configuration-Consistency-Report 6) Application-Clone 15) Configuration-ScriptExecution 7) Configuration-Generate 16) RMS-CreateMachine 8) Configuration-Activate 17) RMS-RemoveMachine 9) Configuration-Copy Choose an action: 2
N:1運用待機の場合は、2)、3)、4)の手順を繰り返し、N個のクラスタアプリケーションを運用環境に合わせて登録してください。
2ノード相互待機の場合は、2)、3)、4)の手順を再度実行し、2個のクラスタアプリケーションを登録してください。“Machines+Basics”における“Machines[0]”、“Machines[1]”で運用系と待機系の優先順位を間違えないように登録してください。
5)PRIMECLUSTER対応製品のクラスタサービス登録
以下の手順でクラスタサービスへ登録します。
“PRIMECLUSTER対応製品用のクラスタサービスを登録します。
クラスタシステムを構成する1ノードで以下のコマンドを実行してください。
# /etc/opt/FJSVcluster/bin/clrwzconfig
6)クラスタアプリケーション間の排他関係の設定
この手順は、N:1運用待機の場合のみ実施します。
複数のクラスタアプリケーションが同一のクラスタノード上で同時に運用状態にならないように排他制御の設定を行います。排他関係を設定するには、クラスタアプリケーションのグループを作成します。
RMS Wizardを起動し、“Application-Edit”を選択します。
linux01: Main configuration menu, current configuration: config No RMS active in the cluster 1) HELP 10) Configuration-Remove 2) QUIT 11) Configuration-Freeze 3) Application-Create 12) Configuration-Thaw 4) Application-Edit 13) Configuration-Edit-Global-Settings 5) Application-Remove 14) Configuration-Consistency-Report 6) Application-Clone 15) Configuration-ScriptExecution 7) Configuration-Generate 16) RMS-CreateMachine 8) Configuration-Activate 17) RMS-RemoveMachine 9) Configuration-Copy Choose an action: 4
排他関係を設定するアプリケーションを選択します。
Edit: Application selection menu (restricted): 1) HELP 2) QUIT 3) RETURN 4) OPTIONS 5) OP1 Application Name: 5
“Machines+Basics”を選択します。
Settings of turnkey wizard "STANDBY" (OP1:consistent) 1) HELP 9) Procedure:BasicApplication(-) 2) READONLY 10) Symfoware(-) 3) SAVE+EXIT 11) Procedure:SystemState3(ProSS3_OP1) 4) - 12) Procedure:SystemState2(-) 5) ApplicationName=OP1 13) Gls:Global-Link-Services(Gls_OP1) 6) Machines+Basics(op1) 14) LocalFileSystems(Lfs_OP1) 7) CommandLines(-) 15) Gds:Global-Disk-Services(-) 8) Procedure:Application(-) Choose the setting to process: 6
“LicenseToKill”を選択します。
Machines+Basics (op1:consistent) 1) HELP 2) - 3) SAVE+EXIT 4) REMOVE+EXIT 5) AdditionalMachine 6) AdditionalConsole 7) Machines[0]=linux01RMS 8) Machines[1]=linux02RMS 9) (PreCheckScript=) 10) (PreOnlineScript=) 11) (PostOnlineScript=) 12) (PreOfflineScript=) 13) (OfflineDoneScript=) 14) (FaultScript=) 15) (AutoStartUp=no) 16) (AutoSwitchOver=HostFailure|ResourceFailure) 17) (PreserveState=no) 18) (PersistentFault=0) 19) (ShutdownPriority=) 20) (OnlinePriority=) 21) (StandbyTransitions=) 22) (LicenseToKill=no) 23) (AutoBreak=yes) 24) (HaltFlag=no) 25) (PartialCluster=0) 26) (ScriptTimeout=) Choose the setting to process: 22
“FREECHOICE”を設定します。
1) HELP 2) RETURN 3) FREECHOICE 4) yes 5) no Shut down other applications prior to coming Online: 3
“A20X”を設定します。
ここでは、グループを“A”、また、業務優先度が高いクラスタアプリケーションとして“20X”を設定しています。この値は、実際のクラスタシステムの運用によって変更してください。詳細については、PRIMECLUSTERマニュアルを参照してください。
>> A20X
設定後、“SAVE+EXIT”を選択します。
Machines+Basics (op1:consistent) 1) HELP 2) - 3) SAVE+EXIT 4) REMOVE+EXIT 5) AdditionalMachine 6) AdditionalConsole 7) Machines[0]=linux01RMS 8) Machines[1]=linux02RMS 9) (PreCheckScript=) 10) (PreOnlineScript=) 11) (PostOnlineScript=) 12) (PreOfflineScript=) 13) (OfflineDoneScript=) 14) (FaultScript=) 15) (AutoStartUp=no) 16) (AutoSwitchOver=HostFailure|ResourceFailure) 17) (PreserveState=no) 18) (PersistentFault=0) 19) (ShutdownPriority=) 20) (OnlinePriority=) 21) (StandbyTransitions=) 22) (LicenseToKill=A20X) 23) (AutoBreak=A20X) 24) (LicenseToKillWait=yes) 25) (HaltFlag=no) 26) (PartialCluster=0) 27) (ScriptTimeout=) Choose the setting to process: 3
“SAVE+EXIT”を選択します。
Settings of turnkey wizard "STANDBY" (OP1:consistent) 1) HELP 9) Procedure:BasicApplication(-) 2) - 10) Symfoware(-) 3) SAVE+EXIT 11) Procedure:SystemState3(ProSS3_OP1) 4) - 12) Procedure:SystemState2(-) 5) ApplicationName=OP1 13) Gls:Global-Link-Services(Gls_OP1) 6) Machines+Basics(op1) 14) LocalFileSystems(Lfs_OP1) 7) CommandLines(-) 15) Gds:Global-Disk-Services(-) 8) Procedure:Application(-) Choose the setting to process: 3
手順2~8をすべてのアプリケーションについて繰り返し実施します。
“4)GenerateとActivate”の手順を再度実行します。