Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
3.4. 邏輯卷冊備份
Metadata 的備份和 archive 會在每個卷冊群組和邏輯卷冊配置遭到變更時自動被建立,除非在
lvm.conf
檔案中停用。就預設值,metadata 的備份儲存於 /etc/lvm/backup
檔案中,並且 metadata archive 則儲存在 /etc/lvm/archive
檔案中。Metadata archive 儲存在 /etc/lvm/archive
中的保留時間長短和 archive 檔案的數量取決於 lvm.conf
檔案中的參數。每日的系統備份都應包含著 /etc/lvm
目錄的內容於備份中。
請注意,metadata 備份不會備份包含在邏輯卷冊中的用戶與系統資料。
You can manually back up the metadata to the
/etc/lvm/backup
file with the vgcfgbackup
command. You can restore metadata with the vgcfgrestore
command. The vgcfgbackup
and vgcfgrestore
commands are described in 節 4.3.12, “備份卷冊群組的 Metadata”.