Sun Cluster Data Service for DHCP Guide for Solaris OS

ProcedureHow to Register and Configure Sun Cluster HA for DHCP

Perform this procedure on one node of the cluster only.

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.

  1. On a cluster member, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.

  2. Register the following resource types.


    # clresourcetype register SUNW.HAStoragePlus
    # clresourcetype register SUNW.gds
    
  3. Create a failover resource group for DHCP.


    # clresourcegroup create -n nodelist dhcp-resource-group
    
  4. Create a resource for the DHCP Logical Hostname.


    # clreslogicalhostname create -g dhcp-resource-group \
    > -h logical-hostname \
    > logical-hostname-resource
    
  5. Create a resource for the DHCP Disk Storage.

    1. If a ZFS highly available local file system is being used.


      # clresource create -g dhcp-resource-group \
      > -t SUNW.HAStoragePlus \
      > -p Zpools=dhcp-zspool \
      > dhcp-hastorage-resource
      
    2. If a cluster file system or a non ZFS highly available local file system is being used.


      # clresource create -g dhcp-resource-group \
      > -t SUNW.HAStoragePlus \
      > -p FilesystemMountPoints=dhcp-filesystem-mountpoint \
      > dhcp-hastorage-resource
      
  6. Enable the Resource Group.


    # clresourcegroup enable -M dhcp-resource-group
    
  7. Create and register a resource for DHCP.

    Edit /opt/SUNWscdhc/util/dhcp_config and follow the comments within that file. After you have edited dhcp_config, you must register the resource.


    # cd /opt/SUNWscdhc/util
    # vi dhcp_config
    # ./dhcp_register
    

    The following example shows dhcp_config that has been edited for a two node cluster with IPMP. The entries for Sun Cluster Carrier-Grade Edition can be ignored.


    RS=dhcp
    RG=dhcp-rg
    PORT=23
    LH=dhcp-lh
    NETWORK=192.168.100.0@sc_ipmp0@1/192.168.100.0@sc_ipmp0@2
    HAS_RS=dhcp-has
    
    # Options to Sun Cluster Carrier-Grade Edition
    
    USE_CGTP=FALSE
    USE_STATIC_DHCP=FALSE
    TEST_CLIENTID=
    TFTPTESTFILE=
  8. Enable the DHCP resource.


    # clresource enable dhcp-resource