pvs

Report physical volume information

TLDR

List physical volumes
$ sudo pvs
List all including non-PVs
$ sudo pvs -a
Verbose output
$ sudo pvs -v
Show specific fields
$ sudo pvs -o pv_name,vg_name,pv_size
Append field
$ sudo pvs -o +field_name
No headings
$ sudo pvs --noheadings
Use separator
$ sudo pvs --separator =

SYNOPSIS

pvs [OPTIONS] [PhysicalVolume...]

DESCRIPTION

pvs displays information about physical volumes in a configurable table format. It shows device names, volume groups, sizes, and free space for each physical volume.

PARAMETERS

-a, --all

Show devices that are not physical volumes
-v, --verbose
Increase verbosity and show additional details
-o, --options fields
Specify which fields to display
--noheadings
Suppress the heading line in output
--separator char
Use specified character as field separator
--units units
Display sizes in specified units

INSTALL

sudo apt install lvm2
sudo dnf install lvm2
sudo pacman -S lvm2
sudo apk add lvm2
sudo zypper install lvm2
nix profile install nixpkgs#lvm2

CAVEATS

Physical volumes that are not part of a volume group will show empty VG field. Use -a to see devices that could become physical volumes.

HISTORY

pvs is part of LVM2, the Linux Logical Volume Manager.

SEE ALSO

lvm(1), pvdisplay(1), lvs(1), vgs(1)