成为即将托管 SAP J2EE 引擎的群集中的一个节点上的超级用户。
注册 SUNW.gds,即 SAP J2EE 引擎资源类型。
# scrgadm -a -t SUNW.gds |
指定要添加新的资源类型。
指定要添加的资源类型的名称。此名称是为 SAP J2EE 引擎预定义的名称。
为 SAP J2EE 引擎磁盘存储设备创建 HAStoragePlus 资源。
# scrgadm -a -j hsp-j2ee-rs -g j2ee-rg -t SUNW.HAStoragePlus \ -x filesystemmountpoints="mountpoint-list" |
指定要添加新配置。
指定要创建的资源的名称。
指定要将该资源添加到 SAP J2EE 引擎资源组中。
指定此资源是 SUNW.HAStoragePlus 资源类型的实例。
指定文件系统的有效装载点列表。有关更多信息,请参见 SUNW.HAStoragePlus(5) 手册页。
配置 Sun Cluster SAP J2EE 引擎资源。
编辑 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 引擎资源。
# cd /opt/SUNWscswa/util # ./ha_sap_j2ee_register |
设置资源依赖性。
SAP J2EE 引擎资源依赖于数据库资源、SAP 排队服务器资源和 SAP 消息服务器资源。
# scrgadm -c -j j2ee-rs -y Resource_Dependencies=db-rs,enq-rs,msg-rs |
指定要更改现有配置。
指定要更改的资源的名称。此资源名称必须与您在步骤 4 中在配置文件中指定的资源名称相同。
指定必须在以下资源处于联机状态时,SAP J2EE 引擎资源才可以联机:
数据库资源。数据库资源是由相关数据服务创建的。
SAP 排队服务器资源。
SAP 消息服务器资源。
启用 Sun Cluster SAP J2EE 引擎资源。
# scswitch -ej j2ee-rs |
指定要启用指定资源。
指定要启用的资源的名称。