Go to main content

Oracle® Solaris Cluster Data Service for DHCP Guide

Exit Print View

Updated: September 2015
 
 

Registering and Configuring HA for DHCP

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

Some procedures within this section require you to use certain Oracle Solaris Cluster commands. Refer to the relevant Oracle Solaris Cluster command man page for more information about these command and their parameters.

How to Register and Configure 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 Oracle Solaris Cluster installation.

If you did not install the HA for DHCP packages as part of your initial Oracle Solaris Cluster installation, go to How to Install the HA for DHCP Package.

  1. On a cluster member, assume the root role or assume a role that provides solaris.cluster.modify 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.
    • If a ZFS highly available local file system is being used, use the following command:
      # clresource create -g dhcp-resource-group \
      -t SUNW.HAStoragePlus \
      -p Zpools=dhcp-zspool \
      dhcp-hastorage-resource
    • If a cluster file system or a non-ZFS highly available local file system is being used, use the following command:
      # clresource create -g dhcp-resource-group \
      -t SUNW.HAStoragePlus \
      -p FileSystemMountPoints=dhcp-filesystem-mountpoint \
      dhcp-hastorage-resource
  6. Enable the resource group.
    # clresourcegroup online -emM 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
    # pfedit dhcp_config
    # ./dhcp_register

    The following example shows dhcp_config that has been edited for a two node cluster with IPMP. The entries for Oracle Solaris 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 Oracle Solaris Cluster Carrier-Grade Edition
    
    USE_CGTP=FALSE
    USE_STATIC_DHCP=FALSE
    TEST_CLIENTID=
    TFTPTESTFILE=
  8. Enable the DHCP resource.
    # clresource enable dhcp-resource