<< Back to shouce.jb51.net

3.2. Installation Tasks

To install GFS, perform the following steps:

  1. Install GFS RPMs.

  2. Load the GFS kernel modules.

3.2.1. Installing GFS RPMs

Installing GFS RPMs consists of acquiring and installing the GFS user-tools RPM and the GFS kernel-modules RPM.

NoteNote
 

You must install the GFS user-tools RPM before installing the GFS kernel-modules RPM.

To install GFS RPMs, follow these steps:

StepActionComment
1.

Acquire the GFS user-tools RPM and the GFS kernel-modules RPM. Copy or download each RPM to each GFS node.

Make sure that you acquire the appropriate GFS kernel-modules RPM for each kernel. For example, if you have an SMP or hugemem kernel installed (kernel-smp-2.4.21-15.EL.rpm), you need this GFS kernel-modules RPM:

GFS-modules-smp-6.0.0-0.6.i686.rpm

The GFS user-tools RPM, however, is not dependent on the kernel type. For example, the GFS user-tools RPM, GFS-6.0.0-0.6.i686, works with any RHEL3-U2 kernel.

2.

At each node, issue the following rpm command:

rpm -Uvh GFSUserToolsRPM

Installs the GFS user tools from the GFS user-tools RPM.

GFSUserToolsRPM = GFS user-tools RPM file.

3.

At each node, issue the following rpm command:

rpm -Uvh GFSKernelModsRPM

Installs the GFS kernel modules from the GFS kernel-modules RPM.

GFSKernelModsRPM = GFS kernel-modules RPM file.

4.

At each node, issue the following rpm command to check the GFS version:

rpm -qa | grep GFS

Verify that the GFS software has been installed. This lists the GFS software installed in the previous step.

Table 3-1. Installing a GFS RPM

3.2.2. Loading the GFS Kernel Modules

Once the GFS RPMs have been installed on the GFS nodes, the following GFS kernel modules need to be loaded into the running kernel before GFS can be set up and used:

NoteNote
 

The GFS kernel modules must be loaded into a GFS node each time the node is started. It is recommended that you use the init.d scripts included with GFS to automate loading the GFS kernel modules. For more information about GFS init.d scripts, refer to Chapter 12 Using GFS init.d Scripts.

NoteNote
 

The procedures in this section are for a GFS configuration that uses LOCK_GULM. If you are using LOCK_NOLOCK, refer to Appendix C Basic GFS Examples for information about which GFS kernel modules you should load.

To load the GFS kernel modules, follow the steps in Table 3-2.

StepCommandDescription
1.depmod -aRun this only once after RPMs are installed.
2.modprobe pool

Loads pool.o and dependent files.

Note: If you need to specify a persistent major number, edit /etc/modules.conf before loading pool.o. Refer to Section 3.1.2 Specifying a Persistent Major Number

3.modprobe lock_gulmLoads lock_gulm.o and dependent files.
4.modprobe gfsLoads gfs.o and dependent files.
5.lsmodVerifies that all GFS kernel modules are loaded. This shows a listing of currently loaded modules. It should display all the modules loaded in the previous steps and other system kernel modules.

Table 3-2. Loading GFS Kernel Modules