SAP J2EE engine を格納するクラスタノードの 1 つでスーパーユーザーになります。
SAP J2EE engine のリソース型である SUNW.gds を登録します。
# scrgadm -a -t SUNW.gds |
追加する新しいリソース型を指定します。
追加するリソースタイプの名前を指定します。この名前は、SAP J2EE engine に対して事前に定義されています。
SAP J2EE engine ディスクストレージの HAStoragePlus リソースを作成します。
# scrgadm -a -j hsp-j2ee-rs -g j2ee-rg -t SUNW.HAStoragePlus \ -x filesystemmountpoints="mountpoint-list" |
新しい構成を追加します。
作成するリソースの名前を指定します。
このリソースを SAP J2EE engine リソースグループに追加します。
このリソースは、SUNW.HAStoragePlus リソース型のインスタンスです。
ファイルシステムの有効なマウントポイントを列挙します。詳細は、SUNW.HAStoragePlus(5) のマニュアルページを参照してください。
Sun Cluster SAP J2EE engine リソースを構成します。
ha_sap_j2ee_config ファイルを編集し、次の例のようにそのファイルのコメントに従います。
# cd /opt/SUNWscswa/util # # more ha_sap_j2ee_config # # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # This file will be sourced in by ha_sap_j2ee_register and the parameters # listed below will be used. # # These parameters can be customized in (key=value) form # # RS - name of the resource for the application # RG - name of the resource group containing RS # JAVA_HOME - name of the Java home directory # SAPID - The SAP System Name # J2EE_INSTANCE - name of the SAP J2EE Engine instance # LH - name of the LogicalHostname SC resource # HAS_RS - name of the SAP J2EE HAStoragePlus SC resource # # Optional parameters # # SAP_START - Optional, name of a startsap script within # <SAPID>adm home directory that will be used # instead of the default startsap. # # SAP_STOP - Optional, name of a stopsap script within # <SAPID>adm home directory that will be used # instead of the default stopsap. # # SAP_LOGDIR - Optional, where to put the logfiles from # startsap and stopsap. Default is the <SAPID>adm home # directory # # RESOURCE_PROJECT_NAME - Optional, name of a SRM project. # # The following examples illustrate sample parameters # for SAP J2EE Engine Instance # # RS=RES-SAP-J2EE # RG=RG-SAP-J2EE # JAVA_HOME=/usr/java # SAPID=TST # J2EE_INSTANCIES=JC00 # LH=j2eelh # HAS_RS=RES-SAP-J2EE-HAS # # SAP_START= # SAP_STOP= # SAP_LOGDIR= # RESOURCE_PROJECT_NAME= # # RS= RG= JAVA_HOME=/usr/java SAPID= J2EE_INSTANCE= LH= HAS_RS= SAP_START= SAP_STOP= SAP_LOGDIR= RESOURCE_PROJECT_NAME= |
Sun Cluster SAP J2EE engine リソースを登録します。
# cd /opt/SUNWscswa/util # ./ha_sap_j2ee_register |
リソースの依存関係を設定します。
SAP J2EE engine リソースは、データベースリソース、SAP enqueue server および SAP message server リソースに依存します。
# scrgadm -c -j j2ee-rs -y Resource_Dependencies=db-rs,enq-rs,msg-rs |
既存構成を変更します。
変更するリソースの名前を指定します。このリソースの名前は、手順 4 の構成ファイルで指定したリソース名と同じでなければなりません。
SAP J2EE engine リソースがオンラインになる前に、次に示すリソースがオンラインにならなければならないことを指定します。
データベースリソース。データベースリソースは、関連データサービスによって作成されます。
SAP enqueue server リソース
SAP message server リソース
Sun Cluster SAP J2EE engine リソースを有効にします。
# scswitch -ej j2ee-rs |
指定したリソースが有効になるように指定します。
有効にするリソースの名前を指定します。