LVM
Jump to navigation
Jump to search
1. Create a Physical Volume (PV) on
2. Create a Volume Group (VG) named
3. Create a Logical Volume (LV) named
...gonna take a shortcut on this and as a foundation, just paste in ChatGPT generated text instead of retyping it, then add stuff in and modify it.
Blivet
A great GUI tool for managing and creating LVs. But sadly, doesn't exist or work past Rocky 8. When creating a Volume Group BLIVET creates the Partition, Physical Volume, and Volume Group in one swift move.
After creating a Volume Group, move on down to the LVM section (left column under physical drives) and create the Logical Volume and format it (create Labels too).
Command Alternative
Show Existing LVM Setup
# List Physical Volumes (PVs)
pvs
# List Volume Groups (VGs)
vgs
# List Logical Volumes (LVs)
lvs
Create a New LVM Structure
1. Create a Physical Volume (PV) on /dev/sdb
pvcreate /dev/sdb
2. Create a Volume Group (VG) named my_vg
vgcreate my_vg /dev/sdb
3. Create a Logical Volume (LV) named my_lv
(10GB size)
lvcreate -L 10G -n my_lv my_vg
Show the Created LVM Components
pvs # Show Physical Volumes
vgs # Show Volume Groups
lvs # Show Logical Volumes