The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

lvs - Display LV Usage and Attributes




lvs is a command in the context of LVM (Logical Volume Manager) and is used to display information about the usage and attributes of logical volumes (LVs) in LVM.

The basic syntax of the lvs command is: lvs [OPTIONS] [VG_NAME [LV_NAME]], where 'VG_NAME' is the name of a specific volume group (VG), and 'LV_NAME' is the name of a specific logical volume within that volume group. If no volume group or logical volume is specified, the command will display information about all available logical volumes within all volume groups.

Some common options for the lvs command include:

Example:
# lvs -a  ←Display information about all logical volumes, including hidden ones
# lvs myvg ←Display information about all logical volumes within the volume group named 'myvg'