Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions 2026/day-13/day-13-lvm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<img width="595" height="665" alt="Screenshot 2026-02-06 at 4 08 06 PM" src="https://github.com/user-attachments/assets/135aaff6-8708-41c1-9783-c1b83e005f72" />


Assign a storage/volume to a server
attach that storage to your server then it will be visible

now you can step ahead to mount it

firstly create a physical volume using below command

lsblk - to list the bulk devices
then use

pvcreate /dev/<nameof-thestorage-from-lsblk>

now that pv is created now you to create a logical group.

vgcreate <nameforyou-VG> /dev/<nameof-thestorage-from-lsblk>

once it is created , you need to creat a LVM(logicam volume) using the VG

lvcreate -n <LVM-NAME> -L 5G <nameforyou-VG> - this command created a LVM and assign a disk to it

once it is created you see it using lvm/lsblk/lvdisplay

now that its done, extract the LVM

Mkfs.ext4 /dev/<nameforyou-VG>/<LVM-NAME>

now you can mount to a directory whichever you want using mount command

mount /dev/<nameforyou-VG>/<LVM-NAME> </directory>

and boom done.