$linuxjunkies
>

pvs(8)

Display information about physical volumes in LVM.

UbuntuDebianFedoraArch

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

FlagWhat it does
-o, --optionsSelect which columns to display (e.g., pv_name,vg_name,pv_size,pv_free)
-a, --allInclude information about all devices, including those not currently allocated
-S, --selectFilter PVs by selection criteria (e.g., pv_size > 1G)
--sortSort output by specified column (e.g., --sort pv_size)
-v, --verboseIncrease output verbosity; can be repeated for more detail
--unbufferedProduce output immediately instead of buffering
--no-headingsSuppress the headings line from output
--alignedFormat output in aligned columns
-h, --helpDisplay help message and exit

Examples

Display all physical volumes with default columns (PV, VG, Fmt, Attr, PSize, PFree)

pvs

Show PV name, volume group, total size, free space, and used space

pvs -o pv_name,vg_name,pv_size,pv_free,pv_used

Display information for specific physical volumes only

pvs /dev/sda1 /dev/sdb1

List 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_free

Show verbose information about PVs in volume group 'vg0'

pvs -v vg0

Output PV names and sizes without header, suitable for scripting

pvs --no-headings -o pv_name,pv_size

Related commands