Download  Print this page

Red Hat ENTERPRISE LINUX 5 - CONFIGURATION NFS OVER GFS Configuration Manual

Nfs over gfs in a 5-node red hat cluster using conga
Hide thumbs

Advertisement

Red Hat Enterprise Linux 5
Configuration Example
- NFS Over GFS
Configuring NFS over GFS in a Red Hat Cluster

Advertisement

loading

  Summary of Contents for Red Hat ENTERPRISE LINUX 5 - CONFIGURATION NFS OVER GFS

  • Page 1 Red Hat Enterprise Linux 5 Configuration Example - NFS Over GFS Configuring NFS over GFS in a Red Hat Cluster...
  • Page 2 Configuration Example - NFS Over GFS Red Hat Enterprise Linux 5 Configuration Example - NFS Over Configuring NFS over GFS in a Red Hat Cluster Edition 3 Copyright © 2009 Red Hat Inc.. This material may only be distributed subject to the terms and conditions set forth in the Open Publication License, V1.0 or later (the latest version of the OPL is presently available at http://www.opencontent.org/openpub/).
  • Page 3: Table Of Contents

    Introduction 1. About This Guide ......................v 2. Audience ........................v 3. Software Versions ......................v 4. Related Documentation ....................v 5. Feedback ........................vi 6. Document Conventions ....................vi 6.1. Typographic Conventions ..................vi 6.2. Pull-quote Conventions ..................viii 6.3.
  • Page 5: Introduction

    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.
  • Page 6: Feedback

    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.
  • Page 8: Pull-Quote Conventions

    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.
  • Page 9: Notes And Warnings

    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.
  • Page 11: Nfs Over Gfs In A Red Hat Cluster

    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.
  • Page 13: Prerequisite Configuration

    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.
  • Page 15: Components To Configure

    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.
  • Page 17: Configuring The Cluster Resources

    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 •...
  • Page 18: Configuring An Nfs Export Resource

    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.
  • Page 21: Configuring An Nfs Cluster Service

    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 •...
  • Page 22: Adding An Ip Address Resource To An Nfs Service

    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.
  • Page 23: Adding An Nfs Export Resource To An Nfs Service

    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.
  • Page 25: Testing The Nfs Cluster Service

    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.
  • Page 27: Troubleshooting

    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.
  • Page 31: The Cluster Configuration File

    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"?>...
  • Page 33 <device name="apc1" switch="3" port="3"/> </method> </fence> </clusternode> <clusternode name="clusternode4.example.com" nodeid="4" votes="1"> <fence> <method name="apc-nfs"> <device name="apc1" switch="3" port="4"/> </method> </fence> </clusternode> <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"...
  • Page 34 Chapter 8. The Cluster Configuration File <nfsclient allow_recover="1" name="nfsclient5" options="rw" target="nfsclient5.example.com"/> </resources> <service autostart="1" exclusive="0" name="nfssvc" recovery="relocate"> <ip ref="10.15.86.96"/> <clusterfs ref="mygfs"> <nfsexport ref="mynfs"> <nfsclient ref="nfsclient1"/> <nfsclient ref="nfsclient2"/> <nfsclient ref="nfsclient3"/> <nfsclient ref="nfsclient4"/> <nfsclient ref="nfsclient5"/> </nfsexport> </clusterfs> </service> </rm> </cluster>...
  • Page 35: Configuration Considerations

    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.
  • Page 37: Revision History

    Appendix A. Revision History Revision 1.0...
  • Page 39: Index

    Index kdump service, 15 LVM volume, prerequisite, 3 Allow Recover checkbox, 8 Monitor Link checkbox, 7, 12 child resource configuration, 13, 13 definition, 11 netconsole service, 15 clustat command, 17 cluster nodes, prerequisite, 3 failover and failback issues, 25 cluster resources, 5 in a cluster, 25 cluster service locks, 25...
  • Page 40 Index service adding to cluster, 11 automatic start, 11 showmount command, 17 testing NFS service, 15...