To install GFS, perform the following steps:
Install GFS RPMs.
Load the GFS kernel modules.
Installing GFS RPMs consists of acquiring and installing the GFS user-tools RPM and the GFS kernel-modules RPM.
Note | |
---|---|
You must install the GFS user-tools RPM before installing the GFS kernel-modules RPM. |
To install GFS RPMs, follow these steps:
Step | Action | Comment |
---|---|---|
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
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:
pool.o
lock_harness.o
lock_gulm.o
gfs.o
Note | |
---|---|
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. |
Note | |
---|---|
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.
Step | Command | Description |
---|---|---|
1. | depmod -a | Run 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_gulm | Loads lock_gulm.o and dependent files. |
4. | modprobe gfs | Loads gfs.o and dependent files. |
5. | lsmod | Verifies 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