Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

3.7. Configuring a Failover Domain

A failover domain is a named subset of cluster nodes that are eligible to run a cluster service in the event of a node failure. A failover domain can have the following characteristics:
  • Unrestricted — Allows you to specify that a subset of members are preferred, but that a cluster service assigned to this domain can run on any available member.
  • Restricted — Allows you to restrict the members that can run a particular cluster service. If none of the members in a restricted failover domain are available, the cluster service cannot be started (either manually or by the cluster software).
  • Unordered — When a cluster service is assigned to an unordered failover domain, the member on which the cluster service runs is chosen from the available failover domain members with no priority ordering.
  • Ordered — Allows you to specify a preference order among the members of a failover domain. The member at the top of the list is the most preferred, followed by the second member in the list, and so on.
  • Failback — Allows you to specify whether a service in the failover domain should fail back to the node that it was originally running on before that node failed. Configuring this characteristic is useful in circumstances where a node repeatedly fails and is part of an ordered failover domain. In that circumstance, if a node is the preferred node in a failover domain, it is possible for a service to fail over and fail back repeatedly between the preferred node and another node, causing severe impact on performance.

    Note

    The failback characteristic is applicable only if ordered failover is configured.

Note

Changing a failover domain configuration has no effect on currently running services.

Note

Failover domains are not required for operation.
By default, failover domains are unrestricted and unordered.
In a cluster with several members, using a restricted failover domain can minimize the work to set up the cluster to run a cluster service (such as httpd), which requires you to set up the configuration identically on all members that run the cluster service). Instead of setting up the entire cluster to run the cluster service, you must set up only the members in the restricted failover domain that you associate with the cluster service.

Note

To configure a preferred member, you can create an unrestricted failover domain comprising only one cluster member. Doing that causes a cluster service to run on that cluster member primarily (the preferred member), but allows the cluster service to fail over to any of the other members.
The following sections describe adding a failover domain and modifying a failover domain:

3.7.1. Adding a Failover Domain

To add a failover domain, follow the steps in this section. The starting point of the procedure is at the cluster-specific page that you navigate to from Choose a cluster to administer displayed on the cluster tab.
  1. At the detailed menu for the cluster (below the clusters menu), click Failover Domains. Clicking Failover Domains causes the display of failover domains with related services and the display of menu items for failover domains: Add a Failover Domain and Configure a Failover Domain .
  2. Click Add a Failover Domain. Clicking Add a Failover Domain causes the display of the Add a Failover Domain page.
  3. At the Add a Failover Domain page, specify a failover domain name at the Failover Domain Name text box.

    Note

    The name should be descriptive enough to distinguish its purpose relative to other names used in your cluster.
  4. To enable setting failover priority of the members in the failover domain, click the Prioritized checkbox. With Prioritized checked, you can set the priority value, Priority, for each node selected as members of the failover domain.
  5. To restrict failover to members in this failover domain, click the checkbox next to Restrict failover to this domain's members. With Restrict failover to this domain's members checked, services assigned to this failover domain fail over only to nodes in this failover domain.
  6. To specify that a node does not fail back in this failover domain, click the checkbox next to Do not fail back services in this domain. With Do not fail back services in this domain checked, if a service fails over from a preferred node, the service does not fail back to the original node once it has recovered.
  7. Configure members for this failover domain. Under Failover domain membership, click the Member checkbox for each node that is to be a member of the failover domain. If Prioritized is checked, set the priority in the Priority text box for each member of the failover domain.
  8. Click Submit. Clicking Submit causes a progress page to be displayed followed by the display of the Failover Domain Form page. That page displays the added resource and includes the failover domain in the cluster menu to the left under Domain.
  9. To make additional changes to the failover domain, continue modifications at the Failover Domain Form page and click Submit when you are done.

3.7.2. Modifying a Failover Domain

To modify a failover domain, follow the steps in this section. The starting point of the procedure is at the cluster-specific page that you navigate to from Choose a cluster to administer displayed on the cluster tab.
  1. At the detailed menu for the cluster (below the clusters menu), click Failover Domains. Clicking Failover Domains causes the display of failover domains with related services and the display of menu items for failover domains: Add a Failover Domain and Configure a Failover Domain .
  2. Click Configure a Failover Domain. Clicking Configure a Failover Domain causes the display of failover domains under Configure a Failover Domain at the detailed menu for the cluster (below the clusters menu).
  3. At the detailed menu for the cluster (below the clusters menu), click the failover domain to modify. Clicking the failover domain causes the display of the Failover Domain Form page. At the Failover Domain Form page, you can modify the failover domain name, prioritize failover, restrict failover to this domain, and modify failover domain membership.
  4. Modifying failover name — To change the failover domain name, modify the text at the Failover Domain Name text box.

    Note

    The name should be descriptive enough to distinguish its purpose relative to other names used in your cluster.
  5. Failover priority — To enable or disable prioritized failover in this failover domain, click the Prioritized checkbox. With Prioritized checked, you can set the priority value, Priority, for each node selected as members of the failover domain. With Prioritized not checked, setting priority levels is disabled for this failover domain.
  6. Restricted failover — To enable or disable restricted failover for members in this failover domain, click the checkbox next to Restrict failover to this domain's members. With Restrict failover to this domain's members checked, services assigned to this failover domain fail over only to nodes in this failover domain. With Restrict failover to this domain's members not checked, services assigned to this failover domain can fail over to nodes outside this failover domain.
  7. Failback — To enable or disable failback in a failover domain, click the checkbox next to Do not fail back services in this domain. With Do not fail back services in this domain checked, if a service fails over from a preferred node, the service does not fail back to the original node once it has recovered.
  8. Modifying failover domain membership — Under Failover domain membership, click the Membercheckbox for each node that is to be a member of the failover domain. A checked box for a node means that the node is a member of the failover domain. If Prioritized is checked, you can adjust the priority in the Priority text box for each member of the failover domain.
  9. Click Submit. Clicking Submit causes a progress page to be displayed followed by the display of the Failover Domain Form page. That page displays the added resource and includes the failover domain in the cluster menu to the left under Domain.
  10. To make additional changes to the failover domain, continue modifications at the Failover Domain Form page and click Submit when you are done.