Highly Available HP-UX Internet Services (May 2008)

monitor script obtains the process ID from the output of the ps command. The DNS
monitor script infinitely pools the /var/run/named.pid file or the output of the ps
command at regular time intervals. This time interval is defined in the DNS monitor
script and you can modify this time interval to a different value. The DNS monitor
script exits when it notices that the named process is no longer running.
For a sample DNS monitor script, see “HP ServiceGuard Monitor Script for DNS”
(page 19).
The DNS HP ServiceGuard Startup/Stop Script
This section discusses how HP ServiceGuard starts and stops named. This section
addresses the following topics:
“Starting named in an HP ServiceGuard Environment” (page 9)
“Stopping named in an HP ServiceGuard Environment” (page 9)
Starting named in an HP ServiceGuard Environment
To start DNS, HP ServiceGuard invokes named using the /usr/sbin/named
executable. The NAMED_ARGS variable in the /etc/rc.config/namesvrs file supplies
the arguments for /usr/sbin/named. If the arguments are not defined in the
NAMED_ARGS variable, HP ServiceGuard uses the /etc/named.conf file by default
to invoke named.
For a sample DNS start script, see “Sample Start Script for DNS” (page 20)
Stopping named in an HP ServiceGuard Environment
To stop DNS, HP ServiceGuard identifies the process ID of named from the DNS
monitor script and kills the process.
For a sample DNS stop script, see “Sample Stop Script for DNS” (page 21).
Integrating DNS with HP ServiceGuard
Follow this procedure to integrate DNS with HP ServiceGuard:
NOTE: Ensure that you perform these steps on all the nodes in the HP ServiceGuard
cluster.
1. Install the latest version of BIND (9.3.2), preferably at the same patch level, on all
the nodes on the HP ServiceGuard cluster.
2. Create a shared volume (for example, /var/opt/dns) on which DNS configuration
files must reside after HP ServiceGuard is operative. This share volume must be
accessible by all nodes that provide backup to the primary node in the event of
failure.
3. To move the name server configuration file /etc/named.conf to the shared
volume, enter the following command:
Configuring DNS with HP ServiceGuard 9