Contained Within
Find More DocumentationFeatured Support Resources | Download this book in PDF (470 KB)
Installing and Configuring Sun Cluster HA for DHCPThis chapter explains how to install and configure Sun Cluster HA for DHCP. This chapter contains the following sections.
Installing and Configuring Sun Cluster HA for DHCPTable 1 lists the tasks for installing and configuring Sun Cluster HA for DHCP. Perform these tasks in the order that they are listed. Table 1 Task Map: Installing and Configuring Sun Cluster HA for DHCP
Sun Cluster HA for DHCP OverviewSolaris DHCP provides dynamic TCP/IP configuration to a DHCP client. The Sun Cluster HA for DHCP data service uses the DHCP software that is bundled with Solaris 8/9. For further information on DHCP refer to the dhcp(4)man page. The Sun Cluster HA for DHCP data service provides a mechanism for orderly startup and shutdown, fault monitoring and automatic failover of the DHCP service. Note – If you are upgrading the DHCP agent with this version on a SC.3.1 cluster you must reconfigure the DHCP resource, due to changes in the agent. Table 2 Protection of Components
Planning the Sun Cluster HA for DHCP Installation and ConfigurationThis section contains the information you need to plan your Sun Cluster HA for DHCP installation and configuration. Configuration RestrictionsConsider the restrictions in this section to plan the installation and configuration of Sun Cluster HA for DHCP.This section provides a list of software and hardware configuration restrictions that apply to Sun Cluster HA for DHCP only. Your data service configuration might not be supported if you do not observe these restrictions. For restrictions that apply to all data services, see the Sun Cluster Release Notes.
Configuration RequirementsThese requirements apply to Sun Cluster HA for DHCP only. You must meet these requirements before you proceed with your Sun Cluster HA for DHCP installation and configuration. Your data service configuration might not be supported if you do not adhere to these requirements. DHCP component and its dependencies —You can configure the Sun Cluster HA for DHCP data service to protect a DHCP component. This component and its dependencies are described. Table 3 DHCP components and their dependencies (via -> symbol)
The DHCP component has a configuration and registration file under /opt/SUNWscdhc/util. These files allow you to register the DHCP components with Sun Cluster. Example 1 DHCP configuration and registration file for Sun Cluster
Sun Cluster HA for DHCP data service – Requires Solaris 8 7/01 (or later) with patches 109077-12 (or later) and 111302-02 (or later) or Solaris 9. Note – Ensure that /etc/inet/dhcpsvc.conf is consistent on all nodes within Sun Cluster that will host the DHCP service, or is linked on a directory on a Cluster File System. /etc/inet/dhcpsvc.conf parameters – You must set the following /etc/inet/dhcpsvc.conf parameters:
Note – For responses to DHCP requests, use SUNWbinfiles for the DHCP network table to achieve the best DHCP performance. Configuration Requirements for Sun Cluster Carrier-Grade deploymentThese requirements apply to Sun Cluster HA for DHCP only. You must meet these requirements before you proceed with your Sun Cluster HA for DHCP installation and configuration. Your data service configuration might not be supported if you do not adhere to these requirements. DHCP component and its dependencies —You can configure the Sun Cluster HA for DHCP data service to protect a DHCP component. The DHCP component has a configuration and registration file under /opt/SUNWscdhc/util. These files allow you to register the DHCP components with Sun Cluster. Example 2 DHCP configuration and registration file for Sun Cluster
Sun Cluster HA for DHCP data service – Requires Solaris 8 7/01 (or later) with patches 109077-12 (or later) and 111302-02 (or later) or Solaris 9. Note – Ensure that /etc/inet/dhcpsvc.conf is consistent on all nodes within Sun Cluster that will host the DHCP service, or is linked on a directory on a Cluster File System. If Tftp daemon check is being used you must create a non-zero testfile in defined tftpdirectory on all the nodes in the cluster that will use DHCP. /etc/inet/dhcpsvc.conf parameters – You must set the following /etc/inet/dhcpsvc.conf parameters:
Installing and Configuring DHCPThis section contains the procedures you need to install and configure DHCP. How to Install and Configure DHCPUse this procedure to install and configure DHCP.
Verifying the Installation and Configuration of DHCPThis section contains the procedure you need to verify the installation and configuration.
|
# cd /cdrom/scdataservices_3_1_vc/components/SunCluster_HA_DHCP_3.1 |
Start the Web Start program.
# ./installer |
When you are prompted, select the type of installation.
Follow the instructions on the screen to install the Sun Cluster HA for DHCP packages on the node.
After the installation is finished, the Web Start program provides an installation summary. This summary enables you to view logs that the Web Start program created during the installation. These logs are located in the /var/sadm/install/logs directory.
Exit the Web Start program.
Remove the Sun Cluster Agents CD-ROM from the CD-ROM drive.
You need the Sun Cluster Agents CD-ROM to perform this procedure. This procedure assumes that you did not install the data service packages during your initial Sun Cluster installation.
If you installed the Sun Cluster HA for DHCP packages as part of your initial Sun Cluster installation, proceed to Registering and Configuring Sun Cluster HA for DHCP.
Otherwise, use this procedure to install the Sun Cluster HA for DHCP packages. Perform this procedure on all nodes that can run Sun Cluster HA for DHCP.
Load the Sun Cluster Agents CD-ROM into the CD-ROM drive.
Run the scinstall utility with no options.
Choose the menu option, Add Support for New Data Service to This Cluster Node.
The scinstall utility prompts you for additional information.
Provide the path to the Sun Cluster Agents CD-ROM.
The utility refers to the CD as the “data services cd.”
Specify the data service to install.
The scinstall utility lists the data service that you selected and asks you to confirm your choice.
Exit the scinstall utility.
Unload the CD from the drive.
This section contains the procedures you need to 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.
Become superuser on one of the nodes in the cluster that will host DHCP.
Register the SUNW.gds resource type.
# scrgadm -a -t SUNW.gds |
Register the SUNW.HAStoragePlus resource type.
# scrgadm -a -t SUNW.HAStoragePlus |
Create a failover resource group.
# scrgadm -a -g DHCP-failover-resource-group |
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 |
Create a resource for the DHCP Logical Hostname.
# scrgadm -a -L -j DHCP-lh-resource \ -g DHCP-failover-resource-group \ -l DHCP-logical-hostname |
Enable the failover resource group that now includes the DHCP Disk Storage and Logical Hostname resources.
# scswitch -Z -g DHCP-failover-resource-group |
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 |
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 |
Enable each DHCP resource.
Repeat this step for each DHCP component as in the previous step.
# scstat |
# scswitch -e -j DHCP-resource |
This section contains the procedure you need to verify that you installed and configured your data service correctly.
Become superuser on one of the nodes in the cluster that will host DHCP.
Ensure that all the DHCP resources are online with scstat.
# scstat |
For each DHCP resource that is not online, use the scswitch command as follows.
# scswitch -e -j DHCP- resouce |
Run the scswitch command to switch the DHCP resource group to another cluster node, such as node2.
# scswitch -z -g DHCP-failover-resource-group -h node2 |
As a result of bug fixes, the configuration for IPMP based clusters has changed. If you are running Sun Cluster HA for DHCP on an IPMP-based cluster, you have to disable, delete and reregister the DHCP resource.
Save the Sun Cluster DHCP resource definitions.
# scrgadm -pvv -j resource > file1 |
Disable the Sun Cluster DHCP resource.
# scswitch -n -j resource |
Remove the Sun Cluster DHCP resource.
# scrgadm -r -j resource |
Configure and register the Sun Cluster DHCP resource.
Save the Sun Cluster DHCP resource definitions.
# scrgadm -pvv -j resource > file2 |
Compare the updated definitions to the definitions that you saved before you updated the resource.
Comparing these definitions enables you to determine if any existing extension properties have changed, for example, time-out values.
# diff file1 file2 |
Amend any resource properties that were reset.
# scrgadm -c -j resource -x|y resource |
Bring online the Sun Cluster DHCP resource.
# scswitch -e -j resource |
This section describes the Sun Cluster HA for DHCP fault monitor's probing algorithm or functionality, states the conditions, messages, and recovery actions associated with unsuccessful probing.
For conceptual information on fault monitors, see the Sun Cluster Concepts Guide.
Sun Cluster HA for DHCP fault monitor uses the same resource properties as resource type SUNW.gds. Refer to the SUNW.gds(5) man page for a complete list of resource properties used.
DHCP probing steps:
Sleeps for Thorough_probe_interval.
Checks whether if PNM (Public Network Monitoring) has changed the active interface for the network that DHCP is using. If this fails, then the probe will restart the DHCP resource.
DHCP probing steps for Sun Cluster Carrier-Grade deployment:
Sleeps for Thorough_probe_interval.
If active client testing is defined, the probe will send out dhcp-request and will expexed an ip-number in return. If this fails, then the probe will failover the resourcegroup.
If tftp testing is defined, the probe will connect to localhost and try to retrieve the defined testfile to /tmp. The test will fail if a timeout has occured, the retrieved file don't exist or is zero bytes long.
Read the information in this section to understand how to turn on debug for Sun Cluster HA for DHCP.
The DHCP component has a DEBUG file under /opt/SUNWscdhc/etc.
This file allows you to turn on debug for the DHCP resource on a particular node within Sun Cluster. If you require debug to be turned on for the DHCP resource across the whole Sun Cluster, to repeat this step on all nodes within Sun Cluster.
Edit /etc/syslog.conf and change daemon.notice to daemon.debug.
# grep daemon /etc/syslog.conf *.err;kern.debug;daemon.notice;mail.crit /var/adm/messages *.alert;kern.err;daemon.err operator # |
Change the daemon.notice to daemon.debug and restart syslogd. The output below, from the command grep daemon /etc/syslog.conf, shows that daemon.debug has been set.
# grep daemon /etc/syslog.conf *.err;kern.debug;daemon.debug;mail.crit /var/adm/messages *.alert;kern.err;daemon.err operator # # pkill -1 syslogd # |
Edit /opt/SUNWscdhc/etc/config and change DEBUG= to DEBUG=ALL or DEBUG=resource.
# cat /opt/SUNWscdhc/etc/config # # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # Usage: # DEBUG=<RESOURCE_NAME> or ALL # DEBUG=ALL # |
To turn off debug, reverse the steps shown above.