これらの要件が適用されるのは、Sun Cluster HA for N1 Service Provisioning System だけです。Sun Cluster HA for N1 Service Provisioning System のインストールと構成を始める前に、次の要件を満たしておく必要があります。
次の要件を満たさないと、データサービスの構成がサポートされない場合があります。
N1 Grid Service Provisioning System のベースディレクトリは、共有記憶装置上に作成してください。ベースディレクトリは、HAStoragePlus リソースとともに広域ファイルシステム (GFS) に置くことも、フェイルオーバーファイルシステム (FFS) に置くこともできます。望ましいのは FFS 上への配置です。
FFS が必要となるのは、Master Server がディレクトリ構造を利用してその構成、ログ、配備されたアプリケーション、データベースなどを保存するためです。Remote Agent と Local Distributor は、それぞれのキャッシュをベースディレクトリの下に保存します。バイナリをローカル記憶装置に、データの動的な部分を共有記憶装置に保存することはお勧めしません。
広域ファイルシステムは /global、フェイルオーバーファイルシステムは /local という接頭辞を指定してマウントすることをお勧めします。
Sun Cluster HA for N1 Service Provisioning System データサービスは、1 つ以上の N1 Grid Service Provisioning System インスタンスまたはコンポーネントを保護するように構成できます。各インスタンスまたはコンポーネントは、1 つの Sun Cluster HA for N1 Service Provisioning System リソースによって対応する必要があります。次に、Sun Cluster HA for N1 Service Provisioning System リソースとほかの必須リソース間の依存性について示します。
表 3 コンポーネントと依存性
構成要素 |
説明 |
---|---|
記憶装置リソース |
このリソースは SUNW.HAStoragePlus または SUNW.HAStorage リソースタイプのどちらかです。 |
N1 Grid Service Provisioning System コンポーネント(必須) |
-> SUNW.HAStoragePlus / SUNW.HAStorage リソース この Storage リソースは、N1 Grid Service Provisioning System File System マウントポイントを管理し、必要なファイルシステムがマウントされるまで N1 Grid Service Provisioning System コンポーネントリソースが起動されないようにします。 N1 Grid Service Provisioning System コンポーネントリソースは、Master Server、Remote Agent、または Local Distributor のどれかです。 |
論理ホスト (必須) |
N1 Grid Service Provisioning System は一般的なデータサービスをベースとしているため、このコンポーネントはリソースグループの論理ホストに暗黙に依存します。したがって、論理ホストは必要ですが、明示的な依存は不要です。 |
N1 Grid Service Provisioning System の詳細は、docs.sun.com Web ページの製品マニュアルを参照するか、製品に付属のマニュアルを参照してください。
Sun Cluster HA for N1 Service Provisioning System の各コンポーネントには構成ファイルと登録ファイルがあり、それらのファイルはディレクトリ /opt/SUNWscsps/component-dir/util に配置されます (component-dir はディレクトリ名 master、localdist、または remoteagent)。これらのファイルによって、Sun Cluster に N1 Grid Service Provisioning System コンポーネントを登録できます。
# cd /opt/SUNWscsps/master # # ls -l util total 6 -rwxr-xr-x 1 root other 730 Nov 26 10:49 db_prep_postgres -rwxr-xr-x 1 root other 674 Nov 26 09:44 spsma_config -rwxr-xr-x 1 root other 579 Nov 26 11:06 spsma_register # more util/spsma_config # # 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 # 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=8080 LH= PFILE= HAS_RS= |
spsma_register スクリプトは、spsma_config スクリプトの変数を検証し、マスターサーバーのリソースを登録します。
マスターサーバーコンポーネントには、ほかに db_prep_postgres というスクリプトもあります。このスクリプトは、監視のために Master Server の PostgreSql データベースを用意するために使用されます。
# cd /opt/SUNWscsps/remoteagent # # ls -l util total 4 -rwxr-xr-x 1 root other 777 Dec 2 12:48 spsra_config -rwxr-xr-x 1 root other 568 Jan 7 16:56 spsra_register # more util/spsra_config # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # This file will be sourced in by xxx_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 Remote Agents port number # LH - name of the LogicalHostname SC resource # USER - name of the owner of the remote agent # BASE - name of the directry 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= |
spsra_register スクリプトは、spsra_config スクリプトの変数を検証し、リモートエージェントのリソースを登録します。
# cd /opt/SUNWscsps/localdist # # ls -l util total 4 -rwxr-xr-x 1 root other 757 Dec 3 17:45 spsld_config -rwxr-xr-x 1 root other 609 Jan 7 16:56 spsld_register # more util/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 # LH - name of the LogicalHostname SC resource # USER - name of the owner of the local distributor # BASE - name of the directry 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= |
spsld_register スクリプトは、spsld_config スクリプトの変数を検証し、ローカルディストリビュータのリソースを登録します。