System and processes

The lvdisplay command

Shows the detailed attributes of each LVM logical volume.

Syntax

sudo lvdisplay [opciones] [VG|LV|Tag...]Try it in the terminal →

Most useful options

-a, --allIncludes internal volumes, such as mirror parts
-c, --colonColon-separated output, meant for processing with scripts
-C, --columnsShows the output in columns, like lvs, and accepts its options
-m, --mapsShows how the logical extents map to the physical extents
-H, --historyIncludes deleted volumes that were kept in the LVM history

Copy-ready examples

$ sudo lvdisplaydetails of all the volumes.
$ sudo lvdisplay datos/webonly the web volume in the datos group.
$ sudo lvdisplay -m datos/webhow its extents are spread across the physical disks.
$ sudo lvdisplay -ccolon-separated output, ready to split with cut or awk.

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • For a compact summary use lvs: the lvdisplay manual itself recommends it as the alternative.
  • The -c output is colon-separated and meant for machines, not for reading at a glance.
  • Without -H, deleted volumes do not appear, even if LVM history is enabled.

Related commands

FAQ

What is the difference between lvdisplay and lvs?

lvdisplay gives the detail of each volume, and lvs a compact, configurable table. The lvdisplay manual recommends lvs as the alternative.

Can I see just one volume?

Yes: pass the group and the volume as group/volume, for example datos/web, and it will show only that one.

What is the extent map?

It is the correspondence between the extents of the logical volume and those on the physical disks. The -m option shows it.

More System and processes commands

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course