例 1 – インストールと構成 と 例 2 – 管理コマンド は、Sun Cluster HA for BroadVision One-To-One Enterprise のインストール、構成、および管理の方法について示しています。次に、クラスタと BroadVision One-To-One Enterprise 構成の情報を示します。この情報は、両方の例に適用されます。
表 11–5 例 – クラスタの情報
ノード名 |
phys-schost-1, phys-schost-2 |
論理ホスト名 |
schost-1, schost-2 |
リソースグループ |
root-host-resource-group (ルートホストリソースの場合)、back-end-resource-group (バックエンドリソースの場合)、im-resource-group (Interaction Manager リソースの場合) |
リソース |
root-host-resource (BroadVision ルートホストリソース)、back-end-resource (BroadVision バックエンドリソース)、im-resource (BroadVision Interaction Manager リソース) |
表 11–6 例 – BroadVision 構成の情報
BV ユーザー |
BVUSER (すべてのクラスタノードで使用) |
BV1TO1_VAR ディレクトリ |
/global/broadvision/bvuser/bv1to1_var |
ルートホスト |
schost-1 |
バックエンドホスト |
schost-2 |
Interaction Manager 1 |
phys-schost-1 |
Interaction Manager 2 |
phys-schost-2 |
この例は、データサービスのインストールと構成の方法を示しています。
(BroadVision リソースタイプを登録する) phys-schost-1:> scrgadm -a -t SUNW.bv (バックエンドプロセスおよびルートホストリソースのためのフェイルオーバーリソースグループを作成する) phys-schost-1:> scrgadm -a -g root-host-resource-group phys-schost-1:> scrgadm -a -g back-end-resource-group (Interaction Manager プロセスのためのスケーラブルリソースグループを作成する) phys-schost-1:> scrgadm -a -g im-resource-group -y Maximum_primaries=2 / -y Desired_primaries=2 (フェイルオーバーリソースグループに論理ホスト名を追加する) phys-schost-1:> scrgadm -a -L -g root-host-resource-group -l schost-1 phys-schost-1:> scrgadm -a -L -g back-end-resource-group -l schost-2 (ルートホストリソース、バックエンドリソース、およびInteraction Manager リソースを作成する) phys-schost-1:> scrgadm -a -j root-host-resource -g root-host-resource-group / -t SUNW.bv -x BVUSER=bvuser -x BV1TO1_VAR=/global/broadvision/bvuser/bt1to1_var phys-schost-1:> scrgadm -a -j back-end-resource -g back-end-resource-group / -t SUNW.bv -x BVUSER=bvuser -x BV1TO1_VAR=/global/broadvision/bvuser/bt1to1_var phys-schost-1:> scrgadm -a -j im-resource -g im-resource-group -t SUNW.bv / -x BVUSER=bvuser -x BV1TO1_VAR=/global/broadvision/bvuser/bt1to1_var (すべてのリソースグループをオンラインにする) phys-schost-1:> scswitch -Z -g root-host-resource-group phys-schost-1:> scswitch -Z -g back-end-resource-group phys-schost-1:> scswitch -Z -g im-resource-group |
この例は、管理者に便利な一般的な管理コマンドを示しています。
(リソースグループの状態を確認する) phys-schost-1:> scstat -g (注: BroadVision Interaction Manager 1 プロセス、ルートホストプロセス、およびバックエンドプロセス はすべて、phys-schost-1 で動作する必要がある。Interaction Manager 2 プロセスは、 phys-schost-2 で動作する必要がある) (フェイルオーバーをテストする。ルートホストリソースグループと バックエンドリソースグループをほかのノードに切り替え る) phys-schost-1:> scswitch -z -g root-host-resource-group -h phys-schost-2 phys-schost-1:> scswitch -z -g back-end-resource-group -h phys-schost-2 (注: この時点で、BroadVision ルートホストプロセスおよびバックエンドプロセスはすべて phys-schost-2 で動作するようになる) (主ノードの最大数と目標数は2 に設定されるため、Interaction Manager は 2 つのクラスタノードで動作する。 phys-schost-2 で動作しているInteraction Manager 2 を停止する) phys-schost-1:> scswitch -z -g im-resource-group -h phys-schost-1 (すべてのリソースグループを停止する) phys-schost-1:> scswitch -F -g root-host-resource-group phys-schost-1:> scswitch -F -g back-end-resource-group phys-schost-1:> scswitch -F -g im-resource-group (BroadVision リソースとリソースグループを削除し無効にする) phys-schost-1:> scswitch -n -j root-host-resource phys-schost-1:> scswitch -n -j back-end-resource phys-schost-1:> scswitch -n -j im-resource phys-schost-1:> scswitch -n -j schost-1 phys-schost-1:> scswitch -n -j schost-2 phys-schost-1:> scrgadm -r -j root-host-resource phys-schost-1:> scrgadm -r -j back-end-resource phys-schost-1:> scrgadm -r -j im-resource phys-schost-1:> scrgadm -r -j schost-1 phys-schost-1:> scrgadm -r -j schost-2 phys-schost-1:> scrgadm -r -j root-host-resource-group phys-schost-1:> scrgadm -r -j back-end-resource-group phys-schost-1:> scrgadm -r -j im-resource-group (リソースタイプを削除する) phys-schost-1:> scrgadm -r -t SUNW.bv |