How can I configure BIND to run in a RHEL High Availability cluster service?

Solution Unverified - Updated -

Environment

  • Red Hat Cluster Suite (RHCS) 4
  • Red Hat Enterprise Linux (RHEL) 5 or 6 with the High Availability Add On
  • bind DNS server

Issue

  • How do I run BIND services in a High Availability environment?
  • Can bind/named be configured as a highly available service in a RHEL cluster?

Resolution

Because bind already has redundant master/slave capabilities built-in, it is often simpler and more effective to use that functionality as opposed to configuring a cluster service for it.

However, if for some reason that does not work, bind can be configured via a script resource in /etc/cluster/cluster.conf like other software that does not have a dedicated resource agent. For example:

  <service name="dns" domain="nodes1-2" recovery="relocate">
     <ip address="192.168.2.10" monitor_link="1"/>
     <lvm name="vg-lv" vg_name="vg" lv_name="lv">
        <fs name="dns-fs" device="/dev/vg/lv" mountpoint="/var/lib/named" fstype="ext3" fsid="1234" self_fence="1" force_unmount="1">
           <script name="named" file="/etc/init.d/named"/>
        </fs>
     </lvm>
  </service>

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments