5.4.13. 显示逻辑卷
有三个命令可显示 LVM 逻辑卷的属性:
lvs、lvdisplay 和 lvscan。
The
lvs command provides logical volume information in a configurable form, displaying one line per logical volume. The lvs command provides a great deal of format control, and is useful for scripting. For information on using the lvs command to customize your output, see 第 5.8 节 “为 LVM 自定义报告”.
lvdisplay 命令用混合格式显示物理属性(大小、布局和映射)。
The following command shows the attributes of
lvol2 in vg00. If snapshot logical volumes have been created for this original logical volume, this command shows a list of all snapshot logical volumes and their status (active or inactive) as well.
lvdisplay -v /dev/vg00/lvol2
# lvdisplay -v /dev/vg00/lvol2
lvscan 命令扫描系统中所有逻辑卷并将其列出,如下:
lvscan
# lvscan
ACTIVE '/dev/vg0/gfslv' [1.46 GB] inherit