What are Logical Volumes (LVs)?
Customizable storage areas within Volume Groups (VGs)
Name key commands for LV management.
lvcreate, lvdisplay, lvs
What does lvcreate do?
Creates a logical volume from an existing volume group
Syntax for lvcreate?
lvcreate –name <logical_volume_name> --size <size> <volume_group_name></volume_group_name></size></logical_volume_name>
Example of lvcreate?
lvcreate –name lv_data –size 20G vg_projects
Purpose of lvcreate?
Allocates and reserves space for specific storage tasks
What does lvdisplay do?
Provides detailed information about a specific logical volume
Syntax for lvdisplay?
lvdisplay <logical_volume_path></logical_volume_path>
Example of lvdisplay?
lvdisplay /dev/vg_projects/lv_data
Purpose of lvdisplay?
Confirms properties and status of a logical volume
What does lvs do?
Displays a summary of all logical volumes in the system
Syntax for lvs?
lvs
Key columns in lvs output?
LV (Logical Volume name), VG (Volume Group name), Attr (attributes), Lsize (Logical volume size)
Purpose of lvs?
Provides a high-level view of logical volumes and their usage
What is the VG column in the lvs output?
Volume Group name
What is the LV column in the lvs output?
Logical Volume name
What is the Attr column in the lvs output?
Volume attributes
■ w: Writable
■ i: Inherited permissions
■ a: ActiveWhat is the Lsize column in the lvs output?
Logical volume size