Introduction 1. About This Guide This book describes a procedure for configuring NFS over GFS in a 5-node Red Hat Cluster using Conga. 2. Audience This book is intended to be used by system administrators managing systems running the Linux operating system.
5. Feedback If you spot a typo, or if you have thought of a way to make this manual better, we would love to hear from you. Please submit a report in Bugzilla (http://bugzilla.redhat.com/bugzilla/) against the component rh-cs. Be sure to mention the manual's identifier:...
Page 7
Typographic Conventions To see the contents of the file my_next_bestselling_novel in your current working directory, enter the cat my_next_bestselling_novel command at the shell prompt and press Enter to execute the command. The above includes a file name, a shell command and a key cap, all presented in Mono-spaced Bold and all distinguishable thanks to context.
Introduction To connect to a remote machine using ssh, type ssh username@domain.name at a shell prompt. If the remote machine is example.com and your username on that machine is john, type ssh john@example.com. The mount -o remount file-system command remounts the named file system.
Notes and Warnings System.out.println("Created Echo"); System.out.println("Echo.echo('Hello') = " + echo.echo("Hello")); 6.3. Notes and Warnings Finally, we use three visual styles to draw attention to information that might otherwise be overlooked. Note A note is a tip or shortcut or alternative approach to the task at hand. Ignoring a note should have no negative consequences, but you might miss out on a trick that makes your life easier.
Chapter 1. NFS over GFS in a Red Hat Cluster This document provides a procedure to configure an NFS service in a Red Hat cluster using the Conga configuration tool. The configured cluster will have the following characteristics: • There are 5 nodes in the cluster. •...
Page 12
Chapter 1. NFS over GFS in a Red Hat Cluster Chapter 2, Prerequisite Configuration • describes the prequisite configuration components that have been set up before the procedure documented in this manual beings. Chapter 3, Components to Configure • summarizes the cluster resources that this procedure configures.
Chapter 2. Prerequisite Configuration This document describes a procedure for configuring cluster resources and a cluster service. Before beginning this procedure, you must configure a cluster with a fencing device configured for each node in the cluster. In addition, you must configure a logical volume with a GFS filesystem that can be shared among the nodes in the cluster.
Chapter 3. Components to Configure This procedure documents the configuration of cluster resources and an NFS cluster service that will be named nfssvc. Table 3.1, “Cluster Resources to Configure” summarizes the cluster resources that this procedure configures. Resource Resource Description Type Name IP Address...
Page 16
Chapter 3. Components to Configure Chapter 5, Configuring an NFS Cluster The procedure for configuring the NFS service is described in Service.
Chapter 4. Configuring the Cluster Resources This chapter provides the procedures for configuring the cluster resources needed for an NFS service. Chapter 5, Configuring an NFS Cluster For the procedure for configuring the NFS service itself, see Service. Before you can configure an NFS service for a GFS file system in a cluster, you must add the following resources to your cluster: Section 4.1, “Configuring an IP Address •...
Chapter 4. Configuring the Cluster Resources 2. For Name, enter mygfs. 3. For Mount point, enter /mnt/gfs. This is the path to which the GFS file system is mounted. 4. For Device, enter /dev/myvg/myvol. The is the LVM logical volume on which the GFS file system was is created.
Page 19
Configuring NFS Client Resources 6. Click Submit and accept the verification screen. Use the following procedure to add NFS client resource nfsclient2 to cluster mynfs. 1. At the Add a Resource page for cluster mynfs, click the drop-down box under Select a Resource Type and select NFS client 2.
Chapter 5. 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: Section 5.1, “Add a •...
Chapter 5. Configuring an NFS Cluster Service 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.
Adding an NFS Export Resource to an NFS Service 5.4. Adding an NFS Export Resource to an NFS Service Configure the NFS Export resource as a child of the GFS resource by following this procedure: 1. At the Add a Service page for cluster nfsclust, below the GFS Resource Configuration display, click Add a child.
Chapter 6. Testing the NFS Cluster Service After you have configured the NFS service, you can check to be sure that the NFS service is working and that it will continue to work as expected if one of the nodes goes down. The following procedure tests an NFS mount on a client, fences the node on which the NFS service is running, and then checks to be sure that the NFS client can still access the file system.
Chapter 7. Troubleshooting If you find that you are seeing error messages when you try to configure your system, or if after configuration your system does not behave as expected, you can perform the following checks and examine the following areas. •...
Page 28
Chapter 7. Troubleshooting The state of the group should be none. The numbers in the brackets are the node ID numbers of the cluster nodes in the group. The clustat shows which node IDs are associated with which nodes. If you do not see a node number in the group, it is not a member of that group. For example, if a node ID is not in dlm/rgmanager group, it is not using the rgmanager dlm lock space (and probably is not running rgmanager).
Page 29
• Execute a showmount -e command on the node running the cluster service. If it shows up the right 5 exports, check your firewall configuration for all necessary ports for using NFS. • If SELinux is currently in enforcing mode on your system, check your /var/log/audit.log file for any relevant messages.
Chapter 8. The Cluster Configuration File Configuring a cluster with Conga modifies the cluster configuration file. This chapter shows the cluster Chapter 4, Configuring the Cluster configuration file before and after the procedures documented in Resources Chapter 5, Configuring an NFS Cluster Service were performed.
Page 32
Chapter 8. The Cluster Configuration File <clusternode name="clusternode5.example.com" nodeid="5" votes="1"> <fence> <method name="apc-nfs"> <device name="apc1" switch="3" port="5"/> </method> </fence> </clusternode> </clusternodes> <cman/> <fencedevices> <fencedevice name="apc1" agent="fence_apc" ipaddr="link- apc" login="apc" passwd="apc"/> </fencedevices> <rm/> </cluster> After the cluster resources and service were configured, the cluster.conf file appeared as follows. <?xml version="1.0"?>...
Chapter 9. Configuration Considerations When configuring an NFS service over a GFS file system, you may want to take the following into account. • Do not use NFS locks in a failover situation such as the one described in this configuration, as this may cause a duplicate lock situation.
Need help?
Do you have a question about the ENTERPRISE LINUX 5 - CONFIGURATION NFS OVER GFS and is the answer not in the manual?
Questions and answers