Sun Cluster Data Service for DHCP ガイド (Solaris OS 版)

Sun Cluster HA for DHCP の登録と構成

ここでは Sun Cluster HA for DHCP の構成手順について説明します。

ProcedureSun Cluster HA for DHCP の登録および構成方法

この手順は、Sun Cluster の初回のインストール時にこのデータサービスパッケージをインストールしている場合を想定しています。

Sun Cluster の初回インストールの一部として Sun Cluster HA for DHCP パッケージをインストールしていない場合は、scinstall ユーティリティーを使用して Sun Cluster HA for DHCP パッケージをインストールする」へ進みます。

手順
  1. DHCP のホストとなるクラスタノードの 1 つで、スーパーユーザーになります。

  2. SUNW.gds リソースタイプを登録します。


    # scrgadm -a -t SUNW.gds
    
  3. SUNW.HAStoragePlus リソースタイプを登録します。


    # scrgadm -a -t SUNW.HAStoragePlus
    
  4. フェイルオーバーリソースグループを作成します。


    # scrgadm -a -g DHCP-failover-resource-group
    
  5. DHCP ディスク記憶装置に対応するリソースを作成します。


    # scrgadm -a -j DHCP-has-resource  \
     -g DHCP-failover-resource-group   \
     -t SUNW.HAStoragePlus  \
     -x FilesystemMountPoints=DHCP- instance-mount-points
    
  6. DHCP 論理ホスト名に対応するリソースを作成します。


    # scrgadm -a -L -j DHCP-lh-resource  \
     -g DHCP-failover-resource-group  \
     -l DHCP-logical-hostname
    
  7. DHCP ディスク記憶装置と論理ホスト名のリソースが組み込まれたフェイルオーバーリソースグループを有効にします。


    # scswitch -Z -g DHCP-failover-resource-group
    
  8. 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
    
  9. 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
    
  10. 各 DHCP リソースを有効にします。

    前の手順と同様、DHCP コンポーネントごとにこの手順を繰り返します。


    # scstat 
    

    # scswitch -e -j DHCP-resource