Menu Close

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 指​​​​​​​令​​​​​​​。​​​​​​​

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 會​​​​​​​被​​​​​​​使​​​​​​​用​​​​​​​。​​​​​​​