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

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

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

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

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

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


    # scrgadm -a -t SUNW.gds
    
  3. 必要な N1 Grid Service Provisioning System Local Distributor インスタンスごとに、登録スクリプトを構成します。


    # cd /opt/SUNWscsps/localdist/util
    # cp spsld_config desired place
    # cp spsld_register desired place
    

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


    #
    # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
    # Use is subject to license terms.
    #
    # This file will be sourced in by spsld_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
    #      USER - name of the owner of the local distributor
    #      BASE - name of the directory where the N1 Service Provisioning Server
    #             is installed
    #    HAS_RS - name of the HAStoragePlus SC resource
    #
    
    RS=
    RG=
    PORT=22
    LH=
    USER=
    BASE=
    HAS_RS=

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


    RS=N1spsld-res
    RG=N1spsld-rg
    PORT=22
    LH=N1spsld-lh
    USER=sps
    BASE=/global/sps/N1_Service_Provisioning_System_4.1
    HAS_RS=N1spsld-hastplus-res
    

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

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


    # ./spsld_register
    Registration of resource N1spsld-rs succeeded
    Validate resource N1spsld-rs in resourcegroup N1spsld-rg
    Validation of resource N1spsld-rs succeeded
  5. N1 Grid Service Provisioning System Local Distributor の各リソースを有効にします。


    # scstat -g
    

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