7.2. 在失败的设备中显示信息。
You can use the
-P argument of the lvs or vgs command to display information about a failed volume that would otherwise not appear in the output. This argument permits some operations even though the metadata is not completely consistent internally. For example, if one of the devices that made up the volume group vg failed, the vgs command might show the following output.
vgs -o +devices
# vgs -o +devices
Volume group "vg" not found
如果您为
vgs 指定了 -P 选项,那么该卷组虽仍然不可用,但您可能看到更多有关失败设备的信息。
在这个示例中,失败的设备导致卷组中的线性和条状逻辑卷都失败。不带
-P 选项的 lvs 命令会显示以下输出结果。
lvs -a -o +devices
# lvs -a -o +devices
Volume group "vg" not found
使用
-P 选项显示失败的逻辑卷。
下面的例子显示在镜像逻辑卷的一支出错时,带
-P 选项的 pvs 和 lvs 命令的输出结果。