Installation guide

Table Of Contents
Chapter 3. LVM Administration
Overview
This chapter provides an overview of the administrative procedures you use to configure LVM
logical volumes. This chapter is intended to provide a general understanding of the steps in-
volved. For specific step-by-step examples of common LVM configuration procedures, see
Chapter 5, LVM Configuration Examples.
For descriptions of the CLI commands you can use to perform LVM administration, see
Chapter 4, LVM Administration with CLI Commands. Alternately, you can use the LVM GUI,
which is described in Chapter 7, LVM Administration with the LVM GUI.
1. Creating LVM Volumes in a Cluster
Creating LVM logical volumes in a cluster environment is identical to creating LVM logical
volumes on a single node. There is no difference in the LVM commands themselves, or in the
LVM GUI interface. In order to enable the LVM volumes you are creating in a cluster, the cluster
infrastructure must be running and the cluster must be quorate.
For information on how to set up the cluster infrastructure, see Configuring and Managing a Red
Hat Cluster.
2. Logical Volume Creation Overview
The following is a summary of the steps to perform to create an LVM logical volume.
1. Initialize the partitions you will use for the LVM volume as physical volumes (this labels
them).
2. Create a volume group.
3. Create a logical volume.
After creating the logical volume you can create and mount the file system. The examples in this
document use GFS file systems.
1. Create a GFS file system on the logical volume with the gfs_mkfs command.
2. Create a new mount point with the mkdir command. In a clustered system, create the
mount point on all nodes in the cluster.
3. Mount the file system. You may want to add a line to the fstab file for each node in the sys-
tem.
Alternately, you can create and mount the GFS file system with the LVM GUI.
Creating the LVM volume is machine independent, since the storage area for LVM setup inform-
ation is on the physical volumes and not the machine where the volume was created. Servers
15