Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
附錄 B. LVM 配置檔案
LVM 支援多重配置檔案。當系統啟動時,
lvm.conf
配置檔案會被由 LVM_SYSTEM_DIR
這個環境變數所指定的目錄載入,預設值會是 /etc/lvm
。
lvm.conf
檔案可指定所要載入的額外配置檔案。檔案中之後的設定將會覆蓋先前的設定。若要在載入所有配置檔案之後顯示使用中的設定,請執行 lvm dumpconfig
指令。
For information on loading additional configuration files, see 節 C.2, “主機標籤(Host Tags)”.
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 tiles to read in. For information on host tags, see 節 C.2, “主機標籤(Host Tags)”.
除了 LVM 配置檔案以外,執行 LVM 的系統還包含了下列可影響 LVM 系統設定的檔案:
- /etc/lvm/.cache
- 裝置名稱過濾快取檔案(可配置)。
- /etc/lvm/backup/
- 自動卷冊群組 metadata 備份的目錄(可配置)。
- /etc/lvm/archive/
- 自動卷冊群組 metadata 壓縮檔的目錄(可藉由目錄路徑和 archive history 深度來進行配置)。
- /var/lock/lvm/
- 在單主機的配置中,檔案會被鎖定來預防 parallel tool 執行並損壞 metadata;在叢集中,重集全域的 DLM 會被使用。