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