List LVM physical volume allocation
Build a paste-ready command, then review its compatibility and effects before running it.
pvs -o pv_name,vg_name,pv_size,pv_freeread-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementspvspvs must be installed and available on PATH.
Version supportpvs Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsPV VG PSize PFreeRepresentative successful output; values vary with the selected target and system state.
Known errorspvs: command not foundpvs is missing or is not available on PATH.
Verifypvs -o pv_name,vg_name,pv_size,pv_freeThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01pvsCommandRuns the pvs stage of this one-liner.
02-oOptionSelects an output file or output format for this command.
03pv_name,vg_name,pv_size,pv_freeArgumentPasses pv_name,vg_name,pv_size,pv_free to pvs.
Example input
pvs -o pv_name,vg_name,pv_size,pv_free
Example output
PV VG PSize PFree
/dev/sda2 vg0 20.00g 0
/dev/sdb1 vg0 100.00g 20.00g
Illustrative output — exact values vary by system and data.
Official sources