Red Hat Training

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

Chapter 6. Configuring an NFS Cluster Service

This chapter provides the procedure for configuring an NFS service in a Red Hat Cluster Suite.
In order to configure an NFS service for a GFS file system in a cluster, you need to perform the following steps:
Some Red Hat Cluster resources must be configured as parent or child resources in a service. A resource that is configured as a parent resource is started before the children of that resource are started. All resources that are configured as a child resources of a parent must stop cleanly before a parent resource may be stopped. For a resource that is configured as a parent resource to be considered in good health, all the resources configured as its child resources must be in good health.
When you configure the NFS export resource for an NFS service, you must configure it as a child of the GFS resource. You must configure each NFS client resource for an NFS service as a child of the NFS export resource.

6.1. Add a Service to the Cluster

To add a service to your cluster using Conga, perform the following procedure:
  1. As an administrator of luci Select the cluster tab.
  2. From the Choose a cluster to administer screen, select the cluster to which you will add resources. In this example, that is the cluster with the name nfsclust.
  3. At the menu for cluster nfsclust (below the clusters menu), click Services. This causes the display of menu items for service configuration: Add a Service and Configure a Service.
  4. Click Add a Service. Clicking Add a Service causes the Add a Service page to be displayed.
  5. For Name, enter nfssvc.
  6. Leave the checkbox labeled Automatically start this service checked, which is the default setting. When the checkbox is checked, the service is started automatically when a cluster is started and running. If the checkbox is not checked, the service must be started manually any time the cluster comes up from the stopped state.
  7. Leave the Run Exclusive checkbox unchecked. The Run Exclusive checkbox sets a policy wherein the service only runs on nodes that have no other services running on them. Since an NFS service consumes few resources, two services could run together on the same node without contention for resources and you do not need to check this.
  8. For Failover Domain, leave the drop-down box default value of None. In this configuration, all of the nodes in the cluster may be used for failover.
  9. For Recovery Policy, the drop-down box displays Select a recovery policy. Click the drop-down box and select relocate. This policy indicates that the system should relocate the service before restarting; it should not restart the node where the service is currently located.
  10. Add the NFS service resources to this resource, as described in the following sections.
  11. After you have added the NFS resources to the service, click Submit. The system prompts you to verify that you want to create this service. Clicking OK causes a progress page to be displayed followed by the display of Services page for the cluster. That page displays the services that have been configured for the cluster.