$linuxjunkies
>

lvs(8)

Display information about logical volumes in a volume group.

UbuntuDebianFedoraArch

Synopsis

lvs [option]... [LogicalVolume ...]

Description

lvs lists all logical volumes (LVs) or specific ones you name. It queries the LVM metadata to show attributes like size, allocation status, open count, and origin (for snapshots). Output is highly customizable with formatting options.

By default, lvs displays one logical volume per line with essential columns. The command is part of the LVM2 toolset and works with device mapper underneath.

Common options

FlagWhat it does
-a, --allShow all logical volumes, including internal/hidden ones
-o, --options LISTChoose which columns to display (e.g., lv_name,lv_size,lv_status)
-S, --select SELECTIONFilter output using expressions (e.g., lv_size>1G)
-H, --headings yes|noShow or hide column headers (default: yes)
--noheadingsSuppress header line from output
-v, --verboseShow extra details and progress information
--units b|B|s|S|k|K|m|M|g|G|t|T|p|PDisplay sizes in specified unit (bytes, sectors, or SI/binary)
--treeShow logical volume relationships in tree format
-r, --reportformat basic|jsonOutput format: basic (default) or JSON

Examples

List all logical volumes with default columns (LV, VG, Attr, LSize, Pool, Origin, Data%, Meta%, Move, Log, Cpy%Sync, Convert)

lvs

Show name, size, and status of logical volumes in myvolgroup

lvs -o lv_name,lv_size,lv_status myvolgroup

List only LVs larger than 1GB with their name, size, and volume group

lvs -S 'lv_size>1G' -o lv_name,lv_size,vg_name

Display LV names and sizes in gigabytes without header

lvs --noheadings --units G -o lv_name,lv_size

Show detailed information about a specific logical volume

lvs -v myvg/mydata

Display logical volumes in myvg in tree format showing relationships

lvs --tree myvg

Output LV information as JSON including segment count

lvs --reportformat json -o lv_name,lv_size,seg_count

Related commands