Chapter 2. The LVM Logical Volume Manager
This chapter provides a summary of the features of the LVM logical volume manager that are new since the release of Red Hat Enterprise Linux 5.6. Following that, this chapter provides a high-level overview of the components of the Logical Volume Manager (LVM).
2.1. New and Changed Features
This section lists new and changed features of the LVM logical volume manager that are included with the release of Red Hat Enterprise Linux 5.6 and later.
2.1.1. New and Changed Features for Red Hat Enterprise Linux 5.6
Red Hat Enterprise Linux 5.6 includes the following documentation and feature updates and changes.
- In Red Hat Enterprise Linux 5.6, the
lvm.conf
configuration file includes adefault_data_alignment
parameter that allows you to set the default alignment of the start of a data area. For information on data alignment in LVM as well as information on changing the default value ofdefault_data_alignment
, see the inline documentation for the/etc/lvm/lvm.conf
file, which is also documented in Appendix B, The LVM Configuration Files. - In the Red Hat Enterprise Linux 5.6 release, you can use the
--splitmirrors
argument of thelvconvert
command to split off a redundant image of a mirrored logical volume to form a new logical volume. For information on using this option, see Section 5.4.1.3.3, “Splitting Off a Redundant Image of a Mirrored Logical Volume”. - You can now create a mirror log for a mirrored logical device that is itself mirrored by using the
--mirrorlog mirrored
argument of thelvcreate
command when creating a mirrored logical device. For information on using this option, see Section 5.4.1.3.1, “Mirroring the Mirror Log”. - In the Red Hat Enterprise Linux 5.6 release, you can control metadata storage on a physical volume by using the
--metadataignore
option of thepvcreate
command. For information on setting this value, see Appendix D, LVM Volume Group Metadata and thepvcreate
man page. - In the Red Hat Enterprise Linux 5.6 release, you can determine the number of metadata copies at the volume group level with the
--vgmetadatacopies
option of thevgcreate
command. For information on setting this value, see Appendix D, LVM Volume Group Metadata and thevgcreate
man page.
2.1.2. New and Changed Features for Red Hat Enterprise Linux 5.7
Red Hat Enterprise Linux 5.7 includes the following documentation and feature updates and changes.
- You can now combine RAID0 (striping) and RAID1 (mirroring) in a single logical volume. Creating a logical volume while simultaneously specifying the number of mirrors (
--mirrors X
) and the number of stripes (--stripes Y
) results in a mirror device whose constituent devices are striped. For information on creating mirrored logical volumes, see Section 5.4.1.3, “Creating Mirrored Volumes”. - As of the Red Hat Enterprise Linux 5.7 release, there are two new features related to snapshots. First, in addition to the snapshot itself being invalidated when full, any mounted file systems on that snapshot device are forcibly unmounted, avoiding the inevitable file system errors upon access to the mount point. Second, you can specify the
snapshot_autoextend_threshold
option in thelvm.conf
file. This option allows automatic extension of a snapshot whenever the remaining snapshot space drops below the threshold you set. This feature requires that there be unallocated space in the volume group.Information on settingsnapshot_autoextend_threshold
andsnapshot_autoextend_percent
is provided in thelvm.conf
file itself. For information about thelvm.conf
file, refer to Appendix B, The LVM Configuration Files. - When extending an LVM volume, you can now use the
--alloc cling
option of thelvextend
command to specify thecling
allocation policy. This policy will choose space on the same physical volumes as the last segment of the existing logical volume. If there is insufficient space on the physical volumes and a list of tags is defined in thelvm.conf
file, LVM will check whether any of the tags are attached to the physical volumes and seek to match those physical volume tags between existing extents and new extents.For information on extending LVM mirrored volumes with the--alloc cling
option of thelvextend
command, see Section 5.4.11, “Extending a Logical Volume with thecling
Allocation Policy”. - As of the Red Hat Enterprise Linux 5.7 release, if you need to create a consistent backup of data on a clustered logical volume you can activate the volume exclusively and then create the snapshot. For information on activating logical volumes exclusively on one node, see Section 5.8, “Activating Logical Volumes on Individual Nodes in a Cluster”.
2.1.3. New and Changed Features for Red Hat Enterprise Linux 5.8
Red Hat Enterprise Linux 5.8 includes the following documentation and feature updates and changes.
- As of the Red Hat Enterprise Linux 5.8 release, it is possible to grow mirrored logical volumes with the
lvextend
command without performing a synchronization of the new mirror regions. For information on extending a mirrored logical volume, see Section 5.4.10, “Extending a Mirrored Volume”. - Small clarifactions have been made throughout this document.
2.1.4. New and Changed Features for Red Hat Enterprise Linux 5.9 and Red Hat Enterprise LInux 5.10
Red Hat Enterprise Linux 5.9 and Red Hat Enterprise Linux 5.10 include the following documentation and feature updates and changes.
- Small clarifactions have been made throughout this document.
2.1.5. New and Changed Features for Red Hat Enterprise Linux 5.11
Red Hat Enterprise Linux 5.11 includes the following documentation and feature updates and changes.
- This manual documents the
lvm tags
command, which lists the currently active host tags. For information on LVM object tags, see Appendix C, LVM Object Tags. - As of the Red Hat Enterprise Linux 5.11 release, you no longer need to specify a major number when using the
--persistent
option of thelvcreate
orlvchange
command. This had no effect on the major number, which the kernel assigned dynamically. For information on persistent device numbers, see Section 5.4.2, “Persistent Device Numbers”.