2008-10-08 16:50:13 +04:00
.TH PVSCAN 8 "LVM TOOLS #VERSION#" "Sistina Software UK" \" -*- nroff -*-
2002-01-04 23:35:19 +03:00
.SH NAME
pvscan \- scan all disks for physical volumes
.SH SYNOPSIS
.B pvscan
2011-02-05 00:19:03 +03:00
.RB [ \- d | \- \- debug ]
.RB [ \- h | \- \- help ]
.RB [ \- v | \- \- verbose ]
.RB [ \- \- version ]
.RB [ \- \- ignorelockingfailure ]
2011-01-28 19:03:38 +03:00
.RB [ \- e | \- \- exported ]
.RB [ \- n | \- \- novolumegroup ]
.RB [ \- s | \- \- short ]
.RB [ \- u | \- \- uuid ]
2012-03-06 06:30:49 +04:00
.BR
.B pvscan
.RB [ \- d | \- \- debug ]
.RB [ \- h | \- \- help ]
2012-04-11 16:42:10 +04:00
.B \- \- cache
2012-06-29 14:40:26 +04:00
.RB [ \- a | \- \- activate " " \fI ay ]
2013-09-03 18:06:16 +04:00
.RB [ \- b | \- \- background ]
2012-03-06 06:30:49 +04:00
.RB [ \- \- major
2012-04-11 16:42:10 +04:00
.I major
.B \- \- minor
.I minor
2012-03-06 06:30:49 +04:00
|
2013-10-22 15:52:18 +04:00
.IR DevicePath
|
.IR major:minor ]...
2002-01-04 23:35:19 +03:00
.SH DESCRIPTION
2012-04-11 16:42:10 +04:00
pvscan scans all supported LVM block devices in the system for
physical volumes.
2002-01-04 23:35:19 +03:00
.SH OPTIONS
2011-01-28 19:03:38 +03:00
See \fB lvm\fP (8) for common options.
2002-01-04 23:35:19 +03:00
.TP
.BR \- e ", " \- \- exported
Only show physical volumes belonging to exported volume groups.
.TP
.BR \- n ", " \- \- novolumegroup
Only show physical volumes not belonging to any volume group.
.TP
.BR \- s ", " \- \- short
Short listing format.
.TP
.BR \- u ", " \- \- uuid
2002-11-18 17:04:08 +03:00
Show UUIDs (Uniform Unique Identifiers) in addition to device special names.
2012-02-26 12:45:07 +04:00
.TP
2012-06-29 14:40:26 +04:00
.BR \- a ", " \- \- activate " " \fI ay
Together with the information already cached in lvmetad, automatically activate
any logical volumes that become activatable after the scan done on one or more devices.
The logical volume to autoactivate is matched against the
2013-06-14 11:36:56 +04:00
activation/auto_activation_volume_list set in lvm.conf. If this list is not set, then
all volumes are considered for autoactivation. The autoactivation is not yet
supported for logical volumes that are part of partial or clustered volume groups.
2012-06-29 14:40:26 +04:00
.TP
2013-09-03 18:06:16 +04:00
.BR \- b ", " \- \- background
Run the command in the background.
.TP
2014-01-08 06:13:13 +04:00
.BR \- \- cache " [" \- \- major " " \fI major " " \- \- minor " " \fI minor " | " \fI DevicePath " | " \fI major:minor " ]..."
2012-03-03 22:32:53 +04:00
Scan one or more devices and instruct the lvmetad daemon to update its cached
state accordingly. Called internally by udev rules.
All devices listed explicitly are processed \fB regardless\fP of any device
2013-09-16 18:28:28 +04:00
filters set using \fB devices/filter\fP configuration setting. To filter
devices even in this case, the \fB devices/global_filter\fP must be used.
2014-01-08 06:13:13 +04:00
If lvmetad has not yet cached any metadata or the filters have recently been
changed, then all devices may be scanned, effectively ignoring the rest of
the command line. Otherwise, if all the devices referenced on the command line
contain metadata in the default lvm2 format, other devices are not accessed.
If metadata written using the obsolete GFS pool format is encountered, this is
ignored and so lvmetad should not be used.
2002-01-04 23:35:19 +03:00
.SH SEE ALSO
.BR lvm (8),
2014-01-08 06:13:13 +04:00
.BR lvmetad (8),
2002-01-04 23:35:19 +03:00
.BR pvcreate (8),
.BR pvdisplay (8)