この手順は、Sun Cluster の初回のインストール時にこのデータサービスパッケージをインストールしている場合を想定しています。
Sun Cluster の初回インストールの一部として Sun Cluster HA for Samba パッケージをインストールしていない場合は、「scinstall ユーティリティーを使用して Sun Cluster HA for Samba パッケージをインストールする」へ進みます。
Samba のホストとなるクラスタノードの 1 つで、スーパーユーザーになります。
# scrgadm -a -t SUNW.gds |
SUNW.HAStoragePlus リソースタイプを登録します。
# scrgadm -a -t SUNW.HAStoragePlus |
共有ネットワークアドレスに対応するフェイルオーバーリソースグループを作成します。
# scrgadm -a -g Winbind-failover-resource-group |
Winbind 論理ホスト名に対応するリソースを作成します。
# scrgadm -a -S -j Winbind-lh-resource \ -g Winbind-failover-resource-group \ -l Winbind-logical-hostname |
スケーラブル Winbind サービスに対応するスケーラブルリソースグループを作成します。
# scrgadm -a -g Winbind-scalable-resource-group \ -y Maximum_primaries=<number of nodes with Sun Cluster> \ -y Desired_primaries=<number of nodes with Sun Cluster> \ -y RG_dependencies=Winbind-failover-resource-group |
Winbind ディスク記憶装置に対応するリソースを作成します。
# scrgadm -a -j Winbind-has-resource \ -g Winbind-scalable-resource-group \ -t SUNW.HAStoragePlus \ -x FilesystemMountPoints=Winbind-instance-mount-point \ -x AffinityOn=FALSE |
Winbind ディスク記憶装置と 論理ホスト名のリソースが組み込まれたフェイルオーバーリソースグループとスケーラルブリソースグループを有効にします。
# scswitch -Z -g Winbind-failover-resource-group # scswitch -Z -g Winbind-scalable-resource-group |
フェイルオーバーデータサービスとして Samba を作成し、登録します。
「フェイルオーバーサービスとしての Sun Cluster HA for Samba の登録と構成方法」の手順4、5、6、7、10、および 11 に従って、フェイルオーバー Samba サービスを作成します。そのあとでこの最後の手順を完了して、フェイルオーバー Samba リソースグループがスケーラブル Winbind リソースグループに依存して起動することを確認する必要があります。
# scrgadm -c -g Samba-failover-resource-group \ -y RG_dependencies=Winbind-sclable-resource-group |
Winbind をスケーラブルデータサービスとして作成し、登録します。
# cd /opt/SUNWscsmb/winbind/util |
winbind_config ファイルを編集し、ファイルの中の次のようなコメントに従います。.
# 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 # WB_BIN - name of the Winbind bin directory # WB_SBIN - name of the Winbind sbin directory. Used in Samba 3. # WB_INST - name of the Winbind configuration directory # NTUSER - name of the NT fault monitor user #WB_LIB_PATH- name of library paths to LD_LIBRARY_PATH #WB_DISCACHE - Should winbind cache be disabled. Used in Samba 3. #WB_SINGLEMODE - Should winbind run in single mode. Used in Samba 3. # LH - name of the LogicalHostname SC resource # HAS_RS - name of the Winbind HAStoragePlus SC resource |
http://www.samba.org から Samba をインストールした場合の、Winbind インスタンスの例を示します。
RS=wb-res RG=wb-scalable-rg WB_BIN=/global/samba/bin WB_INST=/global/samba/winbind NTUSER=samba WB_LIB_PATH=/usr/lib:/usr/local/lib WB_DISCACHE=FALSE WB_SINGLEMODE=FALSE LH=wmb-lh-res HAS_RS=wb-has-res |
winbind_config の編集後、リソースを登録する必要があります。
# ./winbind_register |
Winbind リソースを有効にします。
# scstat # scswitch -e -j Winbind-resource |