What do Volume Groups (VGs) do?
Organize physical storage devices into flexible storage pools
Name key commands for VG management.
vgscan, vgcreate, vgdisplay, vgs
What does vgscan do?
Scans the system for existing volume groups
Syntax for vgscan?
vgscan
Purpose of vgscan?
Detects all available volume groups, especially after adding disks or restoring backups
What does vgcreate do?
Creates a new volume group from one or more physical volumes
Syntax for vgcreate?
vgcreate <volume_group_name> <physical_volume></physical_volume></volume_group_name>
Example of vgcreate?
vgcreate vg_projects /dev/sdb1
Purpose of vgcreate?
Sets up a new volume group for managing logical volumes
What does vgdisplay do?
Provides detailed information about a specific volume group
Syntax for vgdisplay?
vgdisplay <volume_group_name></volume_group_name>
Example of vgdisplay?
vgdisplay vg_projects
Key details shown by vgdisplay?
VG Name : Name of the Volume Group
VG Size: Total storage size
Cur PV: Number of current physical volumes
Act PV: Number of active physical volumes
Alloc PE/Size: Allocated physical extents and their size
Free PE/Size: Free physical extents and their size
What does vgs do?
Provides a summarized overview of all volume groups
Syntax for vgs?
vgs
Key columns in vgs output?
VG: Volume Group name
#PV: Number of physical volumes
#LV: Number of logical volumes
#SN: Number of snapshots
Attr: Attributes such as writable and resizable
Vsize: Total volume size
Vfree : Available free space
Purpose of vgs?
Quick, comparative view of volume groups and their status