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 involved. 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.
3.1. Logical Volume Creation Overview
The following is a summary of the steps to perform to create an LVM logical volume.
- Initialize the partitions you will use for the LVM volume as physical volumes (this labels them).
- Create a volume group.
- Create a logical volume.
After creating the logical volume you can create and mount the file system. The examples in this document use GFS2 file systems.
- Create a GFS2 file system on the logical volume with the
- Create a new mount point with the
mkdircommand. In a clustered system, create the mount point on all nodes in the cluster.
- Mount the file system. You may want to add a line to the
fstabfile for each node in the system.
Although a GFS2 file system can be implemented in a standalone system or as part of a cluster configuration, for the Red Hat Enterprise Linux 7 release Red Hat does not support the use of GFS2 as a single-node file system. Red Hat will continue to support single-node GFS2 file systems for mounting snapshots of cluster file systems (for example, for backup purposes).
Creating the LVM volume is machine independent, since the storage area for LVM setup information is on the physical volumes and not the machine where the volume was created. Servers that use the storage have local copies, but can recreate that from what is on the physical volumes. You can attach physical volumes to a different server if the LVM versions are compatible.