附录 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。