2008-10-08 16:50:13 +04:00
.TH LVSCAN 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
lvscan \(em scan (all disks) for Logical Volumes
2002-01-04 23:35:19 +03:00
.SH SYNOPSIS
.B lvscan
2009-10-26 17:37:09 +03:00
.RB [ \- a | \- \- all]
2002-01-04 23:35:19 +03:00
.RB [ \- b | \- \- blockdevice ]
2014-05-21 16:53:56 +04:00
.RB [ \- \- commandprofile
.IR ProfileName ]
2002-01-04 23:35:19 +03:00
.RB [ \- d | \- \- debug ]
.RB [ \- h | \- \- help ]
2002-11-18 17:04:08 +03:00
.RB [ \- \- ignorelockingfailure ]
.RB [ \- P | \- \- partial ]
2002-01-04 23:35:19 +03:00
.RB [ \- v | \- \- verbose ]
.SH DESCRIPTION
2012-04-11 16:42:10 +04:00
lvscan scans all known volume groups or all supported LVM block devices
2011-01-24 23:02:07 +03:00
in the system for defined Logical Volumes. The output consists
2012-04-11 16:42:10 +04:00
of one line for each Logical Volume indicating whether or not it is active,
2011-01-24 23:02:07 +03:00
a snapshot or origin, the size of the device and its allocation policy.
2012-04-11 16:42:10 +04:00
Use \fB lvs\fP (8) or \fB lvdisplay\fP (8) to obtain more-comprehensive
information about the Logical Volumes.
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.
2002-01-04 23:35:19 +03:00
.TP
2009-10-26 17:37:09 +03:00
.BR \- \- 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).
2012-04-11 16:42:10 +04:00
For example, after creating a mirror using
.B lvcreate \- m1 \- \- mirrorlog disk\fR,
2009-10-26 17:37:09 +03:00
this option will reveal three internal Logical Volumes, with suffixes
mimage_0, mimage_1, and mlog.
.TP
2002-01-04 23:35:19 +03:00
.BR \- b ", " \- \- blockdevice
2012-04-11 16:42:10 +04:00
This option is now ignored. Instead, use \fB lvs\fP (8) or
\fB lvdisplay\fP (8) to obtain the device number.
2014-07-23 00:47:27 +04:00
.TP
.IR \fB \- \- cache " " LogicalVolume
Applicable only when \fB lvmetad\fP (8) is in use (see also \fB lvm.conf\fP (5),
global/use_lvmetad). This command issues a rescan of physical volume labels and
metadata areas of all PVs that the logical volume uses. In particular, this can
be used when a RAID logical volume becomes degraded, to update information
about physical volume availability. This is only necessary if the logical
volume is \fB not\fP being monitored by dmeventd (see \fB lvchange\fP (8), option
\fB \- \- monitor\fP ).
2002-01-04 23:35:19 +03:00
.SH SEE ALSO
2012-04-11 16:42:10 +04:00
.BR lvm (8),
2002-01-04 23:35:19 +03:00
.BR lvcreate (8),
.BR lvdisplay (8)
2011-01-24 23:02:07 +03:00
.BR lvs (8)