← 返回命令列表

Linux command

lvmdiskscan 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Scan all devices

lvmdiskscan

Example

lvmdiskscan -l

Example

lvmdiskscan -v

说明

lvmdiskscan scans all SCSI, IDE, and other disks visible to the system and lists devices that may be used as physical volumes by LVM. It reports each device's size and whether it is already an LVM physical volume. The output shows partitions and whole disks, indicating which ones contain LVM metadata. This is useful for identifying available storage before creating new physical volumes.

参数

-l, --lvmpartition
Show only partitions that are LVM physical volumes
-v, --verbose
Increase verbosity level; can be repeated for more detail

FAQ

What is the lvmdiskscan command used for?

lvmdiskscan scans all SCSI, IDE, and other disks visible to the system and lists devices that may be used as physical volumes by LVM. It reports each device's size and whether it is already an LVM physical volume. The output shows partitions and whole disks, indicating which ones contain LVM metadata. This is useful for identifying available storage before creating new physical volumes.

How do I run a basic lvmdiskscan example?

Run `lvmdiskscan` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l, --lvmpartition do in lvmdiskscan?

Show only partitions that are LVM physical volumes