附录 B. LVM 配置文件


LVM 支持多配置文件。在系统启动时,会从用环境变量 LVM_SYSTEM_DIR 指定的目录中载入 lvm.conf 配置文件,该变量在 /etc/lvm 中是默认设置。
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 第 D.2 节 “主机标签”.

B.1. LVM 配置文件

以下是用于 LVM 配置的文件:
/etc/lvm/lvm.conf
由工具读取的中央配置文件。
etc/lvm/lvm_hosttag.conf
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 第 D.2 节 “主机标签”.
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 第 B.3 节 “LVM Profiles”.
除了 LVM 配置文件之外,运行 LVM 的系统会包含以下可影响 LVM 系统设置的文件:
/etc/lvm/cache/.cache
设备名称过滤器缓存文件(可配置)。
/etc/lvm/backup/
自动卷组元数据备份目录(可配置)。
/etc/lvm/archive/
自动卷组元数据归档目录(可根据目录路径和归档历史记录途径进行配置)。
/var/lock/lvm
在单主机配置这,锁定文件可防止平行工具运行时破坏元数据;而在群集中,使用的群集范围的 DLM。
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat