GNU/Linux |
RedHat 9.0(Shrike) |
|
![]() |
lvscan(8) |
![]() |
lvscan − scan (all disks) for logical volumes
lvscan [−b|−−blockdevice] [−d|−−debug] [−D|−−disk] [−h|−−help] [−v|−−verbose]
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.
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
lvm(8), lvcreate(8), lvdisplay(8)
Heinz Mauelshagen <Linux-LVM@Sistina.com>
![]() |
lvscan(8) | ![]() |