Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
4.4.7. 顯示邏輯卷冊
您可使用三項指令來顯示 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 節 4.9, “LVM 的自訂化回報”.
lvdisplay
指令可利用固定的格式來顯示邏輯卷冊的內容(像是大小、格式和映射)。
下列指令顯示了
vg00
中的 lvol2
的屬性。若是已為此原始邏輯卷冊建立了快照邏輯卷冊的話,這項指令便會顯示一列含有所有快照邏輯卷冊以及其狀態(啟用中或停用中)的清單。
lvdisplay -v /dev/vg00/lvol2
lvscan
指令會掃秒系統中所有的邏輯卷冊並將它們列出,如下列範例。
# lvscan
ACTIVE '/dev/vg0/gfslv' [1.46 GB] inherit