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
2014-06-11 13:06:30 +04:00
lvdisplay \(em display attributes of a logical volume
2002-01-04 23:35:19 +03:00
.SH SYNOPSIS
.B lvdisplay
2012-04-11 16:42:10 +04:00
.RB [ \- a | \- \- all ]
.RB [ \- c | \- \- colon ]
2014-05-21 16:53:56 +04:00
.RB [ \- \- commandprofile
.IR ProfileName ]
2012-04-11 16:42:10 +04:00
.RB [ \- d | \- \- debug ]
.RB [ \- h | \- ? | \- \- help ]
.RB [ \- \- ignorelockingfailure ]
2013-10-02 00:20:10 +04:00
.RB [ \- \- ignoreskippedcluster ]
2012-04-11 16:42:10 +04:00
.RB [ \- \- maps ]
.RB [ \- \- nosuffix ]
.RB [ \- P | \- \- partial ]
.RB [ \- \- units
.IR hHbBsSkKmMgGtTpPeE ]
.RB [ \- v | \- \- verbose ]
.RB [ \- \- version ]
2014-08-14 13:09:30 +04:00
.RI [ VolumeGroupName | LogicalVolume { Name | Path }
.RI [ VolumeGroupName | LogicalVolume { Name | Path }\ ...]]
2009-10-26 17:37:09 +03:00
.br
2012-04-11 16:42:10 +04:00
.B lvdisplay
2014-03-31 00:35:45 +04:00
.BR \- C | \- \- columns
2012-04-11 16:42:10 +04:00
.RB [ \- \- aligned ]
2014-07-02 15:16:32 +04:00
.RB [ \- \- binary ]
2012-04-11 16:42:10 +04:00
.RB [ \- a | \- \- all ]
2014-05-21 16:53:56 +04:00
.RB [ \- \- commandprofile
.IR ProfileName ]
2012-04-11 16:42:10 +04:00
.RB [ \- d | \- \- debug ]
.RB [ \- h | \- ? | \- \- help ]
.RB [ \- \- ignorelockingfailure ]
2013-10-02 00:20:10 +04:00
.RB [ \- \- ignoreskippedcluster ]
2012-04-11 16:42:10 +04:00
.RB [ \- \- noheadings ]
.RB [ \- \- nosuffix ]
.RB [ \- o | \- \- options
.RI [ + ] Field [ ,Field ...]]
.RB [ \- O | \- \- sort
2014-06-11 13:06:30 +04:00
.RI [ + | \- ] Key1 [ , [ + | \- ] Key2 ...]]
2012-04-11 16:42:10 +04:00
.RB [ \- P | \- \- partial ]
.RB [ \- \- segments ]
2014-06-16 18:23:55 +04:00
.RB [ \- S | \- \- select
.IR Selection ]
2012-04-11 16:42:10 +04:00
.RB [ \- \- separator
.IR Separator ]
.RB [ \- \- unbuffered ]
.RB [ \- \- units
.IR hHbBsSkKmMgGtTpPeE ]
.RB [ \- v | \- \- verbose ]
.RB [ \- \- version ]
2014-08-14 13:09:30 +04:00
.RI [ VolumeGroupName | LogicalVolume { Name | Path }
.RI [ VolumeGroupName | LogicalVolume { Name | Path }\ ...]]
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
2012-04-11 16:42:10 +04:00
\fB lvs\fP (8) is an alternative that provides the same information
in the style of \fB ps\fP (1).
\fB lvs\fP (8) is recommended over \fB lvdisplay\fP .
2007-07-24 15:29:55 +04:00
2002-01-04 23:35:19 +03:00
.SH OPTIONS
2012-04-11 16:42:10 +04:00
See \fB lvm\fP (8) for common options and \fB lvs\fP for options given with
2009-10-26 17:37:09 +03:00
\fB \- \- columns\fP .
.TP
2012-04-11 16:42:10 +04:00
.B \- \- all
2009-10-26 17:37:09 +03:00
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).
2012-04-11 16:42:10 +04:00
For example, after creating a mirror using
\fB lvcreate \- m1 \- \- mirrorlog disk\fP ,
2009-10-26 17:37:09 +03:00
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
2014-03-31 00:35:45 +04:00
.BR \- C ", " \- \- columns
Display output in columns, the equivalent of \fB lvs\fP (8).
Options listed are the same as options given in \fB lvs\fP (8).
.TP
2012-04-11 16:42:10 +04:00
.BR \- c ", " \- \- colon
2002-11-18 17:04:08 +03:00
Generate colon separated output for easier parsing in scripts or programs.
2012-04-11 16:42:10 +04: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:
2014-06-11 13:06:13 +04:00
\(bu logical volume name
\(bu volume group name
\(bu logical volume access
\(bu logical volume status
\(bu internal logical volume number
\(bu open count of logical volume
\(bu logical volume size in sectors
\(bu current logical extents associated to logical volume
\(bu allocated logical extents of logical volume
\(bu allocation policy of logical volume
\(bu read ahead sectors of logical volume
\(bu major device number of logical volume
\(bu minor device number of logical volume
2002-01-04 23:35:19 +03:00
.fi
.TP
2012-04-11 16:42:10 +04:00
.BR \- m ", " \- \- maps
2002-01-04 23:35:19 +03:00
Display the mapping of logical extents to physical volumes and
2010-04-27 17:34:56 +04:00
physical extents. To map physical extents
2012-04-11 16:42:10 +04:00
to logical extents use:
.B pvs \- \- segments \- o+lv_name,seg_start_pe,segtype
2002-01-04 23:35:19 +03:00
.SH Examples
2012-04-11 16:42:10 +04:00
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
2012-04-11 16:42:10 +04:00
status (active or inactive) as well:
.sp
2014-08-14 13:09:30 +04:00
.B lvdisplay \- v vg00/lvol2
2002-01-04 23:35:19 +03:00
2012-04-11 16:42:10 +04:00
Shows the attributes of this snapshot logical volume and also which
original logical volume it is associated with:
.sp
2014-08-14 13:09:30 +04:00
.B lvdisplay vg00/snapshot
2002-01-04 23:35:19 +03:00
.SH SEE ALSO
2012-04-11 16:42:10 +04:00
.BR lvm (8),
.BR lvcreate (8),
2013-05-05 23:38:44 +04:00
.BR lvs (8),
2010-04-27 17:34:56 +04:00
.BR lvscan (8),
.BR pvs (8)