4.2.2. 显示物理卷
用来显示 LVM 物理卷属性的命令有三个:
pvs
、pvdisplay
和 pvscan
。
The
pvs
command provides physical volume information in a configurable form, displaying one line per physical volume. The pvs
command provides a great deal of format control, and is useful for scripting. For information on using the pvs
command to customize your output, see 第 4.9 节 “为 LVM 自定义报告”.
pvdisplay
命令为每个物理卷提供详细的多行输出。它用混合格式显示物理属性(大小、扩展、卷组等等)。
以下是
pvdisplay
为单一物理卷显示的输出结果示例。
pvscan
命令在系统中为物理卷扫描所有支持的 LVM 块设备。
以下命令显示所有找到的物理设备:
You can define a filter in the
lvm.conf
so that this command will avoid scanning specific physical volumes. For information on using filters to control which devices are scanned, see 第 4.6 节 “用过滤器控制 LVM 设备扫描”.