この手順は、Sun Cluster の初回のインストール時にこのデータサービスパッケージをインストールしている場合を想定しています。
Sun Cluster の初回インストールの一部として Sun Cluster HA for DHCP パッケージをインストールしていない場合は、「scinstall ユーティリティーを使用して Sun Cluster HA for DHCP パッケージをインストールする」へ進みます。
DHCP のホストとなるクラスタノードの 1 つで、スーパーユーザーになります。
# scrgadm -a -t SUNW.gds |
SUNW.HAStoragePlus リソースタイプを登録します。
# scrgadm -a -t SUNW.HAStoragePlus |
フェイルオーバーリソースグループを作成します。
# scrgadm -a -g DHCP-failover-resource-group |
DHCP ディスク記憶装置に対応するリソースを作成します。
# scrgadm -a -j DHCP-has-resource \ -g DHCP-failover-resource-group \ -t SUNW.HAStoragePlus \ -x FilesystemMountPoints=DHCP- instance-mount-points |
DHCP 論理ホスト名に対応するリソースを作成します。
# scrgadm -a -L -j DHCP-lh-resource \ -g DHCP-failover-resource-group \ -l DHCP-logical-hostname |
DHCP ディスク記憶装置と論理ホスト名のリソースが組み込まれたフェイルオーバーリソースグループを有効にします。
# scswitch -Z -g DHCP-failover-resource-group |
a) DHCP コンポーネントを作成して登録します。
# cd /opt/SUNWscdhc/util |
dhcp_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 # PORT - name of any port number, as it's ignored # LH - name of the LogicalHostname SC resource # NETWORK - name of the DHCP Network, however comprised of following # <network>@<nafo or ipmp>@<node number> # HAS_RS - name of the DHCP HAStoragePlus SC resource |
次に、IPMP が組み込まれた 2 ノードの Sun Cluster 3.1 に対応する DHCP の例を示します。
RS=dhcp-res RG=dhcp-rg PORT=23 LH=dhcp-lh-res NETWORK=192.168.100.0@ipmp0@1/192.168.100.0@ipmp1@2 HAS_RS=dhcp-has-res |
dhcp_config の編集後、リソースを登録する必要があります。
# ./dhcp_register |
b) Sun Cluster Carrier-Grade 配備用の DHCP コンポーネントを作成し、登録します。
# cd /opt/SUNWscdhc/util |
dhcp_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 # PORT - name of any port number, as it's ignored # LH - name of the LogicalHostname SC resource # NETWORK - name of the DHCP Network, however comprised of following # <network>@<nafo or ipmp>@<node number> # HAS_RS - name of the DHCP HAStoragePlus SC resource # Additional parameters to Sun Cluster Carrier-Grade Edition # USE_CGTP - ff CGTP is being used (TRUE/FALSE) # USE_STATIC_DHCP - ff static DHCP tables should be used (TRUE/FALSE) # TEST_CLIENTID - the mac-address of the test-client # TFTPTESTFILE - path to Tftp testfile |
次に、CGTP、静的 DHCP、アクティブクライアントおよび tftp 監視が組み込まれた 2 ノードの Sun Cluster 3.1 の DHCP の例を示します。
RS=dhcp-res RG=dhcp-rg PORT=23 LH=dhcp-lh-res NETWORK= HAS_RS=dhcp-has-res USE_CGTP=TRUE USE_STATIC_DHCP=TRUE TEST_CLIENTID=8:0:20:a7:95:f9 TFTPTESTFILE=/tftpboot/SCTESTFILE |
dhcp_config の編集後、リソースを登録する必要があります。
# ./dhcp_register |
各 DHCP リソースを有効にします。
前の手順と同様、DHCP コンポーネントごとにこの手順を繰り返します。
# scstat |
# scswitch -e -j DHCP-resource |