Sun Cluster Data Service for DHCP Guide for Solaris OS

Registering and Configuring Sun Cluster HA for DHCP

This section contains the procedures you need to configure Sun Cluster HA for DHCP.

ProcedureHow to Register and Configure Sun Cluster HA for DHCP

This procedure assumes that you installed the data service packages during your initial Sun Cluster installation.

If you did not install the Sun Cluster HA for DHCP packages as part of your initial Sun Cluster installation, go to How to Install the Sun Cluster HA for DHCP Packages using the scinstall utility.

Steps
  1. Become superuser on one of the nodes in the cluster that will host DHCP.

  2. Register the SUNW.gds resource type.


    # scrgadm -a -t SUNW.gds
    
  3. Register the SUNW.HAStoragePlus resource type.


    # scrgadm -a -t SUNW.HAStoragePlus
    
  4. Create a failover resource group.


    # scrgadm -a -g DHCP-failover-resource-group
    
  5. Create a resource for the DHCP Disk Storage.


    # scrgadm -a -j DHCP-has-resource  \
     -g DHCP-failover-resource-group   \
     -t SUNW.HAStoragePlus  \
     -x FilesystemMountPoints=DHCP- instance-mount-points
    
  6. Create a resource for the DHCP Logical Hostname.


    # scrgadm -a -L -j DHCP-lh-resource  \
     -g DHCP-failover-resource-group  \
     -l DHCP-logical-hostname
    
  7. Enable the failover resource group that now includes the DHCP Disk Storage and Logical Hostname resources.


    # scswitch -Z -g DHCP-failover-resource-group
    
  8. a) Create and register the DHCP component.


    # cd /opt/SUNWscdhc/util
    

    Edit the dhcp_configfile and follow the comments within that file:


    # 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

    The following is an example for DHCP for a 2 node Sun Cluster 3.1 with IPMP.


    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
    

    After editing dhcp_config, you now register the resource.


    # ./dhcp_register
    
  9. b) Create and register the DHCP component for a Sun Cluster Carrier-Grade deployment.


    # cd /opt/SUNWscdhc/util
    

    Edit the dhcp_configfile and follow the comments within that file:


    # 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

    The following is an example for DHCP for a 2 node Sun Cluster 3.1 with CGTP, static DHCP, active client and tftp monitoring.


    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

    After editing dhcp_config, you now register the resource.


    # ./dhcp_register
    
  10. Enable each DHCP resource.

    Repeat this step for each DHCP component as in the previous step.


    # scstat 
    

    # scswitch -e -j DHCP-resource