2008-10-08 16:50:13 +04:00
.TH LVDISPLAY 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2002-01-04 23:35:19 +03:00
.SH NAME
lvdisplay \- display attributes of a logical volume
.SH SYNOPSIS
.B lvdisplay
2009-10-26 17:37:09 +03:00
[\- a|\- \- all]
2008-11-12 18:01:35 +03:00
[\- c|\- \- colon] [\- d|\- \- debug] [\- h|\- ?|\- \- help]
2002-11-18 17:04:08 +03:00
[\- \- ignorelockingfailure]
2009-10-26 17:37:09 +03:00
[\- \- maps]
[\- \- nosuffix]
[\- P|\- \- partial]
[\- \- units hHbBsSkKmMgGtTpPeE]
[\- v|\- \- verbose]
[\- \- version] [LogicalVolumePath [LogicalVolumePath...]]
.br
.br
.B lvdisplay \- \- columns | \- C
[\- \- aligned]
[\- a|\- \- all]
[\- d|\- \- debug] [\- h|\- ?|\- \- help]
[\- \- ignorelockingfailure]
[\- \- noheadings]
[\- \- nosuffix]
[\- o|\- \- options [+]Field[,Field]]
[\- O|\- \- sort [+|-]Key1[,[+|-]Key2[,...]]]
[\- P|\- \- partial]
[\- \- segments]
[\- \- separator Separator]
[\- \- unbuffered]
[\- \- units hHbBsSkKmMgGtTpPeE]
[\- v|\- \- verbose]
[\- \- version] [LogicalVolumePath [LogicalVolumePath...]]
2002-01-04 23:35:19 +03:00
.SH DESCRIPTION
lvdisplay allows you to see the attributes of a logical volume
like size, read/write status, snapshot information etc.
2004-11-12 18:59:09 +03:00
.P
\fB lvs\fP (8) is an alternative that provides the same information
2007-07-24 15:29:55 +04:00
in the style of \fB ps\fP (1). \fB lvs\fP is recommended over
\fB lvdisplay\fP .
2002-01-04 23:35:19 +03:00
.SH OPTIONS
2009-10-26 17:37:09 +03:00
See \fB lvm\fP for common options and \fB lvs\fP for options given with
\fB \- \- columns\fP .
.TP
.I \- \- all
Include information in the output about internal Logical Volumes that
are components of normally-accessible Logical Volumes, such as mirrors,
but which are not independently accessible (e.g. not mountable).
For example, after creating a mirror using 'lvcreate -m1 --mirrorlog disk',
this option will reveal three internal Logical Volumes, with suffixes
mimage_0, mimage_1, and mlog.
2002-01-04 23:35:19 +03:00
.TP
.I \- c, \- \- colon
2002-11-18 17:04:08 +03:00
Generate colon separated output for easier parsing in scripts or programs.
2004-11-12 18:59:09 +03:00
N.B. \fB lvs\fP (8) provides considerably more control over the output.
2002-01-04 23:35:19 +03:00
.nf
The values are:
* logical volume name
* volume group name
* logical volume access
* logical volume status
* internal logical volume number
* open count of logical volume
2007-07-24 14:58:01 +04:00
* logical volume size in sectors
2002-01-04 23:35:19 +03:00
* current logical extents associated to logical volume
* allocated logical extents of logical volume
* allocation policy of logical volume
* read ahead sectors of logical volume
* major device number of logical volume
* minor device number of logical volume
.fi
.TP
.I \- m, \- \- maps
Display the mapping of logical extents to physical volumes and
physical extents.
2009-10-26 17:37:09 +03:00
.TP
.I \- \- columns | \- C
Display output in columns, the equivalent of \fB lvs\fP . Options listed
are the same as options given in \fB lvs (8)\fP .
2002-01-04 23:35:19 +03:00
.SH Examples
2005-12-02 23:35:07 +03:00
"lvdisplay -v /dev/vg00/lvol2" shows attributes of that logical volume.
If snapshot
2002-01-04 23:35:19 +03:00
logical volumes have been created for this original logical volume,
this command shows a list of all snapshot logical volumes and their
status (active or inactive) as well.
"lvdisplay /dev/vg00/snapshot" shows the attributes of this snapshot
logical volume and also which original logical volume
it is associated with.
.SH SEE ALSO
.BR lvm (8),
.BR lvcreate (8),
.BR lvscan (8)