Sun Cluster Data Service for N1 Grid Service Provisioning System ガイド (Solaris OS 版)

ProcedureSun Cluster HA for N1 Service Provisioning System Master Server をフェイルオーバーデータサービスとして登録し、構成する

この手順を実行する前に、データサービスパッケージをインストールしておく必要があります。

Sun Cluster HA for N1 Service Provisioning System パッケージをインストールしてない場合は、「Sun Cluster HA for N1 Grid Service Provisioning System パッケージのインストール」に移動してください。

手順
  1. N1 Grid Service Provisioning System Master Server をホストするクラスタノードの 1 つで、スーパーユーザーになります。

  2. SUNW.gds リソースタイプを登録します。


    # scrgadm -a -t SUNW.gds
    
  3. Sun Cluster HA for N1 Service Provisioning System Master Server が必要とするパラメータファイルを用意します。


    注意 – 注意 –

    パラメータファイルは、N1 Grid Service Provisioning System Master Server データサービスをホストできるすべてのノードで利用可能にする必要があります。フェイルオーバー構成の場合は、共有記憶装置に保存します。さまざまなノード上の N1 Grid Service Provisioning System Master Server インスタンスごとにパラメータファイルが異なってはいけません。



    # cd /opt/SUNWscsps/master/bin
    # cp pfile desired place
    

    pfile を格納する、共有記憶装置上の場所を選択します。ファイルコメントに従って、パラメータファイル pfile を編集します。次に例を示します。


    #!/usr/bin/ksh
    #
    # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
    # Use is subject to license terms.
    #
    # Set the N1 Grid Service Provisioning System Master Server 
    # specific environment variables which the start, stop and check fuctions will use
    #
    # User          Centerrun User
    # Basepath      Absolute path to Centerrun Basedir directory
    # Host          Hostname to test Apache Tomcat
    # Tport         Port where the N1 Service Prosioning Systems Apache Tomcat instance
    #               is configured to listen
    # TestCmd       Apache Tomcat test command
    # ReturnString  Use one of the strings below faccording to your Sun One Provisoning
    #               Server Version.
    #               Version 4.1 = SSL|Service
    # Startwait     Sleeping $Startwait seconds after completion of the
    #               start command
    User=
    Basepath=
    Host=
    Tport=
    TestCmd="
    ReturnString=
    Startwait=

    次に、N1 Grid Service Provisioning System 4.1 Master Server の場合の例を示します。


    User=sps
    Basepath=/global/sps/N1_Service_Provisioning_System_4.1
    Host=N1spsma-lh
    Tport=8080
    TestCmd="get /index.jsp"
    ReturnString="SSL|Service"
    Startwait=20
    

    この例は、N1 Grid Service Provisioning System 4.1 Master Server からのものです。Apache Tomcat は、ポート 8080 で待機するように構成されます。デフォルトの起動ページには、文字列 Service または文字列 SSL (SSL ポートで応答するように構成した場合) が入っています。

  4. 必要な N1 Grid Service Provisioning System Master Server インスタンスごとに、登録スクリプトを構成します。


    # cd /opt/SUNWscsps/master/util
    # cp spsma_config desired place
    # cp spsma_register desired place
    

    ファイルコメントに従って、spsma_config ファイルを編集します。次に例を示します。


    # These parameters can be customized in (key=value) form
    #
    # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
    # Use is subject to license terms.
    #
    # This file will be sourced in by spsma_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
    #      PORT - name of the port number to satisfy GDS registration
    #        LH - name of the LogicalHostname SC resource
    #     PFILE - name of the parameter file for additional variables
    #    HAS_RS - name of the HAStoragePlus SC resource
    #
    
    RS=
    RG=
    PORT=
    LH=
    PFILE=
    HAS_RS=

    次に、Sun Cluster HA for N1 Service Provisioning System Master Server の場合の例を示します。


    RS=N1spsma-res
    RG=N1spsma-rg
    PORT=8080
    LH=N1spsma-lh
    PFILE=/global/mnt1/N1spsma-pfile
    HAS_RS=N1spsma-hastplus-res
    

    PORT 変数は、汎用データサービスの要件を満たすために必要なものです。

  5. spsma_config を編集したあとで、このリソースを登録します。


    # ./spsma_register
    Registration of resource N1spsma-rs succeeded
    Validate resource N1spsma-rs in resourcegroup spsma-rg
    Validation of resource spsma-rs succeeded
    &#
  6. N1 Grid Service Provisioning System Master Server の各リソースを有効にします。


    # scstat -g
    

    # scswitch -e -j N1spsma-resource
    
  7. (省略可能) 必要な N1 Grid Service Provisioning System Master Server インスタンスごとに、手順 3 から 手順 6 を繰り返します。