Show Table of Contents
第 6 章 LVM 故障排除
本章提供了对不同 LVM 问题进行故障排除的操作方法。
6.1. 故障排除诊断
如果某个命令没有按照预期执行,则可以使用以下方法收集诊断信息:
- 使用任意命令的
-v、-vv、-vvv或者-vvvv参数提高输出信息的详细程度。 - 如果问题与逻辑卷激活有关,请在配置文件的‘log’部分设定‘activation=1’,并在运行命令时使用
-vvvv选项。检查输出结果后,确定将此参数重新设为 0,以防止在机器可用内存较少时出现机器锁定现象。 - 运行
lvmdump命令可为诊断提供信息转储。有关详情请参考lvmdump(8) man page。 - 执行
lvs -v、pvs -a或者dmsetup info -c命令以获得额外的系统信息。 - 检查
/etc/lvm/backup文件中最后的元数据备份和/etc/lvm/archive> 中的归档版本。 - 运行
lvm dumpconfig命令检查现有配置信息。 - 检查
/etc/lvm目录中的.cache文件,了解包含物理卷设备的记录。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.