Linux lvmdiskscan命令:扫描可见LVM2所有设备。
Linux lvmdiskscan命令 功能描述
使用lvmdiskscan命令可以在系统中为LVM物理卷扫描所有的SCSI、IDE磁盘、多种设备和其他块设备。
Linux lvmdiskscan命令 语法
lvmdiskscan [选项]
命令中各选项的含义如表所示。
Linux lvmdiskscan命令 示例
扫描可见LVM2所有设备,只报告物理卷
[root@rhel ~]# lvmdiskscan -l
WARNING: only considering LVM devices
/dev/sda5 [ 100.00 GiB]LVM physical volume
/dev/sda6 [ 100.01 GiB]LVM physical volume
/dev/sda7 [ 100.01 GiB]LVM physical volume
0 LVM physical volume whole disks
3 LVM physical volumes
扫描可见LVM2所有设备
[root@rhel ~]# lvmdiskscan
/dev/ram0 [ 16.00 MiB]
/dev/vg1/lv1 [ 250.00 GiB]
/dev/ram1 [ 16.00 MiB]
/dev/sda1 [ 100.00 MiB]
/dev/ram2 [ 16.00 MiB]
/dev/sda2 [ 150.00 GiB]
/dev/ram3 [ 16.00 MiB]
/dev/sda3 [ 2.00 GiB]
/dev/ram4 [ 16.00 MiB]
/dev/ram5 [ 16.00 MiB]
/dev/sda5 [ 100.00 GiB]LVM physical volume
/dev/ram6 [ 16.00 MiB]
/dev/sda6 [ 100.01 GiB]LVM physical volume
/dev/ram7 [ 16.00 MiB]
/dev/sda7 [ 100.01 GiB]LVM physical volume
/dev/ram8 [ 16.00 MiB]
/dev/ram9 [ 16.00 MiB]
/dev/ram10 [ 16.00 MiB]
/dev/ram11 [ 16.00 MiB]
/dev/ram12 [ 16.00 MiB]
/dev/ram13 [ 16.00 MiB]
/dev/ram14 [ 16.00 MiB]
/dev/ram15 [ 16.00 MiB]
0 disks
20 partitions
0 LVM physical volume whole disks
3 LVM physical volumes