5.3.5. 显示卷组
您可以使用两个命令来显示 LVM 卷组的属性:
vgs 和 vgdisplay。
The
vgscan command, which scans all the disks for volume groups and rebuilds the LVM cache file, also displays the volume groups. For information on the vgscan command, see 第 5.3.6 节 “为卷组扫描磁盘来建立缓存文件”.
The
vgs command provides volume group information in a configurable form, displaying one line per volume group. The vgs command provides a great deal of format control, and is useful for scripting. For information on using the vgs command to customize your output, see 第 5.8 节 “为 LVM 自定义报告”.
The
vgdisplay command displays volume group properties (such as size, extents, number of physical volumes, and so on) in a fixed form. The following example shows the output of a vgdisplay command for the volume group new_vg. If you do not specify a volume group, all existing volume groups are displayed.