Sun Cluster 3.1 Data Service for DHCP

How to Register and Configure Sun Cluster HA for DHCP

Use this procedure to configure Sun Cluster HA for DHCP as a failover data service. 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.

Otherwise, use this procedure to configure the Sun Cluster HA for DHCP data service.

  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. Create and register the DHCP component.


    # cd /opt/SUNWscdhc/util
    

    Edit the dhcp_config file and follow the comments within that file, i.e.


    # 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 nodename>@<node number>
    #    HAS_RS - name of the DHCP HAStoragePlus SC resource

    The following is an example for DHCP for a 2 node (tequila/sunrise) Sun Cluster 3.1 with IPMP.


    RS=dhcp-res
    RG=dhcp-rg
    PORT=23
    LH=dhcp-lh-res
    NETWORK=192.168.100.0@tequila@1/192.168.100.0@sunrise@2
    HAS_RS=dhcp-has-res
    

    After editing dhcp_config you must now register the resource.


    # ./dhcp_register
    
  9. Enable each DHCP resource.

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


    # scstat 
    

    # scswitch -e -j DHCP-resource