United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
Limitation: This only applies for Red Hat Enterprise Linux 4 Update 2 or later. Setting up the Global File System (GFS) on Red Hat Enterprise Linux 4 is a relatively simple process, but does require several steps. This brief article provides a general overview of all necessary steps; more detail of each step can be found in separate Knowledge Base Articles. It is assumed that Red Hat Enterprise Linux 4 is installed on each node and that each node is connected to the shared storage device. For this article, the example will refer to the shared storage device as /dev/sde. The examples in this article refer to a two node cluster.
NOTE: for each package that ends in "-kernel" there are variants for each kernel flavor. For example, for the SMP kernel, the packages to install would be cman-kernel-smp, GFS-kernel-smp, and so forth.
service ccsd start service cman start service fenced start service clvmd start service gfs start
locking_type = 2 locking_library = "/usr/lib/liblvm2clusterlock.so"
Then run the following commands:
pvcreate /dev/sde vgcreate volGFS01 /dev/sde lvcreate -L size in megabites volGFS01
Each of the above commands should return output that indicates success. Run vgchange -ay to activate the new volumes. For more information on creating logical volumes, see other articles in the Knowledgebase.
gfs_mkfs -p lock_dlm -t nameofcluster:gfs01 -j number of nodes /dev/volGFS/lvol0 mkdir /mnt/gfs mount -t gfs /dev/volGFS/lvol0 /mnt/gfs
Note: The GFS volume group should now be seen on all nodes and can run the above mount command on each node.
Note: Red Hat Enterprise Linux 5 has a new locking_type = 3 in /etc/lvm/lvm.conf.
The logical volume manager can take a new locking_type = 3 to figure out the appropriate locking for clustered and non-clustered volumes.