スケーラブルサービスの場合、2 つのリソースグループを作成します。1 つは、ネットワークリソースを含むフェイルオーバーリソースグループです。もう 1 つは、アプリケーションリソースを含むスケーラブルリソースグループです。次に、スケーラブル Apache サービスを 2 ノードクラスタに登録する例を示します。
Cluster Information Node names: phys-schost-1, phys-schost-2 Shared address: schost-1 Resource groups: sa-schost-1 (共有アドレスの場合), ap-schost-1 (スケーラブル Apache アプリケーションリソースの場合) Resources: schost-1 (共有アドレス), apache-1 (Apache アプリケーションリソース) (フェイルオーバーリソースグループを追加して共有アドレスを含む) # scrgadm -a -g sa-schost-1 (共有アドレスリソースをフェイルオーバーリソースグループに追加する) # scrgadm -a -S -g sa-schost-1 -l schost-1 (Apache リソースタイプを登録する) # scrgadm -a -t SUNW.apache (スケーラブルリソースグループを追加する) # scrgadm -a -g ap-schost-1 -y Maximum_primaries=2 ¥ -y Desired_primaries=2 -y RG_dependencies=sa-schost-1 (Apache アプリケーションリソースをスケーラブルリソースグループに追加する) # scrgadm -a -j apache-1 -g ap-schost-1 ¥ -t SUNW.apache -y Network_resources_used=schost-1 ¥ -y Scalable=True -y Port_list=80/tcp ¥ -x Bin_dir=/opt/apache/bin -x Confdir_list=/opt/apache/conf (フェイルオーバーリソースグループをオンラインにする) # scswitch -Z -g sa-schost-1 (両方のノードで、スケーラブルリソースグループをオンラインにする) # scswitch -Z -g ap-schost-1 |