LinuxCommandLibrary

lvs

displays information about logical volumes in a configurable table format

TLDR

List logical volumes

$ sudo lvs
copy
List all volumes
$ sudo lvs -a
copy
Verbose output
$ sudo lvs -v
copy
Show specific fields
$ sudo lvs -o lv_name,vg_name,lv_size
copy
Append field
$ sudo lvs -o +field_name
copy
No headings
$ sudo lvs --noheadings
copy
Use separator
$ sudo lvs --separator =
copy

SYNOPSIS

lvs [OPTIONS] [VolumeGroupName|LogicalVolume...]

DESCRIPTION

lvs displays information about logical volumes in a configurable table format. It provides quick overview of LV names, sizes, attributes, and related volume groups.

PARAMETERS

-a, --all

Show all logical volumes including internal ones
-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 (b, k, m, g, t)

CAVEATS

Some fields require verbose mode to display. Default output is designed for human readability; use --separator and --noheadings for scripting.

HISTORY

lvs is part of LVM2, the Linux Logical Volume Manager, providing quick volume listing functionality.

SEE ALSO

lvm(8), lvdisplay(8), pvs(8), vgs(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community