lvmdiskscan scans all SCSI, (E)IDE disks, multiple devices and a
bunch of other block devices in the system looking for LVM PVs.
The size reported is the real device size. Define a filter in
lvm.conf(5) to restrict the scan to avoid a CD ROM, for example.
This command is deprecated, use pvs instead.
The command profile to use for command configuration. See
lvm.conf(5) for more information about profiles.
Config settings for the command. These override
lvm.conf(5) settings. The String arg uses the same format
as lvm.conf(5), or may use section/field syntax. See
lvm.conf(5) for more information about config.
Set debug level. Repeat from 1 to 6 times to increase the
detail of messages sent to the log file and/or syslog (if
Devices that the command can use. This option can be
repeated or accepts a comma separated list of devices.
This overrides the devices file.
A file listing devices that LVM should use. The file must
exist in /etc/lvm/devices/ and is managed with the
lvmdevices(8) command. This overrides the lvm.conf(5)devices/devicesfile and devices/use_devicesfile settings.
If set to no, the command will not attempt to use device-
mapper. For testing and debugging.
Display help text.
Record information in the systemd journal. This
information is in addition to information enabled by the
lvm.conf log/journal setting. command: record information
about the command. output: record the default command
output. debug: record full command debugging.
Used to pass options for special cases to lvmlockd. See
lvmlockd(8) for more information.
Display long help text.
Only report PVs.
Do not use the hints file to locate devices for PVs. A
command may read more devices to find PVs when hints are
not used. The command will still perform standard hint
file invalidation where appropriate.
An alias for --commandprofile or --metadataprofile,
depending on the command.
Suppress output and log messages. Overrides --debug and
--verbose. Repeat once to also suppress any prompts with
Run the command in a special read-only mode which will
read on-disk metadata without needing to take any locks.
This can be used to peek inside metadata used by a virtual
machine image while the virtual machine is running. No
attempt will be made to communicate with the device-mapper
kernel driver, so this option is unable to report whether
or not LVs are actually in use.
Run in test mode. Commands will not update metadata. This
is implemented by disabling all metadata writing but
nevertheless returning success to the calling function.
This may lead to unusual error messages in multi-stage
operations if a tool relies on reading back metadata it
believes has changed but hasn't.
Set verbose level. Repeat from 1 to 4 times to increase
the detail of messages sent to stdout and stderr.
Display version information.
Do not prompt for confirmation interactively but always
assume the answer yes. Use with extreme caution. (For
automatic no, see -qq.)
String See the option description for information about the
Size is an input number that accepts an optional unit.
Input units are always treated as base two values,
regardless of capitalization, e.g. 'k' and 'K' both refer
to 1024. The default input unit is specified by letter,
followed by |UNIT. UNIT represents other possible input
units: b|B is bytes, s|S is sectors of 512 bytes, k|K is
KiB, m|M is MiB, g|G is GiB, t|T is TiB, p|P is PiB, e|E
is EiB. (This should not be confused with the output
control --units, where capital letters mean multiple of
This page is part of the lvm2 (Logical Volume Manager 2) project.
Information about the project can be found at
⟨http://www.sourceware.org/lvm2/⟩. If you have a bug report for
this manual page, see ⟨https://github.com/lvmteam/lvm2/issues⟩.
This page was obtained from the project's upstream Git repository
⟨git://sourceware.org/git/lvm2.git⟩ on 2023-06-23. (At that
time, the date of the most recent commit that was found in the
repository was 2023-06-20.) If you discover any rendering
problems in this HTML version of the page, or you believe there
is a better or more up-to-date source for the page, or you have
corrections or improvements to the information in this COLOPHON
(which is not part of the original manual page), send a mail to
Red Hat, Inc. LVM TOOLS 2.03.22(2)-git (2023-04-21) LVMDISKSCAN(8)