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

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

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

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

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

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


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


    # cd /opt/SUNWscsps/remoteagent/util
    # cp spsra_config desired place
    # cp spsra_register desired place
    

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


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

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


    RS=N1spsra-res
    RG=N1spsra-rg
    PORT=22
    LH=N1spsra-lh
    USER=sps
    BASE=/global/sps/N1_Service_Provisioning_System
    HAS_RS=N1spsra-hastplus-res
    

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

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


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


    # scstat -g
    

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