Show Table of Contents
4.3.4. 顯示卷冊群組
您可使用兩項指令來顯示 LVM 卷冊群組的內容:
vgs 和 vgdisplay。
vgs 指令會以可配置的格式來提供卷冊群組資訊(一個卷冊群組一行)。vgs 指令提供了許多格式控制,並且對於進行 script 相當有幫助。如欲取得有關於使用 vgs 指令來自訂化您的輸出的相關資訊,請參閱〈節 4.8, “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

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.