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