此内容没有您所选择的语言版本。
5.2.2. Displaying Physical Volumes
There are three commands you can use to display properties of LVM physical volumes:
pvs
, pvdisplay
, and 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 Section 5.8, “Customized Reporting for LVM”.
The
pvdisplay
command provides a verbose multi-line output for each physical volume. It displays physical properties (size, extents, volume group, and so on) in a fixed format.
The following example shows the output of the
pvdisplay
command for a single physical volume.
The
pvscan
command scans all supported LVM block devices in the system for physical volumes.
The following command shows all physical devices found:
You can define a filter in the
/etc/lvm/lvm.conf
file so that this command will avoid scanning specific physical volumes. For information on using filters to control which devices are scanned, see Section 5.5, “Controlling LVM Device Scans with Filters”.