pvs(8)
Display information about physical volumes in LVM.
Synopsis
pvs [option]... [pv]...Description
pvs reports information about physical volumes (PVs) in the Logical Volume Manager. It provides a quick, machine-friendly overview of PV attributes including size, allocated extents, free space, and UUID.
By default, pvs displays one line per physical volume with key metadata. You can customize the output columns and apply filters to specific PVs or volume groups.
Common options
| Flag | What it does |
|---|---|
-o, --options | Select which columns to display (e.g., pv_name,vg_name,pv_size,pv_free) |
-a, --all | Include information about all devices, including those not currently allocated |
-S, --select | Filter PVs by selection criteria (e.g., pv_size > 1G) |
--sort | Sort output by specified column (e.g., --sort pv_size) |
-v, --verbose | Increase output verbosity; can be repeated for more detail |
--unbuffered | Produce output immediately instead of buffering |
--no-headings | Suppress the headings line from output |
--aligned | Format output in aligned columns |
-h, --help | Display help message and exit |
Examples
Display all physical volumes with default columns (PV, VG, Fmt, Attr, PSize, PFree)
pvsShow PV name, volume group, total size, free space, and used space
pvs -o pv_name,vg_name,pv_size,pv_free,pv_usedDisplay information for specific physical volumes only
pvs /dev/sda1 /dev/sdb1List only physical volumes larger than 10 gigabytes
pvs -S 'pv_size > 10G'Display all PVs sorted by free space in ascending order
pvs --sort pv_freeShow verbose information about PVs in volume group 'vg0'
pvs -v vg0Output PV names and sizes without header, suitable for scripting
pvs --no-headings -o pv_name,pv_size