Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

4.3.4. 顯​​​​​​​示​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​

您​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​兩​​​​​​​項​​​​​​​指​​​​​​​令​​​​​​​來​​​​​​​顯​​​​​​​示​​​​​​​ LVM 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​內​​​​​​​容​​​​​​​:vgs 和​​​​​​​ vgdisplay。​​​​​​​
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 節 4.9, “LVM 的​​​​​​​自​​​​​​​訂​​​​​​​化​​​​​​​回​​​​​​​報​​​​​​​”.
vgdisplay 指​​​​​​​令​​​​​​​會​​​​​​​以​​​​​​​固​​​​​​​定​​​​​​​的​​​​​​​格​​​​​​​式​​​​​​​來​​​​​​​顯​​​​​​​示​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​內​​​​​​​容​​​​​​​(例​​​​​​​如​​​​​​​大​​​​​​​小​​​​​​​、​​​​​​​扇​​​​​​​區​​​​​​​、​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​數​​​​​​​量​​​​​​​等​​​​​​​等​​​​​​​)。​​​​​​​下​​​​​​​列​​​​​​​範​​​​​​​例​​​​​​​顯​​​​​​​示​​​​​​​了​​​​​​​ vgdisplay 指​​​​​​​令​​​​​​​針​​​​​​​對​​​​​​​於​​​​​​​ new_vg 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​輸​​​​​​​出​​​​​​​。​​​​​​​若​​​​​​​您​​​​​​​不​​​​​​​指​​​​​​​定​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​話​​​​​​​,所​​​​​​​有​​​​​​​現​​​​​​​有​​​​​​​的​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​就​​​​​​​會​​​​​​​被​​​​​​​顯​​​​​​​示​​​​​​​出​​​​​​​。​​​​​​​
# vgdisplay new_vg
  --- Volume group ---
  VG Name               new_vg
  System ID
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  11
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               51.42 GB
  PE Size               4.00 MB
  Total PE              13164
  Alloc PE / Size       13 / 52.00 MB
  Free  PE / Size       13151 / 51.37 GB
  VG UUID               jxQJ0a-ZKk0-OpMO-0118-nlwO-wwqd-fD5D32