Appendix B. The LVM Configuration Files

download PDF
LVM supports multiple configuration files. At system startup, the lvm.conf configuration file is loaded from the directory specified by the environment variable LVM_SYSTEM_DIR, which is set to /etc/lvm by default.
The lvm.conf file can specify additional configuration files to load. Settings in later files override settings from earlier ones. To display the settings in use after loading all the configuration files, execute the lvmconfig command.
For information on loading additional configuration files, see Section D.2, “Host Tags”.

B.1. The LVM Configuration Files

The following files are used for LVM configuration:
Central configuration file read by the tools.
For each host tag, an extra configuration file is read if it exists: lvm_hosttag.conf. If that file defines new tags, then further configuration files will be appended to the list of files to read in. For information on host tags, see Section D.2, “Host Tags”.
LVM profiles
An LVM profile is a set of selected customizable configuration settings that can be implemented for specific environments. The settings in an LVM profile can be used to override existing configuration. For information on LVM profiles see Section B.3, “LVM Profiles”.
In addition to the LVM configuration files, a system running LVM includes the following files that affect LVM system setup:
Device name filter cache file (configurable).
Directory for automatic volume group metadata backups (configurable).
Directory for automatic volume group metadata archives (configurable with regard to directory path and archive history depth).
In single-host configuration, lock files to prevent parallel tool runs from corrupting the metadata; in a cluster, cluster-wide DLM is used.
Red Hat logoGithubRedditYoutubeTwitter


Try, buy, & sell


About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.