In LVM, a volume group is divided up into logical volumes. There are three types of LVM logical volumes: linear volumes, striped volumes, and mirrored volumes. These are described in the following sections.
A linear volume aggregates space from one or more physical volumes into one logical volume. For example, if you have two 60GB disks, you can create a 120GB logical volume. The physical storage is concatenated.
Creating a linear volume assigns a range of physical extents to an area of a logical volume in order. For example, as shown in Figure 3.2, “Extent Mapping”
logical extents 1 to 99 could map to one physical volume and logical extents 100 to 198 could map to a second physical volume. From the point of view of the application, there is one device that is 198 extents in size.
Figure 3.2. Extent Mapping
The physical volumes that make up a logical volume do not have to be the same size. Figure 3.3, “Linear Volume with Unequal Physical Volumes”
shows volume group
with a physical extent size of 4MB. This volume group includes 2 physical volumes named
. The physical volumes are divided into 4MB units, since that is the extent size. In this example,
is 200 extents in size (800MB) and
is 100 extents in size (400MB). You can create a linear volume any size between 1 and 300 extents (4MB to 1200MB). In this example, the linear volume named
is 300 extents in size.
Figure 3.3. Linear Volume with Unequal Physical Volumes
Figure 3.4. Multiple Logical Volumes