Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
章 6. LVM 疑難排解
此章節提供了針對於各種 LVM 問題進行疑難排解的指南。
6.1. 疑難排解診斷結果
若指令不如預期地運作的話,您可透過下列方式來取得診斷結果:
- 使用任何指令的
-v
、-vv
、-vvv
或-vvvv
引數來取得更加詳細的輸出。 - If the problem is related to the logical volume activation, set 'activation = 1' in the 'log' section of the configuration file and run the command with the
-vvvv
argument. After you have finished examining this output be sure to reset this parameter to 0, to avoid possible problems with the machine locking during low memory situations. - 請執行
lvmdump
指令,它提供了用來作為診斷用的資訊傾印。如欲取得更多相關資訊,請參閱lvmdump
(8) man page。 - 您可執行
lvs -v
、pvs -a
或dmsetup info -c
指令來取得額外的系統資訊。 - 在
/etc/lvm/backup
檔案中(或於/etc/lvm/archive
檔案中的壓縮版本)檢查 metadata 的最後一個備份。 - 透過執行
lvm dumpconfig
指令來檢查目前的配置資訊。 - 檢查
/etc/lvm
目錄中的.cache
檔案來取得有關於哪個裝置上含有實體卷冊的相關記錄。