man lvscan () - scan (all disks) for logical volumes

NAME

lvscan - scan (all disks) for logical volumes

SYNOPSIS

lvscan [-b|--blockdevice] [-d|--debug] [-D|--disk] [-h|--help] [-v|--verbose]

DESCRIPTION

lvscan scans all known volume groups or all supported LVM block devices in the system for defined logical volumes.

OPTIONS

-b, --blockdevice
Adds the device major and minor numbers to the display of each logical volume.
-d, --debug
Enables additional debugging output (if compiled with DEBUG).
-D, --disk
Scan for logical volumes on disk(s) instead of getting the information from the kernel.
-h, --help
Print a usage message on standard output and exit successfully.
-v, --verbose
Gives verbose runtime information about lvscan's activities.
--version
Prints version number of tool and exits sucessfully.

DIAGNOSTICS

lvscan returns an exit code of 0 for success and > 0 for error:

1 no volume groups found 2 invalid volume group name 3 error getting VGDA from kernel

95 driver/module not in kernel 96 invalid I/O protocol version 97 error locking logical volume manager 98 invalid lvmtab (run vgscan(8)) 99 invalid command line

SEE ALSO

AUTHOR

Heinz Mauelshagen <Linux-LVM@Sistina.com>