第 7 章 LVM 故障排除
本章提供了对不同 LVM 问题进行故障排除的操作方法。
7.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
-vvvvargument. 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中的归档版本。 - Check the current configuration information by running the
lvmconfigcommand. - 检查
/etc/lvm中的.cache文件来了解哪些设备中有物理卷。